Category : cmake

I have this CMakeLists.txt set(Boost_USE_STATIC_LIBS ON) find_package(Boost REQUIRED COMPONENTS json) include_directories(${BOOST_INCLUDE_DIRS}) target_link_libraries(<Target> PRIVATE Boost::json) But I get cmake warnings [cmake] CMake Warning at C:/Program Files/CMake/share/cmake3.20/Modules/FindBoost.cmake:2185 (message): [cmake] No header defined for json; skipping header check (note: header-only [cmake] libraries have no designated component) The project can configure and build tho. But the compile_command.json I found ..

Read more

I have this CLion-generated cmake text file for test, using CLion as my editor and Qt as my widget set. I got the idea here. In my CMakeLists.txt, I have this: cmake_minimum_required(VERSION 3.19) project(Qt_Test) set(CMAKE_CXX_STANDARD 20) # Tell cmake where Qt is located set(Qt6_DIR "/home/fmc/Qt/6.0.0/gcc_64/lib/cmake/Qt6") # Tell cmake to find the modules Qt6Core and Qt6widgets ..

Read more

While compiling the minimal.cpp example of TensorFlow Lite with cmake on Yocto platform, we are having error as follows: Log data follows: | DEBUG: Executing shell function do_install | NOTE: make -j 4 DESTDIR=/home/student/fsl-release-bsp/build-analytics-tflite/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/minimal/1.0-r0/image install | ERROR: oe_runmake failed | make: *** No rule to make target ‘install’. Stop. | ERROR: Function failed: do_install (log ..

Read more

When I am start the program, an empty console opens instead of the black screen. the error occurs when the window is created "window = glfwCreateWindow(640, 480, "Hello World", NULL, NULL);". the code is taken from the glfw documentation, there are no errors in it. glfw installed with command " git clone https://github.com/glfw/glfw.git external/glfw/ " ..

Read more

I installed SFML and modified the cmakeList to be able to run an SFML project. I used Msys2 to install mingw and sfml 64bit version. My cmake looks like this: cmake_minimum_required(VERSION 3.17) project(PHONEBOOK) set(CMAKE_CXX_STANDARD 11) find_package(SFML 2.5 COMPONENTS system window graphics) add_executable(PHONEBOOK main.cpp contact.cpp contact.h phonebook.cpp phonebook.h) target_link_directories(PHONEBOOK sfml-system sfml-window sfml-graphics) When I run the ..

Read more

How to reproduce: (1) Extract sub folder "llvm" and "clang" in LLVM9.x source from the zip downloaded from LLVM GitHub (root folder in the zip is llvm-project-release-9.x) (2) Create a build folder "build-x64" at the same level, and cd to the folder in the VS2017 x64 native tools command line window. (3) execute: cmake -DLLVM_ENABLE_PROJECTS="clang" ..

Read more

I have a CMakeLists.txt where I copy files in a specific order but the execution order seems random: #First Installation install(DIRECTORY ${SIT_AW_FIRST_WORKSPACE_DIR}/ DESTINATION ${WS_DESTINATION_DIR}) #Second Installation that should overwrite a subset of files install(DIRECTORY ${SIT_AW_SECOND_WORKSPACE_DIR}/ DESTINATION ${WS_DESTINATION_DIR}) Output : — Installing: /opt/FOO/share/baz/xml/Login.xml — Up-to-date: /opt/FOO/share/baz/xml/Login.xml The second file will not overwrite the first. How come? ..

Read more

I have a CMakeLists.txt where I copy files in a specific order but the execution order seems random: #First Installation install(DIRECTORY ${SIT_AW_FIRST_WORKSPACE_DIR}/ DESTINATION ${WS_DESTINATION_DIR}) #Second Installation that should overwrite a subset of files install(DIRECTORY ${SIT_AW_SECOND_WORKSPACE_DIR}/ DESTINATION ${WS_DESTINATION_DIR}) Output : — Installing: /opt/FOO/share/baz/xml/Login.xml — Up-to-date: /opt/FOO/share/baz/xml/Login.xml The second file will not overwrite the first because they ..

Read more

Problem While running command: $ mkdir build $ cd build/ $ cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON .. $ cmake –build . –config Debug This error is thrown: error: overload resolution selected deleted operator ‘=’ At this statement: PolyTree(PolyTree &&src) { *this = std::move(src); } ~~~~~ ^ ~~~~~~~~~~~~~~ Source code Library source code consists of a few files available ..

Read more