Closed deepak8084 closed 1 year ago
Looks like you set your GUROBI_HOME
variable to /opt/gurobi_server900/linux64
, correct? The FindGUROBI cmake module was written for Gurobi 7.0.X; you ought to be able to update it for Gurobi 9.X, though I have no idea if the API will have changed enough to matter. Alternatively you could consider downloading the older Gurobi (if it's still available for download).
Yes, Gurobi 7.0 is not available on the website. So, I've installed Gurobi 9.0. What do I need to change in the cmake file?
May I know, apart from gurobi70 to gurobi90, what else do I need to change in the cmake file?
I don't remember the exact folder and file structure of the Gurobi installer. It looks like they might have changed the include path to the header file? Run the following and paste the output back please.
cd ${GUROBI_HOME}
find . -type d | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/| - \1/"
This is what i got,
I need the full output to be sure (copy paste from the terminal, not a screenshot), but it looks like you don't have the Gurobi optimizer itself installed, but instead the Gurobi server files. In particular I don't see src
, or include
folders. Here's what I see when I extract the files from the optimizer tarball:
[/opt/gurobi903/linux64]
me@mypc $ find . -type d | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/| - \1/"
.
| - src
| | - build
| | - cpp
| - R
| - docs
| | - remoteservices
| | - quickstart_windows
| | - refman
| | - quickstart_linux
| | - examples
| | - quickstart_mac
| - lib
| | - python3.7_utf32
| | | - gurobipy
| | - python2.7_utf16
| | | - gurobipy
| | - python3.5_utf32
| | | - gurobipy
| | - python3.7
| | | - importlib
| | | - sqlite3
| | | - collections
| | | - json
| | | - logging
| | | - encodings
| | | - gurobipy
| | | - config
| | | - xlrd
| | | - lib-dynload
| | - python3.8_utf32
| | | - gurobipy
| | - python2.7_utf32
| | | - gurobipy
| | - python3.6_utf32
| | | - gurobipy
| - include
| | - python3.7
| - matlab
| | - html
| - examples
| | - data
| | - vb
| | - R
| | - c
| | - build
| | | - DOTNETCore2
| | - c++
| | - matlab
| | - python
| | - java
| | - c#
| - bin
deepak@deepak-7: cd ${GUROBI_HOME}
deepak@deepak-7: ~/Dropbox/Akash_ws/src/gurobi_server900/linux64: find . -type d | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/| - \1/"
.
| - docs
| | - remoteservices
| - lib
| - bin
| | - data
| | | - runtimes
| | | | - v8.1.0
| | | | - v9.0.0
| | | | - v8.0.0
| | | | - v8.1.1
| | | | - v8.0.1
| - resources
| | - grb_rsr
| | | - public
| | | | - css
| | | | - img
| | - grb_rsm
| | | - public
| | | | - compiled_doc
| | | | | - tour
| | | | | | - batches
| | | | | | | - assets
| | | | | | | | - fonts
| | | | | | - clusters
| | | | | | | - assets
| | | | | | | | - fonts
| | | | | | - jobs
| | | | | | | - assets
| | | | | | | | - fonts
| | | | | | - welcome
| | | | | | | - assets
| | | | | | | | - fonts
| | | | | | - finish
| | | | | | | - assets
| | | | | | | | - fonts
| | | | | | - accounts
| | | | | | | - assets
| | | | | | | | - fonts
| | | | | - overview
| | | | | | - assets
| | | | | | | - fonts
| | | | - assets
| | | | | - images
| | | | | - fonts
| | - grb_rs
| | | - public
| | | | - css
| | | | - lib
| | | | | - swagger-ui
| | | | | | - dist
| | | | | | | - css
| | | | | | | - lib
| | | | | | | - lang
| | | | | | | - images
| | | | | | | - fonts
| | | | - img
deepak@deepak-7:~/Dropbox/Akash_ws/src/gurobi_server900/linux64: ^C
I've done a small mistake earlier, instead of gurobi9.0.X I've installed the server version. Now I've changed the version and I'm getting these results,
deepak@deepak-7:~$ cd ${GUROBI_HOME}
deepak@deepak-7:~/Dropbox/Akash_ws/src/gurobi903/linux64$ find . -type d | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/| - \1/"
.
| - src
| | - cpp
| | - build
| - docs
| | - quickstart_windows
| | - remoteservices
| | - refman
| | - quickstart_mac
| | - examples
| | - quickstart_linux
| - R
| - lib
| | - python3.5_utf32
| | | - gurobipy
| | - python3.7
| | | - logging
| | | - config
| | | - encodings
| | | - importlib
| | | - gurobipy
| | | - xlrd
| | | - json
| | | - lib-dynload
| | | - collections
| | | - sqlite3
| | - python3.8_utf32
| | | - gurobipy
| | - python3.7_utf32
| | | - gurobipy
| | - python2.7_utf16
| | | - gurobipy
| | - python2.7_utf32
| | | - gurobipy
| | - python3.6_utf32
| | | - gurobipy
| - examples
| | - c#
| | - vb
| | - java
| | - data
| | - R
| | - python
| | - c++
| | - c
| | - build
| | | - DOTNETCore2
| | - matlab
| - bin
| - include
| | - python3.7
| - matlab
| | - html
deepak@deepak-7:~/Dropbox/Akash_ws/src/gurobi903/linux64$
Make sure you have GUROBI_HOME
set correctly (looks like you did update it); then try building again. Let me know if you still have errors.
I've installed gurobi in my main workspace(Akash_ws), everything else is the same,
export GUROBI_HOME="/home/deepak/Dropbox/Akash_ws/src/gurobi903/linux64"
export PATH="${PATH}:${GUROBI_HOME}/bin"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"
The error message must have changed at least a little to reflect the new install location?
-- -------------GUROBI_INCLUDE_DIR-NOTFOUND
-- -------------/opt/gurobi_server900/linux64/lib/libgurobi_c++.a;GUROBI_LIBRARY-NOTFOUND
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find GUROBI (missing: GUROBI_LIBRARY GUROBI_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
mab_ms/smmap/cmake/modules/FindGUROBI.cmake:29 (find_package_handle_standard_args)
mab_ms/smmap/CMakeLists.txt:25 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/deepak/Dropbox/Akash_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/deepak/Dropbox/Akash_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
this is the error I'm getting now,
deepak@deepak-7:~/Dropbox/Akash_ws$ catkin_make
Base path: /home/deepak/Dropbox/Akash_ws
Source space: /home/deepak/Dropbox/Akash_ws/src
Build space: /home/deepak/Dropbox/Akash_ws/build
Devel space: /home/deepak/Dropbox/Akash_ws/devel
Install space: /home/deepak/Dropbox/Akash_ws/install
WARNING: Package name "OpenSceneGraph" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes.
####
#### Running command: "cmake /home/deepak/Dropbox/Akash_ws/src -DCATKIN_DEVEL_PREFIX=/home/deepak/Dropbox/Akash_ws/devel -DCMAKE_INSTALL_PREFIX=/home/deepak/Dropbox/Akash_ws/install -G Unix Makefiles" in "/home/deepak/Dropbox/Akash_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/deepak/Dropbox/Akash_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/deepak/Dropbox/Akash_ws/devel;/home/deepak/laser_ws/devel;/home/deepak/catkin_ws/devel;/home/deepak/robot_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/deepak/Dropbox/Akash_ws/devel;/home/deepak/laser_ws/devel;/home/deepak/catkin_ws/devel;/home/deepak/robot_ws/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/deepak/Dropbox/Akash_ws/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17")
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
WARNING: Package name "OpenSceneGraph" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes.
WARNING: Package name "OpenSceneGraph" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes.
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 12 packages in topological order:
-- ~~ - OpenSceneGraph
-- ~~ - bullet_physics
-- ~~ - haptics
-- ~~ - osg_works
-- ~~ - osg_bullet
-- ~~ - kinematics_toolbox
-- ~~ - smmap_msgs
-- ~~ - arc_utilities
-- ~~ - bullet_helpers
-- ~~ - smmap_experiment_params
-- ~~ - deform_simulator
-- ~~ - smmap
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'OpenSceneGraph'
-- ==> add_subdirectory(mab_ms/deform_control/external_libs/OpenSceneGraph-2.8.5)
WARNING: Package name "OpenSceneGraph" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes.
-- Checking for module 'gtkglext-x11-1.0'
-- No package 'gtkglext-x11-1.0' found
-- Checking for module 'librsvg-2.0'
-- No package 'librsvg-2.0' found
-- Checking for module 'poppler-glib'
-- No package 'poppler-glib' found
-- +++ processing catkin package: 'bullet_physics'
-- ==> add_subdirectory(mab_ms/deform_control/external_libs/bullet-2.79)
INTEL OPENCL NOT FOUND
NVidia OPENCL NOT FOUND
-- +++ processing catkin package: 'haptics'
-- ==> add_subdirectory(mab_ms/deform_control/external_libs/haptics)
-- +++ processing catkin package: 'osg_works'
-- ==> add_subdirectory(mab_ms/deform_control/external_libs/osgWorks-2.0)
-- +++ processing catkin package: 'osg_bullet'
-- ==> add_subdirectory(mab_ms/deform_control/external_libs/osgBullet-2.0)
-- +++ processing catkin package: 'kinematics_toolbox'
-- ==> add_subdirectory(mab_ms/kinematics_toolbox)
-- +++ processing catkin package: 'smmap_msgs'
-- ==> add_subdirectory(mab_ms/smmap_msgs)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Generating .msg files for action smmap_msgs/TestGrippersPoses /home/deepak/Dropbox/Akash_ws/src/mab_ms/smmap_msgs/action/TestGrippersPoses.action
-- smmap_msgs: 11 messages, 8 services
-- +++ processing catkin package: 'arc_utilities'
-- ==> add_subdirectory(mab_ms/arc_utilities)
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- filesystem
-- system
-- +++ processing catkin package: 'bullet_helpers'
-- ==> add_subdirectory(mab_ms/deform_control/bullet_helpers)
-- +++ processing catkin package: 'smmap_experiment_params'
-- ==> add_subdirectory(mab_ms/smmap_experiment_params)
-- +++ processing catkin package: 'deform_simulator'
-- ==> add_subdirectory(mab_ms/deform_control/deform_simulator)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- system
-- filesystem
-- program_options
-- thread
-- chrono
-- date_time
-- atomic
-- Enabling OpenMP for SMMAP library
-- +++ processing catkin package: 'smmap'
-- ==> add_subdirectory(mab_ms/smmap)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- -------------/home/deepak/Dropbox/Akash_ws/src/gurobi903/linux64/include
-- -------------/home/deepak/Dropbox/Akash_ws/src/gurobi_server900/linux64/lib/libgurobi_c++.a;GUROBI_LIBRARY-NOTFOUND
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find GUROBI (missing: GUROBI_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
mab_ms/smmap/cmake/modules/FindGUROBI.cmake:29 (find_package_handle_standard_args)
mab_ms/smmap/CMakeLists.txt:25 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/deepak/Dropbox/Akash_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/deepak/Dropbox/Akash_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
deepak@deepak-7:~/Dropbox/Akash_ws$
Okay, it's still finding the server version of the C++ portion of the library, and failing to find the C library. This is 2 distinct issues. There is also one other issue that I suspect has not appeared yet, so let's fix that one at the same time.
GUROBI_CXX_LIBRARY
)It's been a very long time since I used cmake
in any form (which catkin_make
is using under the hood). Let's do the "start from scratch" option. From your catkin workspace, delete the build
folder. From your logs that would be
cd ~/Dropbox/Akash_ws
rm -r build
I believe. Alliteratively you could try just deleting the CMakeCache.txt
file from inside the build
folder; that might do what we need without triggering a rebuild of everything.
libgurobi_c++.a
.cd ${GUROBI_HOME}/lib
ln -sf libgurobi_g++5.2.a libgurobi_c++.a
GUROBI_LIBRARY
)It's vaguely possible that clearing the CMake cache (by deleting that file or the build
folder entirely) will resolve this. If not, we'll circle back to it. There is always the possibility of directly setting GUROBI_LIBRARY
if that is suitable for you.
okay, I've deleted the CMakeCache.txt
file and CMake is able to find the g++-5.2 version after this I've deleted cmake.check_cache
file from build/CMakeFiles
. what's the next step?
What is the output from catkin_make
right now?
Still, I'm getting the same error.
I'm assuming you're getting this now?
-- -------------/home/deepak/Dropbox/Akash_ws/src/gurobi903/linux64/include
-- -------------/home/deepak/Dropbox/Akash_ws/src/gurobi903/linux64/lib/libgurobi_c++.a;GUROBI_LIBRARY-NOTFOUND
Can you paste the contents of your FindGUROBI.cmake
file here please.
Yes, I'm getting the same error,
sure, this is the content of FindGUROBI.cmake
#### Taken from https://github.com/joschu/trajopt/blob/master/cmake/modules/FindGUROBI.cmake
#### Taken from http://www.openflipper.org/svnrepo/CoMISo/trunk/CoMISo/cmake/FindGUROBI.cmake
# - Try to find GUROBI
# Once done this will define
# GUROBI_FOUND - System has Gurobi
# GUROBI_INCLUDE_DIRS - The Gurobi include directories
# GUROBI_LIBRARIES - The libraries needed to use Gurobi
find_path(GUROBI_INCLUDE_DIR NAMES gurobi_c++.h PATHS "$ENV{GUROBI_HOME}/include")
find_library(GUROBI_LIBRARY NAMES gurobi gurobi_server900 PATHS "$ENV{GUROBI_HOME}/lib")
find_library(GUROBI_CXX_LIBRARY NAMES gurobi_c++ PATHS "$ENV{GUROBI_HOME}/lib")
set(GUROBI_INCLUDE_DIRS "${GUROBI_INCLUDE_DIR}")
set(GUROBI_LIBRARIES "${GUROBI_CXX_LIBRARY};${GUROBI_LIBRARY}")
message(STATUS "-------------${GUROBI_INCLUDE_DIRS}")
message(STATUS "-------------${GUROBI_LIBRARIES}")
# use c++ headers as default
# set(GUROBI_COMPILER_FLAGS "-DIL_STD" CACHE STRING "Gurobi Compiler Flags")
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LIBCPLEX_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(GUROBI DEFAULT_MSG GUROBI_LIBRARY GUROBI_CXX_LIBRARY GUROBI_INCLUDE_DIR)
mark_as_advanced(GUROBI_INCLUDE_DIR GUROBI_LIBRARY GUROBI_CXX_LIBRARY)
This is your problem:
find_library(GUROBI_LIBRARY NAMES gurobi gurobi_server900 PATHS "$ENV{GUROBI_HOME}/lib")
Inside ${GUROBI_HOME}/lib
there is a libgurobi90.so
, not a libgurobi_server900.so
. Change it to
find_library(GUROBI_LIBRARY NAMES gurobi gurobi90 PATHS "$ENV{GUROBI_HOME}/lib")
and you should be good to go.
Thank You so much, for your help. Unfortunately, my laptop is not able to finish the catkin_make, so tomorrow I will try it on my Desktop. so far it has completed 33% on my laptop without any error.
Can I try it on Ubuntu 20.04 LTS? also what would be the next step after this?
You're welcome to try it on 20.04, though I have no real idea of what issues you may run into. I've never used this repo on anything past 16.04.
You could try these repos which have all the same functionality as this one (though in somewhat different forms). They were last used on 18.04 I believe.
The above repositories require the following 2 as well. These ones almost certainly compile on 20.04, possibly even 22.04.
I may have missed a repo or 2 that is needed, but catkin will tell you.
As for "what would be the next step after this" - that would depend on what you are trying to do - I have no idea what that is.
I tried to do it in ubuntu 20.04 on my desktop but I got this error,
[ 76%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/Transform.o
[ 76%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/Uniform.o
[ 76%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/VertexProgram.o
[ 76%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/Viewport.o
[ 76%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/VisibilityGroup.o
[ 76%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/Effect.o
[ 76%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/AnisotropicLighting.o
[ 76%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/BumpMapping.o
[ 76%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/Cartoon.o
[ 76%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/Scribe.o
[ 76%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/SpecularHighlights.o
[ 76%] Built target smmap_UCB
[ 77%] Linking CXX shared module /home/vyas/Akash_ws/devel/lib/osgPlugins-2.8.5/osgdb_ive.so
[ 77%] Built target osgdb_ive
make: *** [Makefile:141: all] Error 2
Invoking "make -j16 -l16" failed
caktin_make
runs many jobs in parallel by default, so the actual error message that shows the build failure is often many lines up in the console output. Run catkin_make -j1
to run only one build job at a time so that you can isolate the build failure without extra output from other targets getting in the way of debugging.
This time I got this error,
[ 54%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/bvh/CMakeFiles/osgdb_bvh.dir/ReaderWriterBVH.o
[ 54%] Linking CXX shared module /home/vyas/PhD/devel/lib/osgPlugins-2.8.5/osgdb_bvh.so
[ 54%] Built target osgdb_bvh
[ 54%] Built target osgdb_x
[ 54%] Built target osgdb_dw
[ 55%] Built target osgdb_dxf
[ 58%] Built target osgdb_openflight
[ 59%] Built target osgdb_geo
[ 59%] Built target osgdb_obj
[ 59%] Built target osgdb_pic
[ 60%] Built target osgdb_stl
[ 62%] Built target osgdb_3ds
[ 62%] Built target osgdb_ac
[ 62%] Built target osgdb_logo
[ 62%] Built target osgdb_lws
[ 62%] Built target osgdb_md2
[ 62%] Built target osgdb_osgtgz
[ 62%] Built target osgdb_tgz
[ 62%] Built target osgdb_shp
[ 62%] Built target osgdb_txf
[ 63%] Built target osgdb_bsp
[ 64%] Built target osgdb_mdl
[ 64%] Built target osgdb_ply
[ 64%] Building CXX object mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/txp/CMakeFiles/osgdb_txp.dir/ReaderWriterTXP.o
/home/vyas/PhD/src/mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/txp/ReaderWriterTXP.cpp: In member function ‘osg::Node* txp::ReaderWriterTXP::getTileContent(const txp::TXPArchive::TileInfo&, int, int, int, txp::TXPArchive*, std::vector<txp::TXPArchive::TileLocationInfo>&)’:
/home/vyas/PhD/src/mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/txp/ReaderWriterTXP.cpp:818:16: error: cannot convert ‘bool’ to ‘osg::Node*’ in return
818 | return false;
| ^~~~~
/home/vyas/PhD/src/mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/txp/ReaderWriterTXP.cpp: In member function ‘osg::Node* txp::ReaderWriterTXP::getTileContent(const txp::TXPArchive::TileInfo&, const txp::TXPArchive::TileLocationInfo&, txp::TXPArchive*, std::vector<txp::TXPArchive::TileLocationInfo>&)’:
/home/vyas/PhD/src/mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/txp/ReaderWriterTXP.cpp:855:16: error: cannot convert ‘bool’ to ‘osg::Node*’ in return
855 | return false;
| ^~~~~
make[2]: *** [mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/txp/CMakeFiles/osgdb_txp.dir/build.make:63: mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/txp/CMakeFiles/osgdb_txp.dir/ReaderWriterTXP.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4943: mab_ms-master/deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/txp/CMakeFiles/osgdb_txp.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j1" failed
@dmcconachie, do you have any idea, what could be the possible error?
This looks like a GCC version update issue; the function in question returns a pointer, and bool false
can no longer be implicitly converted to a nullptr
. Some number of these issues may have been solved already in this repo: https://github.com/UM-ARM-Lab/deform_control/tree/master/external_libs/
In general these are the sorts of issues that I expected to happen when upgrading to 20.04.
Hi.. @dmcconachie, I've installed ubuntu 18.04 and in that i'm getting this error,
-- Could NOT find pybind11_catkin (missing: pybind11_catkin_DIR)
-- Could not find the required component 'pybind11_catkin'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "pybind11_catkin"
with any of the following names:
pybind11_catkinConfig.cmake
pybind11_catkin-config.cmake
Add the installation prefix of "pybind11_catkin" to CMAKE_PREFIX_PATH or
set "pybind11_catkin_DIR" to a directory containing one of the above files.
If "pybind11_catkin" provides a separate development package or SDK, be
sure it has been installed.
Call Stack (most recent call first):
mab_ms/arc_utilities/CMakeLists.txt:7 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/vyas/akash_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/vyas/akash_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
I believe this is the repository I was using, though you may have to go to an older commit on this repo. https://github.com/wxmerkt/pybind11_catkin
Now, I'm getting this error,
-- +++ processing catkin package: 'smmap_utilities'
-- ==> add_subdirectory(mab_ms/smmap_utilities)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Found GUROBI: /home/vyas/akash_ws/src/gurobi903/linux64/lib/libgurobi90.so
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find NOMAD (missing: NOMAD_LIBRARY NOMAD_INCLUDE_DIR
SGTELIB_LIBRARY SGTELIB_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
mab_ms/smmap_utilities/cmake/modules/FindNOMAD.cmake:29 (find_package_handle_standard_args)
mab_ms/smmap_utilities/CMakeLists.txt:23 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/vyas/akash_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/vyas/akash_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
I've added the path of NOMAD directory to my .barsrc file and here is my FindNOMAD.cmake file,
## Copied from FindGUROBI.cmake
# - Try to find NOMAD
# Once done this will define
# NOMAD_FOUND - System has NOMAD
# NOMAD_INCLUDE_DIRS - The NOMAD include directories
# NOMAD_LIBRARIES - The libraries needed to use NOMAD
find_path(NOMAD_INCLUDE_DIR NAMES nomad.hpp PATHS "$ENV{NOMAD_HOME}/src")
find_path(SGTELIB_INCLUDE_DIR NAMES sgtelib.hpp PATHS "$ENV{NOMAD_HOME}/ext/sgtelib/src")
find_library(NOMAD_LIBRARY NAMES nomad PATHS "$ENV{NOMAD_HOME}/lib")
find_library(SGTELIB_LIBRARY NAMES sgtelib PATHS "$ENV{NOMAD_HOME}/ext/sgtelib/lib")
set(NOMAD_INCLUDE_DIRS "${NOMAD_INCLUDE_DIR};${SGTELIB_INCLUDE_DIR}")
set(NOMAD_LIBRARIES "${NOMAD_LIBRARY};${SGTELIB_LIBRARY}")
#message(STATUS "-------------${NOMAD_INCLUDE_DIRS}")
#message(STATUS "-------------${NOMAD_LIBRARIES}")
# use c++ headers as default
# set(NOMAD_COMPILER_FLAGS "-DIL_STD" CACHE STRING "NOMAD Compiler Flags")
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LIBCPLEX_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(NOMAD DEFAULT_MSG NOMAD_LIBRARY NOMAD_INCLUDE_DIR SGTELIB_LIBRARY SGTELIB_INCLUDE_DIR)
mark_as_advanced(NOMAD_INCLUDE_DIR NOMAD_LIBRARY SGTELIB_LIBRARY SGTELIB_INCLUDE_DIR)
I've downloaded and added src
,ext
folder separately into to main NOMAD directory and now I'm getting this error,
-- +++ processing catkin package: 'smmap_utilities'
-- ==> add_subdirectory(mab_ms/smmap_utilities)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find NOMAD (missing: NOMAD_LIBRARY SGTELIB_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
mab_ms/smmap_utilities/cmake/modules/FindNOMAD.cmake:29 (find_package_handle_standard_args)
mab_ms/smmap_utilities/CMakeLists.txt:23 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/vyas/akash_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/vyas/akash_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
I've checked $ENV{NOMAD_HOME}/lib
but there is no file or folder named nomad same is the case for $ENV{NOMAD_HOME}/ext/sgtelib/lib
there is no folder named sgtelib
I looks like NOMAD may have updated their installer etc. since I last used it, hence the README
/FindNOMAD
of smmap_utilities
is out of date. I'd recommend either:
smmap_utilities
and then anything in smmap
that uses it
FindNOMAD
as appropriateI don't have any more time to help with this today, but I might tomorrow.
Do you have any idea about this error,
Boost version: 1.65.1 -- Found the following Boost libraries: -- filesystem -- system -- +++ processing catkin package: 'bullet_helpers' -- ==> add_subdirectory(mab_ms/deform_control/bullet_helpers) -- +++ processing catkin package: 'smmap_experiment_params' -- ==> add_subdirectory(mab_ms/smmap_experiment_params) -- +++ processing catkin package: 'deform_simulator' -- ==> add_subdirectory(mab_ms/deform_control/deform_simulator) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Boost version: 1.65.1 -- Found the following Boost libraries: -- system -- filesystem -- program_options -- thread -- chrono -- date_time -- atomic -- Enabling OpenMP for SMMAP library -- +++ processing catkin package: 'smmap' -- ==> add_subdirectory(mab_ms/smmap) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- -------------GUROBI_INCLUDE_DIR-NOTFOUND -- -------------/opt/gurobi_server900/linux64/lib/libgurobi_c++.a;GUROBI_LIBRARY-NOTFOUND CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find GUROBI (missing: GUROBI_LIBRARY GUROBI_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) mab_ms/smmap/cmake/modules/FindGUROBI.cmake:29 (find_package_handle_standard_args) mab_ms/smmap/CMakeLists.txt:25 (find_package)
-- Configuring incomplete, errors occurred! See also "/home/deepak/Dropbox/Akash_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/deepak/Dropbox/Akash_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed