Compiling OpenCV on Windows 7 64bit - visual-studio-2010

I'm trying to get OpenCV working on Windows 7 64bit.
I tried installing the vs2008.exe installer bundle from the OpenCV website but it produced errors when trying to compile, I Google'd these and it appears that installer is no good for 64bit versions of Windows 7, bugger.
I've tried having a crack at compiling using CMake, but really having no luck, does anyone know of a way to get OpenCV installed on here so I can use it in VS2010?
Cheers

Managed to solve it, in the 'release' folder which CMake creates I was opening the wrong file with VS2010, I opened the project file and then had it run a build.
Then I changed the parameters in my project which wanted to use OpenCV to look in release for the appropriate files, needed a bit of fiddling but I think I have it now.

For anyone else interested in a guide how to compile OpenCV with TBB support in Visual Studio 2010, I created a video tutorial for it: http://www.youtube.com/watch?v=XeBhwbRoKvk
(although this is for Windows 7 32 bit)

Related

Compile OpenCV 3.4 and Cuda 9.2 with MS VS15 2017

I need to do fast image processing so I decide to go for OpenCV with CUDA support. Now I'm trying to build OpenCV as dll to use it in my project, but I am not even able to generate the VS project since CMake keeps giving me this error:
CMakeError. I am on Windows 10, CMake 3.11 with VS 15 2017 x64 generator, OpenCV 3.4 (the last release).
I have installed CUDA 9.2, 9.1 and 8.0 and set CUDA_HOME environment variable as the CUDA toolkit directory. Nothing seems to work.
Then I try to set the CUDA_SDK_ROOT_DIR through the CMake GUI, but the CUDA toolkit directory seems to be not the right one and I'm not able to find the CUDA sample directory anywhere.
I have googled a lot, but I found nothing that had been able to help me. Did someone face this very same issue? How can I solve it?
PS: I have successfully created the dll with TBB and IPP (without CUDA) and it is still not fast enough, so I really need to use Cuda.
I have solved using Cuda 9.1 and VS 15.45. To install CUDA in a correct way you need to use custom installation and delete the VS integration, since it seems to have some problems. Once installation is complete, CMake should detect it.
This is a guide that could help.

Installing Caffe with CUDNN 8.0 and Visual Studio 2015

I'm a bit over my head here, so please try not to strangle me for all the mistakes I am making until the end :)
I am trying to install Caffe using a Windows 10 pc with VS 2015 and CUDNN 8.0. I initially had trouble with the Microsoft supported Caffe files, so I found this link. I couldn't figure out what to do with the first set of files, so I opened up the second set of files and used the official instructions to edit CommonSettings.props, installed the necessary packages, and hit build.
I got an error saying that OpenCV could not be found, even though it was definitely installed. It seemed like it was looking for OpenCV in a place where it did not exist, so I copied the packages into the directory it was looking in. I am now getting an error cannot open file libboost_log-vc140-mt-1_59.lib. I've looked around and I can't find any file like that. What many things am I doing wrong? Thank you.
Check windows branch of official repository. I built it on win10 x64 machine using vs2015 and it works fine.

qt 5.2.0 windows 7 missing dlls (program crashes)

Trying to run a Windows 7, Qt 5.2.0 program and it crashes immediately.
I have the mingw48_32 version, and 32 bit version of Qt 5.2.0.
I dont have Visual Studio, although I did download and install some of the
2010 VS SDK and .Net framework stuff, still no luck.
Ive tried searching for these things to no avail. If it is somewhere on my machine
I have yet to find them.
After running dependency walker it shows the following missing DLL's:
GPSVC.DLL
IESHIM.DLL
API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL
API-MS-WIN-EVENTING-PROVIDER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-L1-1-0.DLL
API-MS-WIN-CORE-ERROR-L1-1-0.DLL
API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL
API-MS-WIN-CORE-SYSINFO-L1-2-0.DLL
API-MS-WIN-CORE-SYNCH-L1-2-0.DLL
API-MS-WIN-CORE-RTLSUPPORT-L1-2-0.DLL
API-MS-WIN-CORE-REGISTRY-L1-1-0.DLL
API-MS-WIN-CORE-PROCESSTHREADS-L1-1-1.DLL
API-MS-WIN-CORE-MEMORY-L1-1-1.DLL
API-MS-WIN-CORE-LIBRARYLOADER-L1-1-1.DLL
API-MS-WIN-CORE-INTERLOCKED-L1-2-0.DLL
API-MS-WIN-CORE-HEAP-L1-2-0.DLL
API-MS-WIN-CORE-ERRORHANDLING-L1-1-1.DLL
API-MS-WIN-CORE-DELAYLOAD-L1-1-1.DLL
API-MS-WIN-CORE-DEBUG-L1-1-1.DLL
API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.DLL
I really appreciate any help on getting past this! Already spent a couple days
trying to figure it out.
Thanks!
The same thing happened to me today. I found the problem. My program was loading a DLL with wrong version. This can occur when from the PATH or in the folder of the program is found incompatible library, which have references to these "missing" libraries. In the documentation of Windows is explained in what priority folders are searched for DLLs.
I had the same problem. I realized that I have been copy the wrong dll files. They had the same name that the old version (qt 5.0 to qt 5.5.1). So, I just copy the right files and was done.
If qt project depends on multimedia plugin:
in .pro file add
win32: QTPLUGIN.audio=qtaudio_windows
I get similar errors when I compile a C++ program under Windows 10 with Microsoft Visual Studio 2010 and try to install it under Windows 7. The solution: compile the C++ program under Windows 7.

LNK1104: cannot open file 'rpcndr4.lib'

I was working in VS2005 in WindowsXP 64-bit platform and now I am converting all my projects in to VS2010 in Windows7 64-bit. While building one of my project I am getting a link error "LNK1104: cannot open file rpcndr.lib". The project builds in VS2005 without any issues in my machine.
Whether its anything related to Platform SDK..? otherwise what's the solution for this issue.?
I read from a link that I have to install latest platform SDK to solve this issue.
I tried to download platform SDK 4.0 for Windows7 but it always get failed in my machine by stopping download infinitely.
Regards,
Nixon
Whether its anything related to Platform SDK..? otherwise what's the solution for this issue.?
SOLUTION TO QUESTION:
'rpcndr4.lib' is obsolete in the new SDK, so just edit your project > Props > Linker > input > Addition Dep..: and remove 'rpcndr4.lib'
I read from a link that I have to install latest platform SDK to solve this issue. I tried to download platform SDK 4.0 for Windows7 but it always get failed in my machine by stopping download infinitely.
WORKAROUND:
I had same problem. So I downloaded SDK onto my Windows-7 32-bit laptop without problem, then copied it to my Win-7 64-bit desktop.
I just solved the issue from the comment mentioned in the below website:
https://henbo.wordpress.com/2006/11/22/lnk1181-cannot-open-input-file-rpcndr-lib/
You also need to remove comment out the line
//#pragma comment(lib, “rpcndr.lib”)
in the dlldatax.c file

How to build a GIMP plug-in with Visual Studio?

I am going to develop an application for android using the GEGL library of GIMP. I am using visual studio 10. how to build the plugin with visual studio? what are the steps? how to run a GIMP project and debug?
I have also come across GIMPVS. please enlighten me about this.
Also, can anybody suggest any tutorial for developing APIs in C using GEGL library?
You will need to be a bit more specific :)
When I compile GIMP plugins on windows, I simply download the libgimp headers and lib files from the gimp-win sourceforge project (they don't seem to be available for 2.6 though, try asking on the GIMP irc, download the gtk+ headers and libs from the gtk+ site, and compile as I would compile any other program.
I guess you can do the same for GEGL, although you'd probably have to compile gegl yourself since I don't remember seeing any gegl distribution for windows. In order to compile GEGL, you will need
a mingw/msys environment
Binaries and Development headers of Gtk+ and babl (You may have to compile babl yourself).
You can refer to the GEGL website for instructions about that. Again, more details on what you are trying to achieve would help :) You can refer to my website on the page about compiling gimp on windows, to find instructions which will help you compile gegl and friends on windows.

Resources