Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Can't build a the project from Unity for Universal Windows Platform

Discussion in 'Robotics' started by smrazarizvi96, Jul 12, 2021.

  1. smrazarizvi96

    smrazarizvi96

    Joined:
    Jul 12, 2021
    Posts:
    2
    I created a Unity project and used the ROS-TCP-Connector package to communicate between Unity and ROS.

    I followed the first three steps from here: https://github.com/Unity-Technologi...s-2/tutorials/ros_unity_integration/README.md

    It works fine on Unity and messages are sent from Unity to ROS, but as soon as I build the project from Unity, to open it in Visual Studio, it gives me the following errors in Unity:

    upload_2021-7-12_15-14-59.png
    upload_2021-7-12_15-15-19.png
    upload_2021-7-12_15-15-36.png

    These are the build settings I am using:

    upload_2021-7-12_15-14-23.png
     
  2. amanda-unity

    amanda-unity

    Unity Technologies

    Joined:
    May 29, 2020
    Posts:
    19
    Hey @smrazarizvi96, our packages are not actively supporting UWP builds, which is causing those error messages during the build process. However, there is a simple workaround to resolve these compilation errors--you can move the ROS TCP Connector package into an editable directory (e.g. ./Packages) and turn on UWP build support in the package's asmdef in the Inspector.

    You can find the more detailed workaround in this resolved Github issue!
     
  3. smrazarizvi96

    smrazarizvi96

    Joined:
    Jul 12, 2021
    Posts:
    2
    Hello @amanda-unity, Yes I resolved the issue by myself using a similar method.
    Thank you.