-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
CoinUtilsConfig.cmake not found #1236
Comments
Supposing you are using the master branch (our trunk) I'm using a custom CMake based build of CoinUtils to provide a multi-platform see: Lines 59 to 68 in 8085763
note: I've send a PR to coin-or maintainer to add them. An other way would be for you to provide a custom FindCoinUtils.cmake module (using the CMake FindPkgConfig module) to use your CoinUtils brew installation (you'll need to provide a Please note the CMake build is still experimental |
Thanks for the reply. I was using the stable version which looks like it was the wrong branch. So i did the following modification to the build commands: and this was the result:
I can see all of the *config.cmake and *target.cmake files in the dependencies/install/lib/cmake folder, When i step through the rest of the instructions,
it seems that it's never actually building the dependencies on my machine. If I navigate to either dependencies/gflags/build/lib or dependencies/install/lib it didn't build any of the libraries for MacOSX |
it should build all dependencies at configure time (when you run I'll take a look this weekend ! Thx for the feedback |
Looks like it's building the static libraries,
but when i go to build my project it can't find the static library:
in my cmake project i'm doing the following which I think is correct: edit: I should include the warning i get from cmake as well -
|
Please note, we don't install dependencies so you must provide them to your project... How did you integrate ortools in "MyProject" ? You can try to add to BUILD_DEPS is mostly used for testing purpose and wrapper package (Python,.Net, Java) in order to build standalone package. |
I've integrated the or-tools project through cmake two ways but i get the same result, either I include
or I include the or-tools folder in the main directory, the results is in my previous message. If i'm going to install CoinUtils with cmake support, should I use the code in
for CointUtils and any other dependencies that I need CMake support for? |
Hi, I'm trying to integrate ortools to a CMake project and I've reached the same step as @JimMcMahon :
I've tried with the stable branch built with make as well as the master + make and master + cmake. I know I need to provide the dependencies myself and I've tried using both the gflags version built with ortools as well as a gflags version built externally (both as a shared and static lib) but still got the same problem. My minimal version of the CMakeList look like that :
I've tried adding gflags to the CMAKE_PREFIX_PATH a few different ways as bellow :
And I've tried using find_package a few different ways too :
Any idea what I'm doing wrong ? |
you need this: Lines 12 to 13 in f3fd201
BTW sorry for the current "poor" integration documentation using the CMake-based build, I need to add ci/docker test and also try to build or-tools using external gflags or/and internal. And test the install rules too. |
Thanks, I can now compile. list(APPEND CMAKE_PREFIX_PATH "/home/m-a/vrp/or-tools/build/dependencies/install/")
find_package(ZLIB REQUIRED)
set(GFLAGS_USE_TARGET_NAMESPACE TRUE)
find_package(gflags REQUIRED CONFIG)
find_package(ortools CONFIG REQUIRED)
add_executable(VRPTest1Node src/VRPTest1Node.cpp)
target_link_libraries(VRPTest1Node ortools::ortools) |
I'm not 100% (i.e. not tested) but maybe this should work too list(APPEND CMAKE_PREFIX_PATH "/home/m-a/vrp/or-tools/build/dependencies/install/")
set(GFLAGS_USE_TARGET_NAMESPACE TRUE)
find_package(ortools CONFIG REQUIRED)
add_executable(VRPTest1Node src/VRPTest1Node.cpp)
target_link_libraries(VRPTest1Node ortools::ortools) since we already load/search our dependencies using the dependencies module or-tools/cmake/ortoolsConfig.cmake.in Lines 7 to 52 in f3fd201
|
I can remove
|
Kitware provides a FindZLIB.cmake as builtin -> I should not use Thx for the "error report" |
I'm trying the cmake build to get cmake support and i keep running into this:
Am i simply not configuring something properly? I've gone the brew route to get CoinUtils as well as installing CoinUtils from source to no available.
The text was updated successfully, but these errors were encountered: