Gazebo version 6: Symbol not found : __ZTVN4Ogre7MeshPtrE - ogre
I'm currently trying to run an old version of Gazebo as it is a part of a toolkit I need to use. When I try to run gzserver, I get the following output
$ gzserver
dyld: Symbol not found: __ZTVN4Ogre7MeshPtrE
Referenced from: /usr/local/lib/libgazebo_skyx.6.dylib
Expected in: flat namespace
in /usr/local/lib/libgazebo_skyx.6.dylib
fish: 'gzserver' terminated by signal SIGABRT (Abort)
Running otool on gzserver
⋊> ~ otool -L /usr/local/bin/gzserver 13:00:44
/usr/local/bin/gzserver:
libgazebo.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_sensors.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_rendering.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/freeimage/lib/libfreeimage.dylib (compatibility version 3.0.0, current version 3.18.0)
/usr/local/opt/tbb/lib/libtbb.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
libgazebo_physics.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_util.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_physics_ode.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_ode.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_gimpact.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_opende_ou.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/libccd/lib/libccd.2.dylib (compatibility version 2.0.0, current version 2.0.0)
libgazebo_opcode.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_physics_simbody.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/simbody/lib/libSimTKsimbody.3.6.dylib (compatibility version 3.6.0, current version 0.0.0)
/usr/local/opt/simbody/lib/libSimTKmath.3.6.dylib (compatibility version 3.6.0, current version 0.0.0)
/usr/local/opt/simbody/lib/libSimTKcommon.3.6.dylib (compatibility version 3.6.0, current version 0.0.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
libgazebo_physics_bullet.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/bullet/lib/libBulletSoftBody.2.87.dylib (compatibility version 2.87.0, current version 2.87.0)
/usr/local/opt/bullet/lib/libBulletDynamics.2.87.dylib (compatibility version 2.87.0, current version 2.87.0)
/usr/local/opt/bullet/lib/libBulletCollision.2.87.dylib (compatibility version 2.87.0, current version 2.87.0)
/usr/local/opt/bullet/lib/libLinearMath.2.87.dylib (compatibility version 2.87.0, current version 2.87.0)
/usr/local/opt/ogre1.9/lib/libOgreRTShaderSystem.1.9.0.dylib (compatibility version 1.9.0, current version 1.9.0)
/usr/local/opt/ogre1.9/lib/libOgreMain.1.9.0.dylib (compatibility version 1.9.0, current version 1.9.0)
/usr/local/opt/ogre1.9/lib/libOgreTerrain.1.9.0.dylib (compatibility version 1.9.0, current version 1.9.0)
/usr/local/opt/ogre1.9/lib/libOgrePaging.1.9.0.dylib (compatibility version 1.9.0, current version 1.9.0)
/usr/local/opt/ogre1.9/lib/libOgreOverlay.1.9.0.dylib (compatibility version 1.9.0, current version 1.9.0)
libgazebo_transport.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_skyx.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_selection_buffer.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
libgazebo_msgs.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_common.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/tinyxml/lib/libtinyxml.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/ffmpeg/lib/libavcodec.58.dylib (compatibility version 58.0.0, current version 58.18.100)
/usr/local/opt/ffmpeg/lib/libavformat.58.dylib (compatibility version 58.0.0, current version 58.12.100)
/usr/local/opt/ffmpeg/lib/libavutil.56.dylib (compatibility version 56.0.0, current version 56.14.100)
/usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 9.0.0)
/usr/local/opt/ffmpeg/lib/libswscale.5.dylib (compatibility version 5.0.0, current version 5.1.100)
/usr/local/opt/libtar/lib/libtar.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/opt/sdformat3/lib/libsdformat.3.dylib (compatibility version 3.0.0, current version 3.7.0)
/usr/local/opt/gts/lib/libgts-0.7.5.dylib (compatibility version 6.0.0, current version 6.1.0)
/usr/local/opt/glib/lib/libgthread-2.0.0.dylib (compatibility version 5801.0.0, current version 5801.1.0)
/usr/local/opt/glib/lib/libgmodule-2.0.0.dylib (compatibility version 5801.0.0, current version 5801.1.0)
/usr/local/opt/glib/lib/libglib-2.0.0.dylib (compatibility version 5801.0.0, current version 5801.1.0)
/usr/local/opt/gettext/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.5.0)
/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL (compatibility version 1.0.0, current version 1.0.0)
/usr/local/opt/gdal/lib/libgdal.20.dylib (compatibility version 25.0.0, current version 25.1.0)
/usr/local/opt/protobuf/lib/libprotobuf.17.dylib (compatibility version 18.0.0, current version 18.0.0)
libgazebo_math.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/ignition-math2/lib/libignition-math2.2.dylib (compatibility version 2.0.0, current version 2.9.0)
/usr/local/opt/boost/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_signals-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_program_options-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_regex-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_iostreams-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_date_time-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_chrono-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_atomic-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
When I try to run otool on the file gzserver is complaining about, I get
$ otool -L /usr/local/lib/libgazebo_skyx.6.dylib
/usr/local/lib/libgazebo_skyx.6.dylib:
libgazebo_skyx.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/ogre1.9/lib/libOgreMain.1.9.0.dylib (compatibility version 1.9.0, current version 1.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
I already tried to run the building of gazebo(which is installed from a git repo) several times and reinstall ogre. I installed qt4 using Homebrew.
When I am running gazebo, I get the following error
$ gazebo
dyld: Library not loaded: #rpath/libQtGui.4.dylib
Referenced from: /usr/local/bin/gazebo
Reason: image not found
fish: 'gazebo' terminated by signal SIGABRT (Abort)
If I'm running otool on gazebo
otool -L /usr/local/bin/gazebo 13:00:51
/usr/local/bin/gazebo:
libgazebo.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_sensors.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_gui.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_physics.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_physics_ode.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_ode.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_gimpact.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_opende_ou.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/libccd/lib/libccd.2.dylib (compatibility version 2.0.0, current version 2.0.0)
libgazebo_opcode.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_physics_bullet.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/bullet/lib/libBulletSoftBody.2.87.dylib (compatibility version 2.87.0, current version 2.87.0)
/usr/local/opt/bullet/lib/libBulletDynamics.2.87.dylib (compatibility version 2.87.0, current version 2.87.0)
/usr/local/opt/bullet/lib/libBulletCollision.2.87.dylib (compatibility version 2.87.0, current version 2.87.0)
/usr/local/opt/bullet/lib/libLinearMath.2.87.dylib (compatibility version 2.87.0, current version 2.87.0)
libgazebo_physics_simbody.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/simbody/lib/libSimTKsimbody.3.6.dylib (compatibility version 3.6.0, current version 0.0.0)
/usr/local/opt/simbody/lib/libSimTKmath.3.6.dylib (compatibility version 3.6.0, current version 0.0.0)
/usr/local/opt/simbody/lib/libSimTKcommon.3.6.dylib (compatibility version 3.6.0, current version 0.0.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
/usr/local/opt/ogre1.9/lib/libOgreRTShaderSystem.1.9.0.dylib (compatibility version 1.9.0, current version 1.9.0)
/usr/local/opt/ogre1.9/lib/libOgreMain.1.9.0.dylib (compatibility version 1.9.0, current version 1.9.0)
/usr/local/opt/ogre1.9/lib/libOgreTerrain.1.9.0.dylib (compatibility version 1.9.0, current version 1.9.0)
/usr/local/opt/ogre1.9/lib/libOgrePaging.1.9.0.dylib (compatibility version 1.9.0, current version 1.9.0)
/usr/local/opt/ogre1.9/lib/libOgreOverlay.1.9.0.dylib (compatibility version 1.9.0, current version 1.9.0)
libgazebo_client.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_util.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_gui_building.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_gui_model.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_gui_viewers.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_rendering.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_transport.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_skyx.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_selection_buffer.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
libgazebo_msgs.6.dylib (compatibility version 6.0.0, current version 6.5.1)
libgazebo_common.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/freeimage/lib/libfreeimage.dylib (compatibility version 3.0.0, current version 3.18.0)
/usr/local/opt/tinyxml/lib/libtinyxml.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/ffmpeg/lib/libavcodec.58.dylib (compatibility version 58.0.0, current version 58.18.100)
/usr/local/opt/ffmpeg/lib/libavformat.58.dylib (compatibility version 58.0.0, current version 58.12.100)
/usr/local/opt/ffmpeg/lib/libavutil.56.dylib (compatibility version 56.0.0, current version 56.14.100)
/usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 9.0.0)
/usr/local/opt/ffmpeg/lib/libswscale.5.dylib (compatibility version 5.0.0, current version 5.1.100)
/usr/local/opt/libtar/lib/libtar.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/opt/tbb/lib/libtbb.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/sdformat3/lib/libsdformat.3.dylib (compatibility version 3.0.0, current version 3.7.0)
/usr/local/opt/gts/lib/libgts-0.7.5.dylib (compatibility version 6.0.0, current version 6.1.0)
/usr/local/opt/glib/lib/libgthread-2.0.0.dylib (compatibility version 5801.0.0, current version 5801.1.0)
/usr/local/opt/glib/lib/libgmodule-2.0.0.dylib (compatibility version 5801.0.0, current version 5801.1.0)
/usr/local/opt/glib/lib/libglib-2.0.0.dylib (compatibility version 5801.0.0, current version 5801.1.0)
/usr/local/opt/gettext/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.5.0)
/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL (compatibility version 1.0.0, current version 1.0.0)
/usr/local/opt/gdal/lib/libgdal.20.dylib (compatibility version 25.0.0, current version 25.1.0)
libgazebo_math.6.dylib (compatibility version 6.0.0, current version 6.5.1)
/usr/local/opt/ignition-math2/lib/libignition-math2.2.dylib (compatibility version 2.0.0, current version 2.9.0)
/usr/local/opt/boost/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_signals-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_program_options-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_regex-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_iostreams-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_date_time-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_chrono-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/boost/lib/libboost_atomic-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/protobuf/lib/libprotobuf.17.dylib (compatibility version 18.0.0, current version 18.0.0)
#rpath/libQtGui.4.dylib (compatibility version 4.8.0, current version 4.8.7)
#rpath/libQtCore.4.dylib (compatibility version 4.8.0, current version 4.8.7)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
I'm using fish as my shell and my operating system is OSX.
When I'm running cmake(before running gzserver and gazebo) I get the following output:
cmake .. -DCMAKE_BUILD_TYPE="Release" \ 13:18:16
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DENABLE_SSE4=True \
-DENABLE_TESTS_COMPILATION:BOOL=False
-- Gazebo version 6.5.1
-- High memory tests: enabled
--
====== Finding 3rd Party Packages ======
-- Operating system is Apple MacOS X
-- Checking for module 'freeimage>=3.9.0'
-- No package 'freeimage' found
-- freeimage.pc not found, trying freeimage_include_dir and freeimage_library_dir flags.
-- Found /usr/local/include/FreeImage.h
-- Looking for FreeImage.h - found
-- Looking for libfreeimage - found
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- HDF5 Found
-- Checking for module 'libprofiler'
-- No package 'libprofiler' found
-- Looking for libprofiler - not found
-- Checking for module 'libtcmalloc'
-- No package 'libtcmalloc' found
-- Looking for libtcmalloc - not found
-- Looking for DARTCore - not found
-- DART not found, for dart physics engine option, please install libdart-core4-dev.
-- Using system tinyxml.
-- Looking for libtar.h - found
-- Looking for libtar.so - found
-- Checking for module 'tbb'
-- No package 'tbb' found
-- TBB not found, attempting to detect manually
-- Checking for module 'OGRE-Overlay'
-- Found OGRE-Overlay, version 1.9.0
-- Checking for modules 'playercore>=3.0;playerc++;playerwkb'
-- No package 'playercore' found
-- No package 'playerc++' found
-- No package 'playerwkb' found
-- Player not found, gazebo plugin for player will not be built.
-- Looking for GTS - found
-- Looking for libusb-1.0 - found. USB peripherals support enabled.
-- Checking for module 'OculusVR'
-- No package 'OculusVR' found
-- Oculus Rift support will be disabled.
-- Boost version: 1.67.0
-- Looking for SDFormat - found
-- Boost version: 1.67.0
-- Boost version: 1.67.0
-- Found the following Boost libraries:
-- thread
-- signals
-- system
-- filesystem
-- program_options
-- regex
-- iostreams
-- date_time
-- chrono
-- atomic
-- Looking for dlfcn.h - found
-- Looking for libdl - found
-- Looking for libgdal - found
-- ronn not found, manpages won't be generated
-- Looking for gzip to generate manpages - found
-- Looking for libspnav and spnav.h - not found
-- Looking for uuid - found
-- Checking for module 'libgvc'
-- No package 'libgvc' found
-- Checking for module 'libcgraph'
-- No package 'libcgraph' found
-- Checking for module 'libcdt'
-- No package 'libcdt' found
-- Could not find graphviz headers.
-- Could NOT find Graphviz_Gvc (missing: GRAPHVIZ_GVC_LIBRARY)
-- Could NOT find Graphviz_Cgraph (missing: GRAPHVIZ_CGRAPH_LIBRARY)
-- Could NOT find Graphviz_Cdt (missing: GRAPHVIZ_CDT_LIBRARY)
-- Could NOT find Graphviz Headers (missing: GRAPHVIZ_INCLUDE_DIR)
-- Looking for libgraphviz-dev - not found
-- Graphviz not found, Model editor's schematic view will be disabled.
-- Looking for ignition-math2-config.cmake - found
-- ----------------------------------------
-- Looking for display capabilities
-- + found a display available ($DISPLAY is set)
-- + found a valid dri display (glxinfo)
-- Checking gazebo build type
-- Enable host CFlags
--
SSE4 will be enabled if system supports it.
-- Enable upstream CFlags
--
====== Configuring 3rd Party Packages ======
-- ----------------------------------------
-- BUILD WARNINGS
-- DART not found, for dart physics engine option, please install libdart-core4-dev.
-- Player not found, gazebo plugin for player will not be built.
-- Oculus Rift support will be disabled.
-- ronn not found, manpages won't be generated
-- Graphviz not found, Model editor's schematic view will be disabled.
-- END BUILD WARNINGS
-- Custom CFlags: -stdlib=libc++ -Wall -Wextra -Wno-long-long -Wno-unused-value -Wno-unused-value -Wno-unused-value -Wno-unused-value -Wfloat-equal -Wshadow -Winit-self -Wswitch-default -Wmissing-include-dirs -pedantic -std=c++11
-- Build Type: Release
-- Install path: /usr/local
-- Configuration successful. Type make to compile gazebo
-- Configuring done
CMake Warning:
Value of common_headers contained a newline; truncating
CMake Warning:
Value of gui_headers contained a newline; truncating
CMake Warning:
Value of math_headers contained a newline; truncating
CMake Warning:
Value of message_headers contained a newline; truncating
CMake Warning:
Value of physics_headers contained a newline; truncating
CMake Warning:
Value of rendering_headers contained a newline; truncating
CMake Warning:
Value of sensors_headers contained a newline; truncating
CMake Warning:
Value of transport_headers contained a newline; truncating
CMake Warning:
Value of util_headers contained a newline; truncating
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
ActuatorPlugin
ArrangePlugin
BreakableJointPlugin
BuoyancyPlugin
CameraPlugin
CartDemoPlugin
CessnaGUIPlugin
CessnaPlugin
ContactPlugin
DepthCameraPlugin
DiffDrivePlugin
ElevatorPlugin
ExceptionModelPluginConstructor
ExceptionModelPluginInit
ExceptionModelPluginLoad
ForceTorqueModelRemovalTestPlugin
ForceTorquePlugin
GpuRayPlugin
ImuSensorPlugin
InitialVelocityPlugin
Issue1208Plugin
JointTrajectoryPlugin
LiftDragPlugin
ModelPropShop
ModelTrajectoryTestPlugin
MudPlugin
PressurePlugin
RandomVelocityPlugin
RayPlugin
RaySensorNoisePlugin
RestUiPlugin
RestWebPlugin
RubblePlugin
SimEventsPlugin
SkidSteerDrivePlugin
SonarPlugin
SphereAtlasDemoPlugin
SpringTestPlugin
TimerGUIPlugin
TransporterPlugin
VehiclePlugin
gazebo_common
gazebo_gimpact
gazebo_gui
gazebo_gui_building
gazebo_gui_model
gazebo_gui_viewers
gazebo_math
gazebo_msgs
gazebo_ode
gazebo_opcode
gazebo_opende_ou
gazebo_physics
gazebo_physics_bullet
gazebo_physics_ode
gazebo_physics_simbody
gazebo_rendering
gazebo_rendering_deferred
gazebo_selection_buffer
gazebo_sensors
gazebo_skyx
gazebo_transport
gazebo_util
libgazebo
libgazebo_client
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
CMake Warning:
Value of common_headers contained a newline; truncating
CMake Warning:
Value of gui_headers contained a newline; truncating
CMake Warning:
Value of math_headers contained a newline; truncating
CMake Warning:
Value of message_headers contained a newline; truncating
CMake Warning:
Value of physics_headers contained a newline; truncating
CMake Warning:
Value of rendering_headers contained a newline; truncating
CMake Warning:
Value of sensors_headers contained a newline; truncating
CMake Warning:
Value of transport_headers contained a newline; truncating
CMake Warning:
Value of util_headers contained a newline; truncating
-- Build files have been written to: /Users/malinaandahl/projects/revolve-simulator/gazebo/build
Related
How to compile an application with Static OpenCV Library on macOS via CMake
I have a question about how to configure the CMakeLists.txt file so that I can compile a program on macOS without using shared library, means it can be run on another macOS computer without requiring the installation of OpenCV. I have added the set(BUILD_SHARED_LIBS=OFF) to the CMakeLists.txt file, but when I check the compiled program by typing otool -L ./MyProgram on Terminal, it show me the following: /usr/local/opt/opencv/lib/libopencv_gpu.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /usr/local/opt/opencv/lib/libopencv_contrib.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /usr/local/opt/opencv/lib/libopencv_legacy.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /usr/local/opt/opencv/lib/libopencv_objdetect.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /usr/local/opt/opencv/lib/libopencv_calib3d.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /usr/local/opt/opencv/lib/libopencv_features2d.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /usr/local/opt/opencv/lib/libopencv_video.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /usr/local/opt/opencv/lib/libopencv_highgui.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /usr/local/opt/opencv/lib/libopencv_ml.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /usr/local/opt/opencv/lib/libopencv_imgproc.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /usr/local/opt/opencv/lib/libopencv_flann.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /usr/local/opt/opencv/lib/libopencv_core.2.4.dylib (compatibility version 2.4.0, current version 2.4.13) /opt/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.1.0) /opt/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0) /opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0) /opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0) /usr/local/opt/libpng/lib/libpng16.16.dylib (compatibility version 43.0.0, current version 43.0.0) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libsqlite3.dylib (compatibility version 9.0.0, current version 253.0.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 307.4.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0) I guess that it was not compiled with a static OpenCV library. Here is my CMakeLists.txt file: cmake_minimum_required(VERSION 3.6) project(MyProgram) include(../dlib_19_3/dlib/cmake) set(SOURCE_FILES main.cpp SupportFunction.cpp SupportFunction.h) add_executable(MyProgram ${SOURCE_FILES}) target_link_libraries(MyProgram dlib) set(USE_FAT_OPENCV TRUE) set(OpenCV_INCLUDE_DIR "/usr/local/Cellar/opencv/2.4.13.1/include/") include_directories(${OpenCV_INCLUDE_DIR}) set(OpenCV_LIBS "opencv_gpu;opencv_contrib;opencv_legacy;opencv_objdetect;opencv_calib3d;opencv_features2d;opencv_video;opencv_highgui;opencv_ml;opencv_imgproc;opencv_flann;opencv_core") link_directories(/usr/local/Cellar/opencv/2.4.13.1/lib) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(BUILD_SHARED_LIBS=OFF) include_directories(${OpenCV_INCLUDE_DIRS}) target_link_libraries(MyProgram ${OpenCV_LIBS}) I hope for the answer from you guys. Thank you for your time.
Invalid MEX-file error CascadeClassifier_.mexmaci64, libopencv_ocl.2.4.dylib
I am on OSX 10.10. I am trying to run a demo of a project which uses the following libraries and programs: MATLAB R2014b 64-bit. OpenCV 2.4.10.1 installed through Homebrew. VLFeat 0.9.20. mexopencv. I have run mex -setup in MATLAB which sets the compiler to clang. The path of VLFeat and mexopencv have been added in the startup.m file in MATLAB. When I try to run demo_test.m file I get the following errors in MATLAB: Invalid MEX-file '/Users/maverick/Documents/Project/mexopencv-master/+cv/private/CascadeClassifier_.mexmaci64': dlopen(/Users/maverick/Documents/Project/mexopencv-master/+cv/private/CascadeClassifier_.mexmaci64, 6): Symbol not found: __ZN2cv3ocl12getOclMatRefERKNS_11_InputArrayE Referenced from: /usr/local/lib/libopencv_superres.2.4.dylib Expected in: /Applications/MATLAB_R2014b.app/bin/maci64/libopencv_ocl.2.4.dylib in /usr/local/lib/libopencv_superres.2.4.dylib Error in cv.CascadeClassifier (line 33) this.id = CascadeClassifier_(filename); Error in faceAlign (line 8) detector = cv.CascadeClassifier('haarcascade_frontalface_alt2.xml'); Error in regressionFit (line 11) [shape, rat, ~, init_s] = faceAlign(img, [], [], R{round_number}, b{round_number}, [], pad, [1:66], 0); Error in demo_test (line 16) shape = regressionFit(img, [], R, b); I know the project works because I have tried it on another computer. How do I resolve this error and get the project to run? Thanks. EDIT 1: This is the output when I run otool -L (equivalent of ldd)... $ otool -L /Applications/MATLAB_R2014b.app/bin/maci64/libopencv_ocl.2.4.dylib /Applications/MATLAB_R2014b.app/bin/maci64/libopencv_ocl.2.4.dylib: #rpath/libopencv_ocl.2.4.dylib (compatibility version 2.4.0, current version 2.4.5) #rpath/libopencv_core.2.4.dylib (compatibility version 2.4.0, current version 2.4.5) #rpath/libopencv_imgproc.2.4.dylib (compatibility version 2.4.0, current version 2.4.5) #rpath/libopencv_objdetect.2.4.dylib (compatibility version 2.4.0, current version 2.4.5) #rpath/libtbb.dylib (compatibility version 0.0.0, current version 0.0.0) /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0) EDIT 2: This is the output of otool -L on CascadeClassifier_.mexmaci64 $ otool -L Documents/Project/mexopencv-master/+cv/private/CascadeClassifier_.mexmaci64 Documents/Project/mexopencv-master/+cv/private/CascadeClassifier_.mexmaci64: /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 20.0.0) /usr/local/lib/libopencv_calib3d.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_contrib.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_core.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_features2d.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_flann.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_gpu.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_highgui.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_imgproc.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_legacy.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_ml.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_nonfree.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_objdetect.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_ocl.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_photo.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_stitching.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_superres.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_video.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) /usr/local/lib/libopencv_videostab.2.4.dylib (compatibility version 2.4.0, current version 2.4.10) #rpath/libmx.dylib (compatibility version 0.0.0, current version 0.0.0) #rpath/libmex.dylib (compatibility version 0.0.0, current version 0.0.0) #rpath/libmat.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) Am I missing some library? Is the PATH not configured correctly ?
Matlab comes bundled with its own computer vision libraries. So it tries to use them first, even if you have OpenCV installed. The solution is to move those bundled libraries to another folder (for backup in case something goes wrong) and then sym link the actual OpenCV libraries to the location previously populated by the bundled libraries. If, after doing this, you get any error, then it is probably because Matlab is using its own library again. Do the same process again for this library too.
OS X dlopen can't find framework - Image Not Found
I'm trying to add Google Breakpad (some external framework) support to my application. I have done all the required steps, but when I try to load my application using dlopen, I get this error: (char *) error = 0x0000000100200175 "dlopen(/Users/user/MyApp.app/Contents/MacOS/MyApp, 1): Library not loaded: #executable_path/../Frameworks/Breakpad.framework/Versions/A/Breakpad\n Referenced from: /Users/user/MyApp.app/Contents/MacOS/MyApp\n Reason: image not found" I checked and the Breakpad file does indeed exist in the relative path (to the MyApp file). Here's the otool -L on the MyApp file (notice the #executable_path): Users-Mac:MacOS user$ otool -L MyApp MyApp: /usr/lib/libcurl.4.dylib (compatibility version 6.0.0, current version 6.1.0) /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) /usr/lib/libsqlite3.dylib (compatibility version 9.0.0, current version 9.6.0) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit (compatibility version 1.0.0, current version 1.0.0) #executable_path/../Frameworks/Breakpad.framework/Versions/A/Breakpad (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 152.0.0) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 15.0.0) /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/CoreAudioKit.framework/Versions/A/CoreAudioKit (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI (compatibility version 1.0.0, current version 49.0.0) /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0) /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.6.3) /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit (compatibility version 1.0.0, current version 533.21.1) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.43.0) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1038.36.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 38.0.0) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 44.0.0) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.62.0) Anyone has a clue?
Follow this steps, It may work: go to Target then press Build Phase left top of this page you will find + symbol, press this symbol. press New Copy Files Build Phase expand copy file then Drag you framework and drop in this section. Change the Destination to frameworks Hope it will Work
Well, it turns out it was a problem when using dynamic libraries and compiling for OS X 10.6. The #executable_path doesn't get updated after the dynamic load and thus the LOADED binary is looking for its dependencies relative to the LOADING binary. I ended up recompiling my framework, Breakpad, and using #loader_path instead of #executable_path, and now everything works just fine. More info here: dylib #executable_path path issue in a plug-in bundle
Multiple libcurl.4.dylib with different compatibility versions
I'm trying to run a binary executable built for 10.7 (ISCAgent in the below example) on Mac OS X 10.6.8. The problem with the binary is it depends on /usr/lib/libcurl.4.dylib with compatibility version of 7.0.0, while I only have version 6.0.0 installed: $ otool -L ISCAgent ISCAgent: #executable_path/libsslserver.dylib (compatibility version 0.0.0, current version 0.0.0) #executable_path/libssl.dylib (compatibility version 1.0.0, current version 1.0.0) #executable_path/libcrypto.dylib (compatibility version 1.0.0, current version 1.0.0) #executable_path/libcachecom.dylib (compatibility version 0.0.0, current version 0.0.0) #executable_path/libxerces-c-3.1.dylib (compatibility version 0.0.0, current version 0.0.0) #executable_path/libicuuc.40.dylib (compatibility version 40.0.0, current version 40.0.0) #executable_path/libicudata.40.dylib (compatibility version 40.0.0, current version 40.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0) $ otool -L libxerces-c-3.1.dylib libxerces-c-3.1.dylib: #executable_path/libxerces-c-3.1.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 7.0.0) #executable_path/libicuuc.40.dylib (compatibility version 40.0.0, current version 40.0.0) #executable_path/libicudata.40.dylib (compatibility version 40.0.0, current version 40.0.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0) $ otool -L /usr/lib/libcurl.4.dylib /usr/lib/libcurl.4.dylib: /usr/lib/libcurl.4.dylib (compatibility version 6.0.0, current version 6.1.0) /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.2.0) /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos (compatibility version 5.0.0, current version 5.0.0) /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 41.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11) Currently, I've just replaced libxerces-c-3.1.dylib shipped with the executable with one I built myself on my Snow Leopard, and everything seems to work. I would like to know what my other options are, however. Particularly: How can I (I'm pretty sure I can't, but still) have different versions of libcurl.4.dylib with different compatibility version values in the same /usr/lib directory? I'm confused a bit here -- if code contract (API) and/or ABI changes, the version number in the library file name should also be increased, shouldn't it? If, on the other hand, we have a compatibility version mechanism, what the original version number present in the file name is good for? How can I affect the hard-coded library paths in a 3rd-party shared object? I have a libcurl.4.dylib (from MacPorts, compatibility version 8.0.0) residing under /opt/local/lib, but exporting a proper DYLD_LIBRARY_PATH doesn't help -- libxerces-c-3.1.dylib always picks libcurl.4.dylib from /usr/lib.
OSX: DLL Has A Reference to Itself?
I have a library built on OSX 10.6. It runs fine with apps on that version of MacOS. On OSX 10.7 it doesn't run right because it can't find all its dependencies properly, and I suspect it has something to with it thinking that it is linked to itself. Why would screens.so show when I run "otool -L" on screens.so? Is it something that I should remove, and if so, how? screens.so: screens.so (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 12.0.0) /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime (compatibility version 1.0.0, current version 1327.73.0) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libwx_macud-2.8.0.dylib (compatibility version 2.6.0, current version 2.8.4) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 34.0.0)
The output is just fine - the first line is merely the ID string of the dynamic library, it shows you what will be used at link time to embed into the executable. For example: $ otool -L /usr/lib/libz.dylib /usr/lib/libz.dylib: /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.0.0) this shows you that linking -lz will result in /usr/lib/libz.1.dylib load command in the binary. But back to your problem -- it has nothing to do with the first line, it has to do with this line: /usr/lib/libwx_macud-2.8.0.dylib (compatibility version 2.6.0, current version 2.8.4) which is linking a library that doesn't exist in Lion - are you sure you need it?