Coder Social home page Coder Social logo

Undefined reference about guidance-sdk HOT 2 OPEN

lemonL avatar lemonL commented on August 16, 2024
Undefined reference

from guidance-sdk.

Comments (2)

lemonL avatar lemonL commented on August 16, 2024

CMakeError.log

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/kitty/Guidance-SDK-master/demo/catkin_ws/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_19694/fast"
/usr/bin/make -f CMakeFiles/cmTC_19694.dir/build.make CMakeFiles/cmTC_19694.dir/build
make[1]: Entering directory '/home/kitty/Guidance-SDK-master/demo/catkin_ws/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_19694.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_19694.dir/CheckSymbolExists.c.o -c /home/kitty/Guidance-SDK-master/demo/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_19694
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_19694.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_19694.dir/CheckSymbolExists.c.o -o cmTC_19694 -rdynamic
CMakeFiles/cmTC_19694.dir/CheckSymbolExists.c.o:在函数‘main’中:
CheckSymbolExists.c:(.text+0x16):对‘pthread_create’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_19694.dir/build.make:97: recipe for target 'cmTC_19694' failed
make[1]: *** [cmTC_19694] Error 1
make[1]: Leaving directory '/home/kitty/Guidance-SDK-master/demo/catkin_ws/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_19694/fast' failed
make: *** [cmTC_19694/fast] Error 2

File /home/kitty/Guidance-SDK-master/demo/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/kitty/Guidance-SDK-master/demo/catkin_ws/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_71697/fast"
/usr/bin/make -f CMakeFiles/cmTC_71697.dir/build.make CMakeFiles/cmTC_71697.dir/build
make[1]: Entering directory '/home/kitty/Guidance-SDK-master/demo/catkin_ws/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_71697.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_71697.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_71697
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_71697.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_71697.dir/CheckFunctionExists.c.o -o cmTC_71697 -rdynamic -lpthreads
/usr/bin/ld: 找不到 -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_71697.dir/build.make:97: recipe for target 'cmTC_71697' failed
make[1]: *** [cmTC_71697] Error 1
make[1]: Leaving directory '/home/kitty/Guidance-SDK-master/demo/catkin_ws/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_71697/fast' failed
make: *** [cmTC_71697/fast] Error 2

from guidance-sdk.

seanavery avatar seanavery commented on August 16, 2024

I am having this same issue @lemonL. Were you able to get around it?

from guidance-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.