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

cmake --build . --config Release - Shows Error #10

Open
sebpeterkasi opened this issue May 1, 2020 · 1 comment
Open

cmake --build . --config Release - Shows Error #10

sebpeterkasi opened this issue May 1, 2020 · 1 comment

Comments

@sebpeterkasi
Copy link

Hi there!
Thanks a lot for your amazing program but I am facing a problem when I want to execute the build as below:-
cmake --build . --config Release
Scanning dependencies of target xml_generator
[ 50%] Building CXX object src/CMakeFiles/xml_generator.dir/main.cc.o
[100%] Linking CXX executable ../bin/xml_generator
/usr/bin/ld: /usr/local/lib/libdlib.a(thread_pool_extension.cpp.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/CMakeFiles/xml_generator.dir/build.make:101: recipe for target 'bin/xml_generator' failed
make[2]: *** [bin/xml_generator] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/xml_generator.dir/all' failed
make[1]: *** [src/CMakeFiles/xml_generator.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

Please advice

@Rassibassi
Copy link

Had the same problem, by adding the following line into dlib-to-tf-keras-converter/xml_generator/cmake/FindDlib.cmake after find_package(GIF), it solved it for me

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")

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