Error ZED installing with Cmake and openCV - opencv

i would like to install my ZED Camera from Stereolabs. Iwas following each step precisely (https://www.stereolabs.com/documentation/overview/getting-started/application-development.html#installation) but it didn't work. From the errorlog it says, that the path of the config and directory is wrong. So I put it manually but still going to the wrong file and directory.Errorlog and my configuration
CMake Warning at C:/Program Files (x86)/ZED SDK/dependencies/opencv_3.1.0/OpenCVConfig.cmake:166 (message):
Found OpenCV Windows Pack but it has no binaries compatible with your
configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.
Call Stack (most recent call first):
CMakeLists.txt:41 (find_package)
CMake Error at CMakeLists.txt:41 (find_package):
Found package configuration file:
C:/Program Files (x86)/ZED SDK/dependencies/opencv_3.1.0/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.
Thanks for any help!
Horst

Related

Lightgbm gpu installation

I am trying to run Lightgbm with gpu on Spyder. For installing the library I tried many commands but most have failed.
I tried "pip install lightgbm --install-option=--gpu" in anaconda prompt and got the
error.
The I followed the https://github.com/Microsoft/LightGBM/blob/master/docs/Installation-Guide.rst#build-gpu-version
I installed git, vs 2022, cmake and opencl(Cuda Toolkit)
For boost binaries I copied the boost_1_78_0 file in "C:\Boost".
But the file doesn't contain any "lib64-msvc-14.0"(or similar folder). This is the first problem but it contain libs folder so I gave that path(Hope that's right).
But then I get this error:
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
"CMake Error: The source directory "C:/Users/User Name/LightGBM/build" does not appear to contain CMakeLists.txt"
Any help is appreciated. Thanks

CMake error on Windows when building extra modules and CUDA

I am using Windows and using the CMake GUI. In CMake, I set the source code path at
C:/Users/me/Downloads/opencv
opencv and opencv_contribwere obtained from the OpenCV github repos
I set the build path in Cmake as C:/Users/me/Downloads/builds/opencv
I then set OPENCV_EXTRA_MODULES_PATH as C:/Users/me/Downloads/opencv-3.4/source/opencv_contrib/modules and checked WITH_CUDA
after Configuring, I get the error:
CMake Error at cmake/OpenCVDetectCUDA.cmake:125 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
cmake/OpenCVDetectCUDA.cmake:174 (ocv_wipeout_deprecated)
cmake/OpenCVFindLibsPerf.cmake:43 (include)
CMakeLists.txt:688 (include)
can anyone help with this?

opencv cmake warning meanings: CMakeLists.txt:1066 (include)

I am now building from source the opencv4.1.0 with cmake3.13. The cmake configuration gives a warning message saying:
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
directory
Call Stack (most recent call first):
CMakeLists.txt:1066 (include)
What does this warning mean? Does that need be carefully addressed for starting the building process?
check the file cmake/OpenCVGenSetupVars.cmake
if(DEFINED __python_path)
if(IS_ABSOLUTE "${__python_path}")
set(OPENCV_PYTHON_DIR_RELATIVE_CMAKECONFIG "${__python_path}")
message(WARNING "CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install directory")
It seems like you have set your Python path wrong
In windows you have to make an relative path in environtment settings to python/libs/site-packages. So in cmake set PYTHON3_SITE_PACKAGES to the relative path e.g %PYTHON_SITE_PACKAGES%.
And remember to run cmake / visual studio as administrator.

Compilation project with Cmake . I'm getting an error

I'm trying to compile a project with CMake. I'm getting an error:
Found OpenCV Windows Pack but it has not binaries compatible with your
configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.
Call Stack (most recent call first):
CMakeLists.txt:9 (FIND_PACKAGE)
CMake Error at CMakeLists.txt:9 (FIND_PACKAGE):
Found package configuration file:
C:/Users/Ghenja/AppData/Local/opencv/build/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.
I don't understand what is happening. Please help me to solve this problem.
Clean your project and remove CMakeCache.txt. OpenCV_FOUND is probably cached now.
If that doesn't work, then run your cmake command with additional flags just to be sure:
cmake -DOpenCV_FOUND:BOOL=ON -DOpenCV_DIR=/path/to/your/OpenCV

Gtest_main _dir not found while installing libqi for ros-nao

I am trying to install libqi for nao-ros and it gives me error: I already have gtest package but gtest_main is missing.
CMake Error at /home/shruti/d-prefix/share/cmake/qibuild/internal/uselib.cmake:80 (find_package): By not providing "FindGTEST_MAIN.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "GTEST_MAIN", but CMake did not find one.
Could not find a package configuration file provided by "GTEST_MAIN" with any of the following names:
GTEST_MAINConfig.cmake
gtest_main-config.cmake
Add the installation prefix of "GTEST_MAIN" to CMAKE_PREFIX_PATH or set "GTEST_MAIN_DIR" to a directory containing one of the above files. If "GTEST_MAIN" provides a separate development package or SDK, be sure it has been installed.
Any one knows about it?
I had the same problem when trying to build libqi and fixed it by:
cd /usr/share/cmake-3.0/Modules
ln -s FindGTest.cmake FindGTEST_MAIN.cmake

Resources