I am building a C++ project from Github and want to deploy the code to a remote Linux machine. This is all new to me. The project has a main.cpp, which includes the various headers/sources like a library. The CMake outputs an executable (to represent main.cpp) AND a separate static library. The project also uses OpenSSL, which I have linked
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 error
How do I compile and deliver my application without requiring installation of shared libraries on other machines
On my Ubuntu machine I installed libGLEW. However, I did not install it on my other Ubuntu machine. It works on my compiling machine, but now I received the following error after copying my executable to my other machine. I want to find a solution where I don’t have to require my other machine to install the library. Maybe I
CMake C++ Project librealsense: undefined reference to OpenGL with CLion
I am trying to integrate librealsense C++ CLion Project on Ubuntu 20.04. Compiling the Librealsense separately in the terminal works just as expected. the Project looks like this: RS_Pipeline . ├── build ├── main.cpp ├── CMakeLists.txt └── librealsense // the integrated lib ├── CMakeLists.txt ├── third-party // libs like GLFW and GLAD which are use in the examples ├── examples
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 horribly wrong
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 equivalent to -O2 -g, which
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 the
Why are files not found from parallel folders CMake
To have my .cpp and .h files a little bit sorted up pending on their responsibilitie I decided to put them into seperate folders I used the following structure: root | -CMakeLists.txt [rootCmakeList] src | -main.cpp …….| ……. math …….| …….-CMakeLists.txt[mathCmakeList] …….-Algebra.h …….-Algebra.cpp …….XML[xmlCmakeList] …….| …….-CMakeLists.txt …….-AwesomeXML.h …….-AwesomeXML.cpp The [rootCmakeList] looks: The [mathCmakeList] looks: The [xmlCmakeList] looks: So far so
OpenCV with Python and Java support using cmake command line
I am trying to install latest OpenCV from here: https://github.com/opencv/opencv on my Ubuntu 20.04. I need python and java support. I have installed a lot of per-requisites and used this cmake command to configure the build using the command line: The output was this: I see that cmake finds my python 2 and python 3 versions, finds also my java
install C++ application using CMake on multiple systems
I wrote a simple openGL application using C++ and SDL2. I’ve compiled it using CMake on linux and everything works fine. How do I now run my program on other systems? Is it possible to compile the program on my linux machine and then open the compiled output file on another linux machine? Or does every machine have to compile