Closed AntumArk closed 2 years ago
The suspected line is https://github.com/micro-ROS/micro_ros_platformio/blob/87baf5eee14151e4c6debc2f4c78a222e2865a89/microros_utils/library_builder.py#L207
./install/setup.sh is not present
Replacing that line with
os.system("bash && cd {} && . {}/install/setup.sh && {} > /dev/null 2>&1".format(self.mcu_folder, self.dev_folder, colcon_command))
Allowed further execution. and found out a really odd thing.. Windows cant have a folder called "aux" ... Tried this also on windows explorer.
Windows legacy folders
Replaced all aux folders to aux1. Now the next error: https://github.com/micro-ROS/micro_ros_platformio/blob/87baf5eee14151e4c6debc2f4c78a222e2865a89/microros_utils/library_builder.py#L232 cant find this file, probably archive fails to be created.
I'm also running into this issue. After removing the .pio directory, running install again, it fails with this error (using a powershell window in platformio):
C:\Users\Thijs\.platformio\penv\Scripts\python.exe -m pip install markupsafe==2.0.1
Requirement already satisfied: markupsafe==2.0.1 in c:\users\thijs\.platformio\penv\lib\site-packages (2.0.1)
WARNING: You are using pip version 21.3.1; however, version 22.0.4 is available.
You should consider upgrading via the 'C:\Users\Thijs\.platformio\penv\Scripts\python.exe -m pip install --upgrade pip' command.
Configuring az-delivery-devkit-v4 with transport serial
Downloading micro-ROS dev dependencies
- Downloaded ament_cmake
- Downloaded ament_lint
- Downloaded ament_package
- Downloaded googletest
- Downloaded ament_cmake_ros
- Downloaded ament_index
Building micro-ROS dev dependencies
Build dev micro-ROS environment failed:
'colcon' is not recognized as an internal or external command,
operable program or batch file.
colcon.exe
is available though, e.g.
C:\Users\Thijs\.platformio\penv\Scripts\colcon.exe version-check
colcon-cmake 0.2.26: up-to-date
colcon-core 0.8.1: up-to-date
colcon-defaults 0.2.6: up-to-date
colcon-devtools 0.2.3: up-to-date
colcon-library-path 0.2.1: up-to-date
colcon-metadata 0.2.5: up-to-date
colcon-notification 0.2.13: up-to-date
colcon-output 0.2.12: up-to-date
colcon-package-information 0.3.3: up-to-date
colcon-package-selection 0.2.10: up-to-date
colcon-parallel-executor 0.2.4: up-to-date
colcon-pkg-config 0.1.0: up-to-date
colcon-powershell 0.3.7: up-to-date
colcon-python-setup-py 0.2.7: up-to-date
colcon-recursive-crawl 0.2.1: up-to-date
colcon-ros 0.3.23: up-to-date
colcon-test-result 0.3.8: up-to-date
I guess I'll switch back to microros for arduino instead.
Closing, support for windows is not currently under development due to colcon
cross compilation issues on windows.
Will update if progress is made.
Steps to reproduce the issue
OR
Expected behavior
code compiles with microros library
Actual behavior
Additional information