cmake

Libs and linker with CMake and MySQL C++ Connector?

倾然丶 夕夏残阳落幕 提交于 2021-02-11 06:02:14
问题 I download the MySQL C++ Connector, I need it for a project in CLion, now, I was trying to make it run, but it was all in vain, I get the error -1073741515 (0xC0000135), i've read that is about a linking or lib problem. My current CMake: cmake_minimum_required(VERSION 3.6) project(Entrenamiento CXX) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_FLAGS "-Wall") set(SOURCE_FILES main.cpp) set(Entrenamiento_VERSION_MAJOR 1) set(Entrenamiento_VERSION_MINOR 0) add_library(mysqlcppconn SHARED IMPORTED)

Libs and linker with CMake and MySQL C++ Connector?

霸气de小男生 提交于 2021-02-11 06:01:17
问题 I download the MySQL C++ Connector, I need it for a project in CLion, now, I was trying to make it run, but it was all in vain, I get the error -1073741515 (0xC0000135), i've read that is about a linking or lib problem. My current CMake: cmake_minimum_required(VERSION 3.6) project(Entrenamiento CXX) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_FLAGS "-Wall") set(SOURCE_FILES main.cpp) set(Entrenamiento_VERSION_MAJOR 1) set(Entrenamiento_VERSION_MINOR 0) add_library(mysqlcppconn SHARED IMPORTED)

Linking boost in CLion project

只愿长相守 提交于 2021-02-11 04:50:39
问题 I want to link my c++ project on CLion with Boost. In order to make everything way easier to port I'd prefer having all the libraries directly in the project files so I put the boost folder directly in my project files and then proceeded to edit the CMakeList.txt to link the library. I want to link my c++ project on CLion with Boost. In order to make everything way easier to port I'd prefer having all the libraries directly in the project files so I put the boost folder directly in my project

Linking boost in CLion project

梦想的初衷 提交于 2021-02-11 04:50:34
问题 I want to link my c++ project on CLion with Boost. In order to make everything way easier to port I'd prefer having all the libraries directly in the project files so I put the boost folder directly in my project files and then proceeded to edit the CMakeList.txt to link the library. I want to link my c++ project on CLion with Boost. In order to make everything way easier to port I'd prefer having all the libraries directly in the project files so I put the boost folder directly in my project

CMake-Configure: Permission Denied

回眸只為那壹抹淺笑 提交于 2021-02-10 20:17:17
问题 I am trying to compile my Project with CMake, on one of my Computers it works perfectly (a Linux box), but the other one (Windows 7 Ultimate 64) has really problems. I have tried multpiple generators: MinGW (standalone and from CodeBlocks): Error message: (Just the part that should lead to a solution) f:/tools/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot open output file cmTryCompileExec.exe: Permission denied collect2: ld returned 1 exit status Visual

Building QGIS for Windows with mingw and Cmake?

做~自己de王妃 提交于 2021-02-10 19:32:31
问题 Does anyone knows how to build QGIS for Windows with mingw and Cmake? Having that I have all required dependencies installed. 回答1: I found a really nice workaround at: http://www.webalice.it/marco.pasetti/qgis+grass/BuildFromSource.html 来源: https://stackoverflow.com/questions/3760395/building-qgis-for-windows-with-mingw-and-cmake

Building QGIS for Windows with mingw and Cmake?

痞子三分冷 提交于 2021-02-10 19:31:34
问题 Does anyone knows how to build QGIS for Windows with mingw and Cmake? Having that I have all required dependencies installed. 回答1: I found a really nice workaround at: http://www.webalice.it/marco.pasetti/qgis+grass/BuildFromSource.html 来源: https://stackoverflow.com/questions/3760395/building-qgis-for-windows-with-mingw-and-cmake

Disabling a CMake target when building Android app

ε祈祈猫儿з 提交于 2021-02-10 18:42:55
问题 I have an Android app that uses C++ native code which is built using CMake. In the project's CMakeLists a library is added using add_subdirectory() . This library has many targets, some of which do not compile for Android platform (they produce compile errors on Android). However my Android app does not link against any of those targets, so they do not need to be built at all. But Android Studio tries to build them anyway. My question is if it is possible to somehow disable those targets in

Static linking with Boost Filesystem not working

寵の児 提交于 2021-02-10 18:34:48
问题 I am trying to build boost from source and I need static linking as I am thinking to move this statically linked boost project to AWS lambda servers. I have done the following steps: I downloaded boost_1_72_0.tar.gz and tar xzvf boost_1_72_0.tar.gz inside third_party directory. cd inside boost_1_72_0. DST_DIR=/my local path/ where I want to install. ./bootstrap.sh --prefix=${DST_DIR} --includedir=${DST_DIR} --libdir={DST_DIR} --with-libraries=filesystem,system . ./b2 link=static --prefix=$

CMake+SFML Linker error, even though library is specified in CMakeLists.txt

空扰寡人 提交于 2021-02-10 17:30:13
问题 I am making a project using SFML and CMake. To do that, I followed the guide from SFML's GitHub. I am adding the following lines to my CMakeLists.txt: set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH}) find_package(SFML 2 REQUIRED network audio graphics window system) if(SFML_FOUND) include_directories(${SFML_INCLUDE_DIR}) target_link_libraries(${EXECUTABLE_NAME} ${SFML_LIBRARIES} ${SFML_DEPENDENCIES}) else() message("SFML WAS NOT FOUND") endif() These lines are