Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib microros cannot be found #140

Open
kartman88 opened this issue Feb 20, 2024 · 9 comments
Open

lib microros cannot be found #140

kartman88 opened this issue Feb 20, 2024 · 9 comments

Comments

@kartman88
Copy link

Hi I'm working on Windows 11 with STM32CubeIde and I have a problem while building that is the following:
C:/ST/STM32CubeIDE_1.14.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lmicroros: No such file or directory collect2.exe: error: ld returned 1 exit status make: *** [makefile:69: micro_ros.elf] Error 1 "make -j20 all" terminated with exit code 2. Build might be incomplete.
I think this is related to the step 4. I double checked the path to see if it was correct and it seems right.

@kartman88 kartman88 changed the title lib microros cannot be founded lib microros cannot be found Feb 20, 2024
@totolerest
Copy link

you may follow this first then will got the lib microros folder
image

@kartman88
Copy link
Author

I did that and followed everything exactly as in the readme but still have this error only on windows

@totolerest
Copy link

Could you share the screen capture of GCC Linker on no.4?

@kartman88
Copy link
Author

I have ../ because was working on Linux but I've tried with the absolute path too and got the same error.
Screenshot 2024-02-22 093456

@totolerest
Copy link

Hmmm... Weird.
BTW, when I build the project I did not put this in prebuild step.
Screenshot_2024-02-22-15-45-16-51_40deb401b9ffe8e1df2f1cc5ba480b12

@kartman88
Copy link
Author

kartman88 commented Feb 22, 2024

Same, I skipped to step 4. Can I ask you what you have put in the docker command. The absolute path like something/workspace/name_of_project ? And did you follow the step 3? because without that I had another error while by following it I got the -lmicroros not found error. The error i got without the step 3 is:

../Core/Src/dma_transport.c:1:10: fatal error: uxr/client/transport.h: No such file or directory
    1 | #include <uxr/client/transport.h>

and the other one is:

../Core/Src/main.c:25:10: fatal error: rcl/rcl.h: No such file or directory
   25 | #include <rcl/rcl.h>

@totolerest
Copy link

totolerest commented Feb 22, 2024

I just skip no.2 but I follow the rest.
Step 3 is add path that need to add
I also checkout the humble project.
Screenshot_2024-02-22-16-04-51-84_40deb401b9ffe8e1df2f1cc5ba480b12
For docker command I follow the instructions
<ABSOLUTE_PATH_TO_PROJECT> this I put the folder that I checkout humble
At the end of 2nd command is humble which match with the version that I checkout.
/micro_ros_static_library_builder**:humble**

I case you checkout iron you may try to change to iron and run command again.

@kartman88
Copy link
Author

I'm already working on humble. About the step number 3 did you put what was written in the guide:

micro_ros_stm32cubemx_utils/microros_static_library_ide/libmicroros/include

Or did you put something different like:

../micro_ros_stm32cubemx_utils/microros_static_library_ide/libmicroros/include

Or absolute path

@totolerest
Copy link

No, I browse it manually to the destination folder which could be absolute path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants