I am trying to do some OpenCV work on Visual Studio 2010 and I am trying to compile the 'createsamples' project. I am getting linker errors when trying to do so and after much research online I've noticed that I am missing the cvhaartraining library. What do I need to do to compile this library for use in my projects. I have VS 2005, 2008, and 2010 at my disposal and I can switch to either one as long as I can get a build. I am working with OpenCV 2.2
Thanks.
Tried this? http://asadujjaman.wordpress.com/2010/02/15/building-opencv-with-microsoft-visual-studio/
Related
i have very old project who has been made in visual studio 2008 with windows xp 32 bit.
I am trying to run this project in windows 7 64 bit with visual studio 2017.
i dont know much details about the project.
i know that MFC MBCS pakage was use.
so now i am trying to compile it and got some compilation errors.
the main one is :
__int64' followed by 'int64' is illegal
in the stdint.h file.
the line that get the error is:
typedef long long int64_d
i check the project and there is no call or use of the stdint header.
i read that it can be because the code build with old version of c++ and now i try to compile with higher version then c++11.
any help will be very appraised.
Thank You!
Well i figure it out.
the problem was that i am using old libs and dlls(probably made by v100 toolset of VS 2010) ,
so i set the platform toolset to the same version of the visual studio that make those
libs and dlls - visual studio 2010 v100.
to do that go to :
right click on the project
properties
configuration properties
general
platform toolset
and set it to v100(or other version needed)
now it's work fine!
I've been sent a sample app for a newly minted SDK, and I can't compile it - it won't compile at all in Visual Studio Express for reasons of ATL, and that seems to be the only version of VS 2010 that Microsoft still makes available. So I'm trying to compile it in VS 2012 Professional, but it gives me error LNK2038. From what I can gather e.g. from this thread, the problem is down to trying to use .lib files compiled for 2010 in the 2012 version. Since I'm not the one who compiled the .lib, and I don't have the code for it, and VS 2010 is inaccessible, I'm really not sure what to do about this unless the original authors recompile it. Any suggestions? Something basic I'm missing? Many thanks for any help.
Library files cannot be reused across different versions of the compiler. You will need to do one of the following:
Compile your project with the same version of the compiler used for creating the library files you have.
Obtain new library files from the owner of the code, compiled using the same compiler you are now using.
Obtain the source code for the libraries, and compile new versions of them yourself.
Rewrite the code you own to not depend on the libraries you cannot control, since your build environment does not allow for their use.
I am trying to compile wsdlpull (http://wsdlpull.sourceforge.net/#install) to create the dll and the tools but I cant seem to open the dsw file in to the work space with out errors as the instructions suggests. Could some who has tried this before give me a few hints as to what this might be caused by.
If not can someone suggest a good SOAP library with LGPL license.
Look in the wsdlpull-1.24\win32\vs2008 directory for the Visual Studio 2008 project version and convert that.
Assume I have source code for a lib/tool that works on gcc compiler. Can I use the same code and compile it in visual studio. will that be possible at all? If it is possible, how do I do it?
if you are just using all the standard C/C++ library like stdio.h, stdlib.h, etc. it should work fine. Pure console program should work fine. If you used some GUI related library (especially if you are porting over from unix to window) then it might not work.
To do so, you can simply just create a new project in visual studio and add the existing source code into the project workspace. Compile it, if you encounter any error, just post here or try solve if you know how
It depends on your code, GCC support a variant of C (C99) which Visual Studio doesn't support yet.
If your trying to compile a Unix program on Windows you best bet will be to use Cygwin.
Check this question for pointers on using Cygwin in Visual Studio.
OpenCV 2.0a does not include pre-compiled OpenCV libraries for Visual Studio users. I am trying to build the libraries from source using Visual Studio 2010 Beta and CMake, but I am getting lot of errors.
I even tried generating the libs from dlls using dumpbin but the linker errors are still persisting. Please guide me to generate the static libs for VS2010.
If the build error you're seeing is related to:
'back_inserter': identifier not found
as is likely the case for the source files cvmodelest.cpp and cvhog.cpp, add the following include statement to each of those source files:
#include <iterator>
For more info about the 'back_inserter': identifier not found error, see this blog post.
It's kind of late, but I created a video tutorial for compiling and configuring OpenCV 2.1 with Visual Studio 2010.
Try this tutorial(dead) and this one out as well.
I tried this with VS 2010 and Windows 7.
See another StackOverflow thread. It's for VC++ 2008, but it may help.