Trouble building the Open Asset Import Library (Assimp)

I have just downloaded the Open Asset Import Library (Assimp) which is an API used to import 3D file formats such as .3DS and .Obj into source code. Doing so allows for much easier rendering of...

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...

OpenCV VideoWriter using ffmpeg with "Could not open codec 'libx264'" Error

I am new to OpenCV, and I want write Mat images into video using VideoWriter on Ubuntu 12.04. But when constructing VideoWriter, errors came out. It seems that OpenCV invoke ffmpeg API using...

Is it possible to extract the Dockerfile from a docker container

I'm just starting out with Docker, and it would be very helpful to be able to see the Dockerfiles used to create existing docker images. Even if the image was built by running commands manually,...

Understanding roles of CMake, make and GCC

1. cmake is a command from CMake software: preparation for build automation system; make and make install are commands from Make software: build automation system. 2. From reading this post, what...

OpenCV installation with Java on MAC OS Sierra

Trying to install OpenCV3.1 for Java on MAC OS 10.12.2 (Sierra). Followed the commands from this link. I would like to install this so that I can configure Eclipse with OpenCV. Couple of errors...

Android Studio CMake Error: Build Command failed

I'm running into an Error when I open a new project in Android Studio from the Code Samples (Hello JIN). When the Project is opened the following: Build command failed. Error while executing...

opencv - cmake error : No such file or directory on Ubuntu

I have been trying to install opencv from source rather than pip since I could not read a VideoCapture successfully. Installing opencv-3.2.0 on Ubuntu 16.04.3 LTS. Followed the details mentioned...

OpenCV - undefined reference to 'cv::CascadeClassifier::detectMultiScale() after NDK update

Yesterday I updated my Android Studio included NDK to version 17.0.4754217and since then I can't run my app anymore. When I tried to rerun the code after the update it gave me the error ABIs...

JavaScript heap out of memory in Angular 7 using Azure DevOps

I am getting FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory after Angular 7.1 upgrade. The previous version 6.1 was working perfectly fine. I get the error only...

ModuleNotFoundError: No module named 'face_recognition'

import face_recognition image = face_recognition.load_image_file("My_Image.png") face_locations = face_recognition.face_locations(image) print("I found {} face(s) in this...

How to crosscompile applications on Ubuntu to Windows

I have been developing an app built upon Qt 5 on Ubuntu in Qt Creator. The project format used is CMake. It's time to cross-compile the stuff into a binary which can be run on Windows. So I...

CMake error "include could not find load file: FetchContent"

I am getting the following error while executing the cmake command on Ubuntu. CMake version - 3.10.2. [email protected]:~/Desktop/LocatePro$ cmake . -- Enable testing: ON CMake Error at...

How to request a password for GIT_REPOSITORY using HTTPS URL

The URL understood by the git command can be in the format HTTPS or SSH. In CMake, using ExternalProject_Add for the specified GIT_REPOSITORY any URL understood by the git command may be...

Docker + Java + OpenCV, no opencv_java342 in java.library.path

I am trying to generate a docker image with the following characteristics SO --> ubuntu:18.04 Java --> openjdk-11-jdk OpenCV --> 3.4.2 version I am able to generate the images successfully but...

Using c ++ class in jni

I apologize for my bad English. In an android application I want to use the code in the link. How do I use c ++ class in jni? How do I resolve this error? Thank you. OpenCV version : 3.4.5 my cpp...

installing opencv failed- pasting the contents of CMakeError.log

I tried the following sudo apt-get update sudo apt-get upgrade sudo apt-get install build-essential cmake unzip pkg-config sudo apt-get install libjpeg-dev libpng-dev libtiff-dev sudo...

python run bat file to setup environment variables

i have a .bat file which executes multiple set command to add environment variables, for further scripts to execute, i tried below code which is not working import...

Setting environment variables to ExternalProject_Add context

I have a CMakeLists.txt file in which there are multiple external projects I need to build. I am using the ExternalProject_Add feature of CMake. I need to set an environment variable in one of the...

app\src\main\cpp\CMakeLists.txt : C/C++ debug|arm64-v8a : Configuration failed

I copied the necessary .so files under the jnilibs folder, and configured the below files in an android ndk project using jni interface. While running the project, it throws an error as seen...

Pass numpy's include dir to Cmake from Setuptools

I have a C++ library which I have successfully exposed to python using Pybind11. In the CmakeLists.txt file, I have added the numpy include like...

QML Svg in qt 5.15 static build, using CMake

I would like to migrate from 5.9 to 5.15 and I don't get to load svg from QML. The original version, using qt provided by Ubuntu (5.9) did load svg from QML with no extra steps. The new build...

Visual Studio export .editorconfig has no content for c++

I have tried exporting my C++ formatting settings into a .editorconfig but with the 2 methods I have attempted, the config is almost completely blank except for a brief comment header and the...

Getting error "CUDA backend requires cuDNN" when configuring OpenCV cmake build with cuda backend turned on

My goal: My goal is to configure a build of OpenCV 4.5.1-dev with support for cuda, tesseract and QT without any cmake error.. The problem I am having: I am getting the following error when I...

CMake Error ...: DNN: CUDA backend requires CUDA Toolkit. Please resolve dependency or disable OPENCV_DNN_CUDA=OFF

Here is the error I am getting when I am compiling OpenCV on ubuntu 20.04 with cuda 10.1. -- Detected processor: x86_64 CMake Warning at cmake/OpenCVUtils.cmake:721 (message): Unexpected option:...

How to dump CLion's default clang-tidy configuration?

I want to use the default configuration of enabled/disabled checks from CLion (with some small changes) and I want to enforce it when building my application. Enforcing clang-tidy works perfectly...

MySQL and MariaDB library's in C++ using cmake, mingw

STARTIG WITH MYSLQ CONNECTOR - here is the cmakelists.txt file that I use to generate build system using CMAKE GUI on windows (cause I actually have to make console application in c++ for...

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...

Build C++ module with CMake's experimental module dependency scanning

CMake has experimental C++20 module dependency scanning (!5562). I try to use CMake 3.20, g++-11, and ninja-1.10 to build a project with module. // main.cpp import mod; int main() { return 0;...

How to create custom recipe for dlib library for p4a

The code below successfully creates libdlib.so and copies it to .buildozer/android/platform/build-armeabi-v7a/build/libs_collections/<APP>/armeabi-v7a also this file is located in the apk itself...