Linked Questions

16 votes
1 answer
68k views

I have 2 files: library.dll and library.h with some code that I need in my own project. I'm working on Windows with Clion where I should config this with CMake. I tried this way: ...
JohnyBe's user avatar
  • 333
3 votes
1 answer
6k views

I'm new to building with CMake. I'm using Ubuntu and I have a .cpp file (say xyz.cpp located somewhere in ~/mydir) which links to three custom shared libraries (libA.so, libB.so & libC.so ...
codeLover's user avatar
  • 3,860
1 vote
2 answers
8k views

I am trying to link to a shared library using CMake. I understand that this can bee achieved using the target_link_libraries() command. I have been able to get this working but not quite in the way ...
user avatar
1 vote
1 answer
10k views

I've created custom shared object with one function inside - void hello(); which only prints "hello". I'm now trying to use the SO in another project, but I can't use it (more likely - I don'...
Roy Raihenshtein's user avatar
0 votes
1 answer
6k views

How can I link a static library with cmake? The library I'm trying to link is in the project directory lib/lib.a and the only source file is main.cpp. The .h file of the library lib.a is in inlcude/...
tobias's user avatar
  • 85
0 votes
1 answer
3k views

Is job in qmake: LIBS+= -L"C:\Program Files\program\any_dll.dll" How to in cmake? cmake_minimum_required(VERSION 2.8) project(my_project) add_executable(${PROJECT_NAME} "main.cpp")
shaman888's user avatar
  • 293
1 vote
1 answer
3k views

I am new to Cmake, and I am having trouble linking an external library (libtiff). I have installed libtiff and it is in my /usr/local/include. Then I used include_directories() and ...
Yafei Mao's user avatar
0 votes
1 answer
4k views

I'm a newbie in CMake, i know there are many StackOverflow post asking this, but none of those posts helped me fix this error, this is what my workspace looked like project .vscode build ...
TheNoobProgrammer's user avatar
1 vote
2 answers
5k views

I have am trying to link a precompiled so file to my executable in cmake. I'm not sure if I am misunderstanding how to use a shared library or not but I assumed that once I compile a shared library, ...
Milos's user avatar
  • 317
0 votes
1 answer
3k views

I would like to use cURL with my project. I added this to my CMakelist : include_directories(include) link_directories(lib) target_link_libraries(untitled curl) This is the tree of my project : When ...
Pierre LAGOUTTE's user avatar
2 votes
0 answers
3k views

I am making an anpr algorithm that requires tesseract to decode the image to text. When running cmake .. inside my build dir, I get a warning saying: ┌──(user㉿MacBookArch)-[~/dev/anpr/build] └─$ cmake ...
Snakehater's user avatar
1 vote
1 answer
2k views

I am trying to include portaudio and opus in my project, but whenever i compile, i get this error Scanning dependencies of target PeersChat [ 50%] Building CXX object CMakeFiles/PeersChat.dir/main.cpp....
blurrpy's user avatar
  • 13
1 vote
1 answer
1k views

With g++ I compile my program "g++ main.cpp -lpq" without error, and with cmake on Clion this error appears i using #include <'postgresql/libpq-fe.h'> >/opt/clion-2018.3.4/bin/cmake/linux/bin/...
Devleesch's user avatar
0 votes
1 answer
2k views

I have a third-party static library that I would like to add to a project, and as there are ongoing updates to the library, I would like to stick to a single CMakeLists.txt in root (if possible) - or ...
AGE_DK's user avatar
  • 11
1 vote
1 answer
1k views

I created a dynamic lib using Rust (crate type = "cdylib"). Rust/Cargo produced two files: text_loading_lib.dll and text_loading_lib.dll.lib. I want to build a really simple project (...
phip1611's user avatar
  • 6,328

15 30 50 per page
1
2 3 4 5
11