-
Notifications
You must be signed in to change notification settings - Fork 28
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
Build issue, Boost libraries for monero build differs from this project #1
Comments
|
@iDunk5400 created a patch that solves this specific issue, the Boost_NO_BOOST_CMAKE part specifically. diff --git a/CMakeLists.txt b/CMakeLists.txt
index 734b2ac..6bd2073 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -120,9 +120,12 @@ endif()
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
+set(Boost_NO_BOOST_CMAKE ON)
find_package(Boost 1.58 QUIET REQUIRED COMPONENTS chrono filesystem program_options regex serialization system thread)
if (NOT (Boost_THREAD_LIBRARY STREQUAL monero_Boost_THREAD_LIBRARY_RELEASE))
+ message(STATUS "Found Boost_THREAD_LIBRARY: ${Boost_THREAD_LIBRARY}")
+ message(STATUS "Found monero_Boost_THREAD_LIBRARY_RELEASE: ${monero_Boost_THREAD_LIBRARY_RELEASE}")
message(FATAL_ERROR "Boost libraries for monero build differs from this project")
endif()
@@ -157,7 +160,7 @@ set_property(TARGET monero::libraries PROPERTY
)
set_property(TARGET monero::libraries PROPERTY
INTERFACE_LINK_LIBRARIES
- ${CMAKE_DL_LIBS}
+ ${IMPORTED_MONERO_LIBRARIES}
${Boost_CHRONO_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_REGEX_LIBRARY}
@@ -169,7 +172,7 @@ set_property(TARGET monero::libraries PROPERTY
${monero_OPENSSL_SSL_LIBRARY}
${monero_SODIUM_LIBRARY}
${monero_UNBOUND_LIBRARIES}
- ${IMPORTED_MONERO_LIBRARIES}
+ ${CMAKE_DL_LIBS}
)
set(LMDB_INCLUDE "${monero_LMDB_INCLUDE}") |
Someone else reported this privately - this fix makes sense. My development setup doesn't have Boost+CMake apparently. @iDunk5400 do you want to issue a PR or do you have an email that I can use for attribution? |
I originally PRed the Boost cmake fix to Monero to solve issues in MSYS2, but later mooo also had issues on Linux. Is it OK to PR this as is above in a single commit ? I switched places of those vars to fix linking issues on Ubuntu 18.04, lots of unresolved dependencies without it. I also added a couple of cmake status messages to make it obvious why the comparison failed. |
I just tried the above patch, but it failed (less noisy than without).
The cmake output:
And the error:
|
Hmm. I guess the error I'm seeing has to do with something else.
|
The text was updated successfully, but these errors were encountered: