Skip to content

Tag: cmake

CMake Lib in Linux Docker missing dependencies

I use CMake to create the DLL and SO file from my own C++ library, which I then call in my C# code via DLLImport. This has worked so far under Windows and under Linux (Docker). Now the library has been extended, which continues to work on Windows with the DLL. However, under Linux I now get the following erro…

Stringizing / stringify name mangling

I load a path name with cmake and want to use as a string in my C++ program to load some data. For this the stringification operator # is really handy – I use the macro provided in this answer which is the same as here. Now when I have “linux” or “unix” in my path, this goes horr…

will cmake build type RelWithDebInfo strip symbol table?

I was building a shared library using cmake with RelWithDebInfo build type, the output .so file has no symbol table. I inspect the output .so file with readelf -S myoutput.so | grep -i debug with gives me nothing. If I change the build type to Debug, the symbol table is there. I suppose RelWithDebInfo is equi…

OpenCV 2.4.11 Compilation For ROS ORB_SLAM2 Fails

I am trying to get orb_slam2_ros to compile and it needed an OpenCV version higher than 2.3. I have 4.2.0 but it doesn’t work but according to ROS, it has been tested to work on 2.4.11. Here is what I did: Download the source zip file. Extract it. Go into the directory and create a build folder. Go into…