-
-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Description
The error step is here:
[ 58%] Linking CXX executable io_test_pbf
CMakeFiles/io_test_pbf.dir/t/io/test_pbf.cpp.o: In function `osmium::io::detail::decode_blob(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/undefined/work/kvadom/libosmium/include/osmium/io/detail/zlib.hpp:108: undefined reference to `uncompress'
/home/undefined/work/kvadom/libosmium/include/osmium/io/detail/zlib.hpp:111: undefined reference to `zError'
CMakeFiles/io_test_pbf.dir/t/io/test_pbf.cpp.o: In function `void std::vector<std::thread, std::allocator<std::thread> >::_M_realloc_insert<void (osmium::thread::Pool::*)(), osmium::thread::Pool*>(__gnu_cxx::__normal_iterator<std::thread*, std::vector<std::thread, std::allocator<std::thread> > >, void (osmium::thread::Pool::*&&)(), osmium::thread::Pool*&&)':
/usr/include/c++/7/thread:126: undefined reference to `pthread_create'
CMakeFiles/io_test_pbf.dir/t/io/test_pbf.cpp.o: In function `osmium::thread::Pool::Pool(int, unsigned long)':
/usr/include/c++/7/thread:126: undefined reference to `pthread_create'
CMakeFiles/io_test_pbf.dir/t/io/test_pbf.cpp.o: In function `osmium::io::Reader::Reader<>(osmium::io::File const&)':
/usr/include/c++/7/thread:126: undefined reference to `pthread_create'
/usr/include/c++/7/thread:126: undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
test/CMakeFiles/io_test_pbf.dir/build.make:95: recipe for target 'test/io_test_pbf' failed
make[2]: *** [test/io_test_pbf] Error 1
CMakeFiles/Makefile2:2360: recipe for target 'test/CMakeFiles/io_test_pbf.dir/all' failed
make[1]: *** [test/CMakeFiles/io_test_pbf.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
**** Installation failed. Aborting package creation.
Metadata
Metadata
Assignees
Labels
No labels