Closed wich closed 5 years ago
Additional notes; adding -DBUILD_SHARED_LIBS=ON -DBoost_USE_STATIC_LIBS=OFF
to the cmake
call allows the checks to pass, but then the linking phase fails with many undefined reference
to various boost symbols, e.g.:
/usr/bin/ld: CMakeFiles/innoextract.dir/src/cli/extract.cpp.o: in function `process_file(boost::filesystem::path const&, extract_options const&)':
extract.cpp:(.text+0x8aca): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: extract.cpp:(.text+0x913f): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
/usr/bin/ld: extract.cpp:(.text+0x919c): undefined reference to `boost::filesystem::detail::create_directory(boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: extract.cpp:(.text+0x98b7): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
/usr/bin/ld: extract.cpp:(.text+0xc423): undefined reference to `boost::filesystem::path::parent_path() const'
/usr/bin/ld: extract.cpp:(.text+0xc440): undefined reference to `boost::filesystem::path::stem() const'
/usr/bin/ld: extract.cpp:(.text+0xc728): undefined reference to `boost::filesystem::detail::create_directories(boost::filesystem::path const&, boost::system::error_code*)'
Try -DBoost_NO_BOOST_CMAKE=ON
.
Relevant issues:
https://gitlab.kitware.com/cmake/cmake/issues/18865 https://github.com/lightspark/lightspark/issues/344
@orbea thanks that works. @dscharrer I guess the cmake files still need updates for boost 1.70.0 compatibility
Just tried with cmake version 3.13.5, no change, same errors.
Finding Boost is handled by CMake and this needs to be fixed there.
Trying to build innoextract with boost 1.70.0 & cmake 3.14.4 results in the error message
No suitable boost_iostreams variant has been identified!
Tried version 1.7 as well as current master (38ae68f393b2f3ed1862ec7f24b1d99bbbaacb19), both fail with the same error.
cmake command:
Relevant error messages: