"framework not found" when compiling C++ program on Mac OS-X

I definitely need some help with this problem. I'm trying to fix this since 5 days and as I tried almost every single idea I was able to find on the Internet, I'm going crazy... When I compile my...

Cross-compiling OpenCV with MinGW using CMake(in Linux for Windows)

I'm trying to compile OpenCV library with MinGW in Linux for Windows using cmake-gui. I use toolchain file for cross-compilation Toolchain-mingw.cmake SET(CMAKE_SYSTEM_NAME...

Build a python package with setup.py in CMake

EDIT: The question is a bit too long. Here is my real question: How can I build and install a python package with setuptools (setup.py) inside CMake? The detail of my code is shown below (but with...

Why does boost::serialize not work despite everything seeming right? ("unregistered class")

I am wondering about this. I have a C++ program with a number of data structs which derive from a common root and I need to serialize them using Boost. Each one has an inline member function to...

CMake and OpenCV 3.0

I'm trying to set up a really basic project with Cmake and OpenCV 3.0. My folder structure looks like this: OpenCVTest | |--- build |--- data |--- include |--- src |--- CMakeLists.txt The...

Using CMake in mingw32 for a Fortran code

Here is a simple question, I need to create a CMake builder onto mingw32. I want to define the compiler in the CMakeLists.txt (although I want to specify that when calling cmake later). The txt...

How to generate debug symbols for android native app?

i do first steps in developing for Native Android and need some help. I copy armv7 gdbserver to my phone and compile "hello word" test app written with C++. And now i want to debug my app with gdb...

yocto recipe for an application that uses dlib and opencv

I made a yocto recipe for dlib and also I added opencv package in local.conf. Now I want to make a recipe for an application that uses dlib and opencv libraries. I tried the following recipe, but...

Error in dlib installation AWS EC2 instance Ubuntu 16.04

I am trying to install dlib on EC2 ubuntu 16.04, I tried many options suggested on google like this, But getting above error, I install on my local machine which was quite simple and installed...

Python pip install pyarrow error, unable to execute 'cmake'

I'm trying to install the pyarrow on a master instance of my EMR cluster, however I'm always receiving this error. [[email protected] ~]$ sudo /usr/bin/pip-3.4 install pyarrow Collecting...

INTERPROCEDURAL_OPTIMIZATION not set even if check_ipo_supported() works in CMake

I've the following project in CMake 3.14.0, that builds a project for Visual Studio 2017 64 bit generator (minimum version is 3.10.0 because other developer can have previous versions of CMake,...

"Protobuf compiler version doesn't match library version 3.6.1" when not using system Protobuf library

I am using CMake as a build tool and have pre-packaged binaries for all libraries I use in my project. One of those libraries is Protobuf and gets downloaded via Conan IO. So, I want to use the...

android release app bundle build missing native lib .so files

case I have an app when i work with it in debug mode everything is ok ! but when i try to build apk bundle for release and try to install app through play store the is missing the .so files i...

How to use Poco library in a simple C++ project?

This is my project's directory structure: poco/ CMakeLists.txt main.cpp note: poco directory contains all the file downloaded from Poco's github repository by using this command: git clone...

Android Studio ERROR: Cause: executing external native build for cmake /path/to/project/app/tools/CMakeLists.txt

I have downloaded WireGuard from Github (link) after run app by android studio I have this error: ERROR: Cause: executing external native build for cmake ...

How to install Vowpal Wabbit on Amazon EC2 or SageMaker? (amazon linux)

Can someone explain or help me install vowpalwabbit (I'm interested in the python bindings) on an Amazon linux machine, either EC2 or SageMaker? for some reason it is very hard and I can't find...

How to check for internet connection with CMake? (automatically prevent fails if there is non)

For example, when using the ExternalProject or FetchContent module additional data can be downloaded and used within CMake. If there is no internet connection these modules fail and CMake does not...

Cmake error undefined reference to `pthread_create'

I make a test for cmake FindThreads. Here is my source code test.cpp and CMakeLists.txt: #include <pthread.h> ...

Detecting compiler ABI failed by CMAKE

There is a CMake project simple enough but not compiling at all with Visual Studio Code. The source: // main.cpp #include <iostream> int main(int argc, char * argv){ return 0; } The...

how to get VERSION installed of LEPTONICA from console?

I'm at CentOs 8 and I installed http://www.leptonica.org/source/leptonica-1.80.0.tar.gz in this form: wget http://www.leptonica.org/source/leptonica-1.80.0.tar.gz tar xzvf...

Rails docker postgres Connection refused

I'm trying to dockerize my Rails application, but I have this error when I want to run it with docker-compose: ! Unable to load application: PG::ConnectionBad: could not connect to server:...

Failed to build opencv-contrib-python (On Rasberry Pi)

I'm trying to install OpenCV on my Rasberry Pi but when I run the following command, I get some errors. Command: pip install opencv-contrib-python Results: Looking in indexes:...

protobuf_generate grpc_cpp_plugin fails with status code 1

I'm trying to generate grpc cpp files but the generator plugin fails when I call it in cmake find_package(protoc CONFIG REQUIRED) find_package(gRPC CONFIG...

G++/CMake Profile Guided Optimization cannot find generated .gcda files

I am compiling an application using CMake 3.16.3 and G++ 9.3 on Ubuntu 20.04. This is the current source directory: . (this is called MyApp) ├── src │   ├── /* source files...

How to use UTF8 characters in DEFAULT c++ project OR when using mysql connector for c++ in visual studio 2019 (Latin7_general_ci to UTF-8)?

SEEMS LIKE Latin1 ISO-8859-1 can't even save special characters so format of the database must be Latin7 ISO-8859-7. Could not really find easy function to do this, do I really have to write one...

ERROR: CMake must be installed to build dlib

While using docker build -t /flask-docker to create an image to later upload it to heroku, I get the following errors: #8 417.3 ERROR: CMake must be installed to build dlib #8 417.3 #8 417.3 ...

How to print variables in cmake

I want to use cmake to build my project, my CMakeLists.txt is very simple: cmake_minimum_required(VERSION 3.20) project(YuvParallelProcess) message("$(PROJECT_SOURCE_DIR)") ...

Android Gradle plugin 7.0.0 and NDK: UnsatisfiedLinkError

I recently updated Android Gradle Plugin to version 7.0.0 (Gradle version 7.0.2). Since I did this update, my native library continues to be compiled regularly, but no .so files are generated in...

Mac Big Sur MariaDB will not run

MariaDB has worked fine but is now failing to run on boot up. I have uninstalled and it then reinstalled it and this does not fix anything. Here is the output from mysql.server.start mysql.server...

Embed PNG (Or Bitmap with alpha channel) in executable

TL;DR: I want to create a standalone application that has image resources (with alpha channel) embedded. What is the modern/standard way of doing this and extracting the data? I am currently...