Cmake Questions
Ad
CMake: How to run a custom command on a number of files to generate source files?
I have the following situation: i want to compile a number of scheme files with
How to download and compile external library only once with CMake?
I am using the unity testing library in my project. ideally, i would like to automatically download the source code from github and put it in the
How to run CMake with predetermined settings?
In visual studio, a project using cmake will have a cmakesettings.json file that specifies the command line parameters to be used. in ides other
Change library output directory when build json-c
I want to use json-c library in my project. but in default, the library is installed in /usr/local/lib after i compile with
How to build libraries with CMake
I am working on a pretty large c++ project and i decided to split the source files into different modules to make managing them a bit easier.
undefined reference to OpenSSL_version, Error linking openssl?
Trying to run this simple program #include <openssl/ssl.h> int main() { printf("version: %s\n",
CMake make install fails with "file INSTALL cannot find <myfile>"
I have the following project structure myproject cmakelists.txt \subproject1 \subproject1\cmakelists.txt \subproject2
Why CMake does not see FLEX generated source files?
I am trying to set up flex with cmake, however, i get the following error when building the project: [proc] executing command:
CMake: What do CMake build types (DCMAKE_BUILD_TYPE) do?
I am using cmake (within clion ide but that should not matter for this discussion). up until now i have been using things like
Meson: Change the C compiler based on the target
I am building an operating system that supports both 32 and 64 bit, using the meson build system. i have just started adding support for 64 bit,
Ad
How to install CMAKE
I'm new in linux and i trying to install cmake but i get on this error . how can fix that: [email protected]:~/sz/lin/build$ cmake
Not able to compile C source files using make. CMake error Cannot find source files but they are there
Im trying to compile the posest c++ library posest :
NodeJS, difference between N-API, nan, node-gyp and cmake-js
I am trying to learn how to use c and/or c++ libraries inside nodejs. but it is somewhat confusing the many different tools and
Building process fails at cmake for PyCarl and asked to recompile with -fPIC
I'm using a docker of ubuntu 19.04 docker to install pycarl. i have carl and carl-parser (master14 version). however, the 'python setup.py
How to link a third-party static library with the newly created cmake project?
I have a static library built for arm64-v8a architecture. i need to write a wrapper to call one of the main function of the static library and
How to fix error while installing dlib on python 3.7.3 64 bit windows 10
I'm trying to install dlib on windows 10 using anaconda prompt. using pip install dlib but i'm getting this error failed building
Where is the CMake install option in Android Studio 3.2.1?
I am trying to install ndk in android studio 3.2.1 and i am following the procedure described
CMake error while running flutter desktop application
When i am trying to launch flutter desktop application, this error occurred to me: "cmake error at cmakelists.txt:2
Native project fails to build with error: Error configuring
I am trying to start a project in android studio with native c++ support. the path i take in android studio: file > new
Undefined reference while compiling Flutter app on Linux
I built a plugin which uses dart ffi and a shared lib and published to pub.dev. whenever i try using the plugin in my app, it always fails with a
Could not find a package configuration file provided by "openssl"
I'm trying to use openssl with flutter using dart:ffi, but when i run the project on ubuntu 20.04 the error message as below comes out. i tested
Ad
NAPI native module in C++ is executing partially (Included std::thread)
My node-js native module written with napi is executing partially.i have used multiple threads in it.while running module sometime it
Disable ANDROID compilation flag for one file
I am trying to compile an executable binary to be packaged with my java android application. the executable, vmd, has a main file vmdmain.c with
Matplotlib-cpp : ImportError: No module named site
I am trying to use matplotlib-cpp for a c++ project compiled by
Building opencv from source in Mac m1
I'm using the following make to build opencv from source, cmake -d cmake_build_type=release \ -d
Linking static c libraries and getting error recompile with -fPIC
Getting a lot of "undefined reference to" errors. what i am missing in my cmakelists.txt? am i not linking the library properly?
Linking OpenVR through VCPKG via CMAKE
I have installed openvr through vcpkg and am trying to link it via cmake, the issue is that i don't know how to do it, nor can i find any info on
CMake evaluation of compound condition
The cmake documentation states: the following syntax applies to the condition argument of the if, elseif and while()
CMake nested OBJECT library dependencies
I created a project with some nested library dependencies using the object library type. the motivation for this is to avoid link
android studio 3.2 initial build error (testCCompiler.c file not found, windows 10)
Today i installed android studio 3.2.1 on my windows 10 pc at home. (i have installed a previous version 3 months ago but i unstalled it before
How to execute more than CMakeLists.txt files in android
I have two c++ libraries included in my project, and each has cmakelists.txt file. what should i add in my build.gradle file to
Android Studio CMake build once for all build variants
I have a project with c++ code (jni) and lots of build variants and combinations. these are used to implement different brandings / flavors of the
Ad
CMake - Library with example subdirectory running as separate project
Edit 2 - fixed! the issue was fixed by correctly using absolute paths rather than relative paths, and by
How to add new source file in CMakeLists.txt?
I am creating a demo to read and write files through android ndk. i am using cmake and have cmakelists.txt in my project with following
Integrating FFMPEG using cmake: undefined reference when linking libraries
I've been trying to cross-compile ffmpeg for different android cpu archs for couple of days now and i have finally succeeded in the task. but now
Android NDK path variable for "strip" command in CMake build tool chain
I am trying to add a strip debug symbols step for my android library which includes native shared libraries for different abis,
How to create a tv tuner library for android?
I have a k1 plus android box which have a built-in dvb-t2` and dvb-s2 tuner in it. i want to create an app that gets and shows the channels from
ERROR: NetworKit compilation requires cmake. #288
I use python3.7 and installed mingw has: gcc 8.2.0-3, cmake 3.13.3, ninja 1.8.2, cython 0.29.3,
How can I apply target-specific compiler and linker flags to subdirectories in CMake?
I am using cmake for a stm32 project as the project is outgrowing a plain makefile. my directory structure looks something like what's below. i
Gdk-CRITICAL exceptions on a Flutter Desktop app, linux
I am trying to launch my flutter app on linux, as a desktop app. it already worked before, but now i have this error at launch :
What happened to CMake's --target argument?
With cmake version 3.19.2 i can use --target argument to build specific targets, instead of all. for example
Android studio 3.1.3 create new project with c++ support sync failed
I am using android studio 3.1.1 to create a new project with c++ support, but i could not do anything and it sync failed,the message is below:
Unable to build caffe2 AICamera app
While trying to build aicamera app master branch, we failed to link the
Ad
How to fix CMake error when trying to use OpenCV?
I am trying to use opencv in vs code. here's what i've done: installed opencv for windows. added
Android CMake use prebuild .a library
I am totally new to cmake and using ndk in common. i figured out to write my jni interface and use 2 methods which are part of a c library. i
Cmake not detecting boost-python when installing ROS
I have been trying to install ros on my mac and have gotten around the errors with different libraries depending on different versions of
Error while using external C++ library with CMake
I am trying to use these libraries in my android project but i am getting many of these similar kind of errors. i have all the tools installed
Android NDK CMake uses C++17
The problem i'd like to use decomposition declarations in my android ndk project. therefore clang needs to be called with
How do I handle subdirectory dependencies in CMake?
I have a project where i need to run one application on multiple boards. to do this i have two exectuables that share a main.c, but
Android Cmake Build command failed
I'm new with cmake and ndk , when i build project i got this build command failed. error while executing process
How to add native OpenCV in Android Studio 3.1.2?
My android studio version is 3.1.2, java version is 1.8 i use following step to add opencv to project create new project
Android: Linking to prebuilt static libraries
I have compiled some static and shared libraries for android. specifically, i have the libraries libcoinblas.a libcoinlapack.a
cmake to link to dll without lib
I've been given a dll without libs. the dll comes with hpp and h files. i used dumpbin to create an exports.def file and lib to create a
Including SDL in program makes it have no output and instantly quit
I'm trying to make a program with sdl2.0 but the program doesn't show any output and it quit instantly. i am using windows 10 x64 and i am
Ad
Can not find object file with cmake link_directories
I want to add several .o files to the link process. if i do it like this: target_link_libraries(ffmpegtest stdc++fs -pthread
How can I build two executables that share a main function in CMake?
I have a project that's becoming large enough that i want to switch to from a plain makefile to cmake. my project contains only one application,
Android NDK JNI build error: undefined reference to 'function_name'
I have a simple android ndk code with jni. unfortunately, it does not build due to an error: error: undefined reference to
Cpp flags in Android JNI - change variable based on flag
I would like to pass variable to cpp library in android module in order to achieve something like that: //imports.. using
CMake: recompile C++ program modules selectively based on C macro definition
I have a program containing several modules, say: modulea, moduleb and modulec. and i also have a single header file debug_flags.h where i define
disable all warnings for google tests from cmake
I have a c++ project that i am compiling with cmake. i am also using google tests. these are my cmake files:
GCC compiler in CLION not found in PATH so cannot compile simple C++ program
When i try to compile a simple main.cpp consisting of: #include <iostream> int main() { std::cout <<
Wrong compiler used in the target offload process in CLion during CUDA compilation
I'm trying to configure a very simple cuda project in clion 2020.1. i'm on fedora 31 (default gcc is 9.3), but compiled gcc 8.2 from
setting compiler/linker flags per target in CMake
I have created the following cmakelists.txt for my project which includes some files which need to be compiled with c and then will be linked with
CMake get dependent header files like gcc -M
I'm analyzing a cmake project and i want to get all the header files that a source file depends on. is there a tool or a command like gcc
C++ hide all function symbols except for what I specify in a shared library
In my example code: main.cpp #include <iostream> #if defined(_win32) || defined(__win32__) #define export extern
Ad
Debug postfix messes up linking SDL2 with CMake
I am trying to set up a project with the sdl2 library using cmake. when i compile for release everything works fine. however when setting the
SO Files not getting generated in Android Studio with CMake
We were using android.mk & application.mk ndk builds system. as we have common modules in the native layer which are
CMake: can't find my header file in a different directory
I have a cmake project with these relevant folders: project_folder -src |--main.c peripherals |--something.h |--something.c
emmake and emconfigure command not found (osx)
I'm trying to use cmake with emscripten. i followed
Is there a way to make vim run the “make” command in another terminal window?
I mainly use vim as an editor for c/c++ programming. unfortunately, i'm not quite satisfied with the way my build process works. i know that it's
Cmake: Set warning levels for C and C++ code individually for MSVC (Visual C++)
I'm trying to control compiler warnings individually for c and c++ code in a cmake-based build: for gcc and clang, i can set additional
Using Swig in Cmake doesn't link Java properly
I'm trying to link a very simple test c library with java, using swig and cmake (required by project). when i run things manually things
CMake detects a wrong version of OpenCL
Following this post, where i have used
cmake add_custom_command + Xcode: multi output = multi command invocation
I have custom command that generate several headers at once. all works fine with make/ninja files generated by cmake. but if i generate xcode
Ad
Check CMAKE version using python
I'm building a project for first time and its really confusing. i've included a project through using gitmodules and i'm using visual studio and i
Getting several CMake errors
I am new to cmake and was experimenting with it. here is folder structure:
Rebuild dependant target after a custom target runs
I have a cmake project that uses an external tool to build special libraries for a certain platform. running this tool uses a "config file" to
Setting stack size in cmake with gcc
I am building a c++ project on linux using gcc 9.2 and cmake 3.15, and i need to increase the default stack size. i found many
Why am I getting `undefined reference to xxx` errors when all libraries and references needed are accounted for?
Essentially i am trying to use the redland rdf libraries but i cannot link to them.
How can I see the full file path in compiler errors?
I have a cmake project that i compile with gcc on linux. because of how cmake invokes gcc in subdirectories, gcc outputs only the base file name
CMake GCC can't find curl struct in included header file
I'm trying to create a library with cmake that uses libcurl but gcc is consistently failing to find certain structs and defines even though they
CMake: include libraries in the project
I'm new to cmake and i need help. i'm trying to develop the following cmaketutorial project: . ├──
Linker optimizing out shared library
Using cmake and gcc/clang compilers i want to create a shared library out of this file (registrator.cpp): #include
How to call a Python function from C++ on Ubuntu 20.04
I'm currently in a class where i'm asked to establish integration between python and c++ as we will be working with both later in the class. my
Linking with GameNetworkingSockets library on Windows gives "unresolved external" error
I have a cmake c++ project that uses some third party library
Ad
Is it somehow possible to use doxygen to genererate CMake documentation?
I would like to use doxygen to generate documentation for .cmake files. i already added *.cmake \ to the
No Idea Why I'm getting std::__1 Undefined Symbols Error
I'm quite new to c++/cmake and was trying to create a cmake file that would compile a grpc project. i can generate the client (only want client)
How to force a target to be rebuilt if a dependent script is updated?
I am written some custom scripts that are invoked in custom commands for cmake targets. i want the targets to be rebuilt if any of the scripts
How to bump the C++ standard from the CMake command line?
Currently i have a project that needs c++17, therefore in the cmakelists.txt i have this line pretty early on:
Questions about CUDA macro __CUDA_ARCH__
I have a simple cuda code in ttt.cu #include <iostream> __global__ void
CMAKE_C_COMPILER not set, after EnableLanguage
I installed cmake on windows in addition to gcc and g++ compiler i added the variables to the path but still getting the following error could you
Ad
Blog Categories
Ad