I am trying to compile and install glfw 3.1.1 for Ubuntu 14.10. The cmake finished successfully, however, when I go to execute the makefile through make it fails at the following: At first I thought that it is failing an optional step but then I realized that I can’t compile my test project as it complains about the glfw header:
Tag: cmake
Why am I not able to use relative path to open a file in CLion?
I seem to get errors when trying to open an std::ifstream if I use a relative path. Though it works fine if using an absolute path. Is there something I need to add to the CMakeLists.txt? (I’m pretty new to using cmake) Or is it just a problem in CLion? Answer It’s CLion. You have to set the Working Directory
cmake linking shared libraries on ubuntu
Hi I am having problems with linking two libraries on ubuntu using cmake 2.8.12 Directory structure CMakeLists.txt for lib1 This builds fine. Then for lib2 I have the following CMakeLists.txt Here I get Linking CXX shared library ../build/liblib2.so /usr/bin/ld: cannot find -llib1 I am not clear how to correctly link these two shared libraries using CMake. Anyone an idea what
Shared library on Linux and -fPIC error
I am trying to compile a shared library in Linux using a Makefile created with Cmake, but running make I obtain the following error: I provide the following command in the CMakeLists.txt in order to say that I want a shared (.so) library: add_library(cpp-lib SHARED ${CPP_FILES}) What else do I need to specify in order to avoid the -fPIC error
How to tell CMake where to put build files?
I want to tell CMake to output files and folders to a different folder instead of the current folder. I’m talking about the generated files by CMake below: file: CMakeCache.txt dir: CMakeFiles/ file: Makefile dir: bin/ file: cmake_install.cmake Is there a way to let CMake output these files and folders in another folder? I wrote a tool that executes CMake
Building symbolic link shared library in a shared folder of VirtualBox
I am now building a C++ library in Windows and Linux. For windows I am now using Visual Studio for development, and for Linux I am now using Ubuntu via Virtual Box. In order to make develop much easier, I shared the folder of the project in Windows with Linux via the shared folder function of Virtual Box. I compile
CMake complains “The CXX compiler identification is unknown”
I am following this thread and this one to build my own KDE without a sudo permission. Since there was no Git and CMake installed on the workstation. I just had them both installed under /home/< user> and added /home/< user>/bin and /home/< user>/lib to both PATH and LD_LIBRARY_PATH. Since KDE build only supports CMake, not configure. So I have