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

I encountered a compilation problem when installing ocs2 #97

Open
yakousansan opened this issue Mar 7, 2024 · 0 comments
Open

I encountered a compilation problem when installing ocs2 #97

yakousansan opened this issue Mar 7, 2024 · 0 comments

Comments

@yakousansan
Copy link

yakousansan commented Mar 7, 2024

Describe the bug
Run Build Command(s):/usr/bin/make cmTC_53c66/fast && /usr/bin/make -f CMakeFiles/cmTC_53c66.dir/build.make CMakeFiles/cmTC_53c66.dir/build
make[1]: Entering directory '/opt/ocs2/ocs2_oc/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_53c66.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_53c66.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
Linking C executable cmTC_53c66
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_53c66.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_53c66.dir/CheckFunctionExists.c.o -o cmTC_53c66 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_53c66.dir/build.make:87: cmTC_53c66] Error 1
make[1]: Leaving directory '/opt/ocs2/ocs2_oc/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_53c66/fast] Error 2

Screenshots
image

Desktop (please complete the following information):

  • ubuntu20.04
  • ROS 1Noetic Ninjemys
  • All other related libraries are installed according to the official instructions
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

1 participant