micro-ROS / micro_ros_stm32cubemx_utils

A set of utilities for integrating micro-ROS in a STM32CubeMX project
Apache License 2.0
144 stars 57 forks source link

Issue with Pre-Build step : can't find the specified path #104

Open rajesh3699 opened 1 year ago

rajesh3699 commented 1 year ago

I am trying to replicate the same thing: System: Windows 11 , CubeIde (latest).

I also have a ubuntu docker running.

error description:

10:46:58 Incremental Build of configuration Debug for project micro_ROS_test make -j12 all ./micro_ros_stm32cubemx_utils/library_generation//library_generation.sh make (e=3): The system cannot find the path specified.

make[1]: [makefile:89: pre-build] Error 3 make: [makefile:62: all] Error 2 "make -j12 all" terminated with exit code 2. Build might be incomplete.

10:46:59 Build Failed. 2 errors, 0 warnings. (took 732ms)

pablogs9 commented 1 year ago

This repo is intended to be used under Linux, your problem is that make is not installed.

rajesh3699 commented 1 year ago

Is there a way to implement this using ubuntu docker image?

pablogs9 commented 1 year ago

A better option is to prepare a Virtual Box machine since this tool uses docker, and it is quite hard to run docker inside docker.

In any case, you can use this tutorial to build your custom static libraries and link them directly to your STM32 project:

https://micro.ros.org/docs/tutorials/advanced/create_custom_static_library/

rajesh3699 commented 1 year ago

okay thanks,

make -j12 all docker run --rm -v C:\Users\rnagula\STM32CubeIDE\workspace_1.12.1\micro_ROS_test:/project --env MICROROS_LIBRARY_FOLDER=micro_ros_stm32cubemx_utils/microros_static_library_ide microros/micro_ros_static_library_builder:foxy dos2unix: converting file /project/micro_ros_stm32cubemx_utils/microros_static_library_ide/library_generation/library_generation.sh to Unix format... Found CFLAGS:

-ffunction-sections -fdata-sections -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -O0

Get:1 http://packages.ros.org/ros2/ubuntu focal InRelease [4685 B] Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Get:3 http://packages.ros.org/ros2/ubuntu focal/main amd64 Packages [1189 kB] Get:4 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB] Get:5 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1059 kB] Get:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB] Get:8 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [28.5 kB] Get:9 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2779 kB] Get:10 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB] Get:11 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [2351 kB] Get:12 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB] Get:13 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB] Get:14 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB] Get:15 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [31.2 kB] Get:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3259 kB] Get:17 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [2489 kB] Get:18 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1355 kB] Get:19 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB] Get:20 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB] Fetched 28.1 MB in 12s (2415 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: binutils-arm-none-eabi libnewlib-arm-none-eabi libnewlib-dev libstdc++-arm-none-eabi-newlib Suggested packages: libnewlib-doc The following NEW packages will be installed: binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi libnewlib-dev libstdc++-arm-none-eabi-newlib 0 upgraded, 5 newly installed, 0 to remove and 51 not upgraded. Need to get 271 MB of archives. After this operation, 2340 MB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 binutils-arm-none-eabi amd64 2.34-4ubuntu1+13ubuntu1 [2571 kB] Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 gcc-arm-none-eabi amd64 15:9-2019-q4-0ubuntu1 [31.6 MB] Get:3 http://archive.ubuntu.com/ubuntu focal/universe amd64 libnewlib-dev all 3.3.0-0ubuntu1 [131 kB] Get:4 http://archive.ubuntu.com/ubuntu focal/universe amd64 libnewlib-arm-none-eabi all 3.3.0-0ubuntu1 [34.5 MB] Get:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 libstdc++-arm-none-eabi-newlib all 15:9-2019-q4-0ubuntu1+12build2 [202 MB] debconf: delaying package configuration, since apt-utils is not installed Fetched 271 MB in 32s (8391 kB/s) Selecting previously unselected package binutils-arm-none-eabi. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 59185 files and directories currently installed.) Preparing to unpack .../binutils-arm-none-eabi_2.34-4ubuntu1+13ubuntu1_amd64.deb ... Unpacking binutils-arm-none-eabi (2.34-4ubuntu1+13ubuntu1) ... Selecting previously unselected package gcc-arm-none-eabi. Preparing to unpack .../gcc-arm-none-eabi_15%3a9-2019-q4-0ubuntu1_amd64.deb ... Unpacking gcc-arm-none-eabi (15:9-2019-q4-0ubuntu1) ... Selecting previously unselected package libnewlib-dev. Preparing to unpack .../libnewlib-dev_3.3.0-0ubuntu1_all.deb ... Unpacking libnewlib-dev (3.3.0-0ubuntu1) ... Selecting previously unselected package libnewlib-arm-none-eabi. Preparing to unpack .../libnewlib-arm-none-eabi_3.3.0-0ubuntu1_all.deb ... Unpacking libnewlib-arm-none-eabi (3.3.0-0ubuntu1) ... Selecting previously unselected package libstdc++-arm-none-eabi-newlib. Preparing to unpack .../libstdc++-arm-none-eabi-newlib_15%3a9-2019-q4-0ubuntu1+12build2_all.deb ... Unpacking libstdc++-arm-none-eabi-newlib (15:9-2019-q4-0ubuntu1+12build2) ... Setting up binutils-arm-none-eabi (2.34-4ubuntu1+13ubuntu1) ... Setting up gcc-arm-none-eabi (15:9-2019-q4-0ubuntu1) ... Setting up libnewlib-dev (3.3.0-0ubuntu1) ... Setting up libnewlib-arm-none-eabi (3.3.0-0ubuntu1) ... Setting up libstdc++-arm-none-eabi-newlib (15:9-2019-q4-0ubuntu1+12build2) ... Processing triggers for libc-bin (2.31-0ubuntu9.9) ... Creating firmware for generate_lib platform generic make[1]: [makefile:89: pre-build] Error 60 make: [makefile:62: all] Error 2 "make -j12 all" terminated with exit code 2. Build might be incomplete.

This is yet another issue I am facing is it also related to missing make?

elgarbe commented 7 months ago

Hi, you can use stm32cubemxide in windows 11. You will need to have docker desktop running first. I have problem with the prebuild step, but I manged to run those lines outside the cubeIDE and everithing works ok