I'm trying to compile OpenCV 2.4.5 with MSVC2010 Express under win64
LINK : fatal error LNK1104: cannot open file 'tbb_debug.lib'
All my paths are set correctly in cmake. It appears that in my TBB lib dir, I have tbb_debug.dll, but not tbb_debug.lib. I compiled tbb from source, however, there does not seem to be a tbb.lib in the prebuilt TBB packages either. Why is OpenCV asking for a .lib?
copy the release lib to the debug folder - it's missing.
I thought it was fixed on 2.4.5 but it no longer uses tbb on Windows so no experience
I've struggled building OpenCV with TBB for the past couple of days. I managed to compile it in the end; please find my CMake settings and other findings in this answer.
Related
Having Gstreamer 1.22 successfully installed I'm not able to configure the project to build OpenCV. CMake isn't able to find GStreamer on my machine. Any ideas how two address this issue?
Just found the solution:
Cmake is using FindGstreamerWindows.cmake to find GStreamer on Windows, which is using internal an environment variable called "GSTREAMER_DIR" pointing to ..\gstreamer\1.0\x86_64.
Please make sure GSTREAMER_DIR exists on your machine.
I recently compile Opencv 4.2 with GStreamer on Windows. I use settings for GStreamer as on the following pictures. Make sure you point to correct .lib and include directories. all_Library is gstapp-1.0.lib etc, when configuraing CMAKE to compile OpenCV.
I use Opencv 4.2, CMake 3.17.0 release candidate and Gstreamer 1.16.2 MSVC 64-bit (VS 2019) developer and runtime installer. The whole process is described here install OpenCV on windows GStreamer tutorial
The important part is to set up environmental variables to find Gstreamer Runtime. Into system variable path: add
xxx\1.0\x86_64\bin
xxx\1.0\x86_64\lib
xxx\1.0\x86_64\lib\gstreamer-1.0
Gstreamer pipe from c++ opencv program to the web.
I have install Cuda 6.5 and opencv 2.4.9 with visual studio 2010, when I run gpu, I get error
Opencv Error: No GPU support(the library is compiled without PGU support) in the row_nogpu, file C:/builds/2_4_Packslave-win32-vc10-shared/opencv/modules/gpu/src/precomp.hpp line 135
I get this error, is any one can help what do I have to do?
Thanks
I believe, you have to actually build the libraries with CUDA support. I Imagine This Guide will be useful.
This can be caused because of following.
Use the flag WITH_CUDA=ON during cmake
You are trying to load the libraries which are compiled without GPU support, after you install opencv make sure you change the libraries path to that of GPU supported once.
I have TBB installed to /usr/local/tbb and now trying to compile opencv 2.4.5 with the installed version.
But if i use ccmake, it will download another copy of TBB from the internet. I dont want this.
What are the commandline options for cmake to accept my local installed TBB directories?
Thanks!
cmake -DWITH_TBB=ON
-DTBB_INCLUDE_DIR=/usr/local/tbb/include
-DTBB_LIB_DIR=/usr/local/tbb/lib
I downloaded OpenCV-2.4.2 and I couldn't find any exe(auto run) file there.How ever I extracted that in to my C:\ directory and followed the following process in this video>>
https://www.youtube.com/watch?v=cgo0UitHfp8&feature=plcp
I have VS 2008 version. According to the video first I Added OpenCV to system variables and next build Visual Studio project. Added all the libraries and completed according to the video.
But When I debug my project it says>>
The application has failed to start because tbb_debug.dll was not found.
So;
1)Are there any wrong in my installation or this video?
2)Did I completed the installation process correct?
I must be thankful to u if u reply this soon.
Thank U
You are missing tbb_debug.dll (or it's not in your path)
If you built (or downloaded) opencv with TBB enabled then you need to install tbb and then put tbb.dll and tbb_debug.dll on the path (eg. copy to the opencv bin folder)
It's two days I'm search around the web for a tutorial to compile OpenCV 2.3 with ffmpeg support under windows, but nothing found. I'm using pre-built version of OpenCV in VS2010 but I cannot read from network camera, it's why I need ffmeg support.
The answer your looking for is here and it works for the 32 bit and 64 bit configurations.
I used this build of FFMPEG.
http://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-git-1aeb88b-win64-dev.7z
1) Download OpenCV 2.3
2) Open the root CMakeLists.txt and insert the line set(HAVE_FFMPEG 1)
3) Download http://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-git-1aeb88b-win64-dev.7z (or the 32 bit build if u fancy it)
4) Edit avformat.h found in the ffmpeg include dir with #define INT64_C
5) Edit cap_ffmpeg_impl.hpp from the highgui project with #define snprintf _snprintf
6) in your highgui project properties under C/C++>Additional Include Directories add path of the include directory of FFMPEG you just downloaded
7)On the same property page under Linker>General>Additional Library Dependencies add the path of the lib directory of FFMPEG you just downloaded
8)On the same property page under Linker>Input>Additional dependencies add ALL the names of the libraries of ffmpeg found in lib (avformat.lib, avscale.lib, avcore.lib etc)
9) build the highgui project
10) Add the path of the .dll files that came with FFMPEG to the System Path environment variable.
That's it! 10 easy steps ;)
Build OpenCV with CMake from sources. Choose USE_FFMPEG flag.
Get ffmpeg from http://ffmpeg.zeranoe.com/builds/
In my experiment, FFMPEG is not directly supported in window. The flag WITH_FFMPEG only appears under UNIX(opencv 2.3 CMakeLists.txt). So, if you want to build opencv 2.3 with ffmpeg support, you should edit the CmakeLists.txt or the project opencv_highgui yourself. And then get ffmpeg from WWW. You may also need to edit cap_ffmpeg_impl.hpp.