Closed luoww1992 closed 3 years ago
你是PC嘛?
你路径没设置对吧
export LD_LIBRARY_PATH=$库的路径
# mirror @ mirror-pc in ~/workspace/TengineKit/Linux/sample/FaceDemo/build on git:master o [9:34:12] C:2 $ make -j3 [ 50%] Linking CXX executable FaceSDKDemo /home/mirror/workspace/TengineKit/Linux/sample/FaceDemo/libs/libTengineKitSDK.so: undefined reference to `typeinfo for std::thread::_State@GLIBCXX_3.4.22' /home/mirror/workspace/TengineKit/Linux/sample/FaceDemo/libs/libTengineKitSDK.so: undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())@GLIBCXX_3.4.22' /home/mirror/workspace/TengineKit/Linux/sample/FaceDemo/libs/libTengineKitSDK.so: undefined reference to `std::thread::_State::~_State()@GLIBCXX_3.4.22' collect2: error: ld returned 1 exit status CMakeFiles/FaceSDKDemo.dir/build.make:129: recipe for target 'FaceSDKDemo' failed make[2]: *** [FaceSDKDemo] Error 1 CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/FaceSDKDemo.dir/all' failed make[1]: *** [CMakeFiles/FaceSDKDemo.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
我没用Ubuntu16.04 得电脑T_T
楼顶的,你应该是没有装curl库,运行一下下面的命令装一下就好了:
sudo apt-get install curl
Ubuntu18.04版本太高了,建议提供一下Ubuntu16.04和Ubuntu14.04版本的库,用的人还蛮多
我找一台去
哈哈哈哈,Ubuntu 14.04 都出来了
楼顶的,你应该是没有装curl库,运行一下下面的命令装一下就好了:
sudo apt-get install curl
不行啊 大佬 还有其他方法吗
linux 编译报错
我同样有在编译时错误 执行如下:sudo sh make.sh [sudo] maphysart 的密码: -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found OpenCV: /usr/local (found version "4.1.2") -- Configuring done -- Generating done -- Build files have been written to: /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/build Scanning dependencies of target FaceSDKDemo [ 50%] Building CXX object CMakeFiles/FaceSDKDemo.dir/src/demo.cpp.o In file included from /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/src/tenginekit_api.h:7:0, from /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/src/demo.cpp:5: /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/src/tenginekit_struct.h:10:1: warning: ‘typedef’ was ignored in this declaration typedef struct vector2 { ^
~~ /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/src/tenginekit_struct.h:52:1: warning: ‘typedef’ was ignored in this declaration typedef struct BodyInfo ^~~ /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/src/tenginekit_struct.h:58:1: warning: ‘typedef’ was ignored in this declaration typedef struct HandInfo3d ^~~ [100%] Linking CXX executable ../bin/FaceSDKDemo /usr/bin/ld: warning: libcurl.so, needed by /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/libs/libTengineKitSDK.so, not found (try using -rpath or -rpath-link) /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/libs/libTengineKitSDK.so:对‘curl_easy_perform’未定义的引用 /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/libs/libTengineKitSDK.so:对‘curl_easy_getinfo’未定义的引用 /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/libs/libTengineKitSDK.so:对‘curl_easy_init’未定义的引用 /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/libs/libTengineKitSDK.so:对‘curl_slist_append’未定义的引用 /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/libs/libTengineKitSDK.so:对‘curl_version_info’未定义的引用 /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/libs/libTengineKitSDK.so:对‘curl_easy_cleanup’未定义的引用 /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/libs/libTengineKitSDK.so:对‘curl_slist_free_all’未定义的引用 /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/libs/libTengineKitSDK.so:对‘curl_formfree’未定义的引用 /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/libs/libTengineKitSDK.so:对‘curl_formadd’未定义的引用 /home/maphysart/Desktop/Marks/TengineKit-test/Linux/sample/FaceDemo/libs/libTengineKitSDK.so:对‘curl_easy_setopt’未定义的引用 collect2: error: ld returned 1 exit status CMakeFiles/FaceSDKDemo.dir/build.make:144: recipe for target '../bin/FaceSDKDemo' failed make[2]: [../bin/FaceSDKDemo] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/FaceSDKDemo.dir/all' failed make[1]: [CMakeFiles/FaceSDKDemo.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2怎样解决?