read already some other threads about these..tried so far everything...
nothing worked. double checked everything.
using x64 system, VS13(x32) and x64 as target system (though i tried using x32 before and had
the same error)
anyways here are my links:
Debug x64
VC++ exec directory: K:\A_A_Programmierung\opencv\build\x64\vc12\bin;$(ExecutablePath)
VC++ lib: K:\A_A_Programmierung\opencv\build\x64\vc12\lib;$(LibraryPath)
C/C++: K:\A_A_Programmierung\opencv\build\include;%(AdditionalIncludeDirectories)
Linker: Target Computer: MachineX64 (/MACHINE:X64)
additional dependencies:
opencv_calib3d300d.lib;opencv_core300d.lib;opencv_features2d300d.lib;opencv_flann300d.lib;opencv_highgui300d.lib;opencv_imgcodecs300d.lib;opencv_imgproc300d.lib;opencv_ml300d.lib;opencv_objdetect300d.lib;opencv_photo300d.lib;opencv_shape300d.lib;opencv_stitching300d.lib;opencv_superres300d.lib;opencv_ts300d.lib;opencv_video300d.lib;opencv_videoio300d.lib;opencv_videostab300d.lib;%(AdditionalDependencies)
Additional lib. directory:
K:\A_A_Programmierung\opencv\build\x64\vc12\lib;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib;%(AdditionalLibraryDirectories)
also checked some other settings mentioned in other threads!
and did set the enviroment variable as mentioned in a tut and also ran VS13 as admin
any help?
ok fixed it myself...
you have to add the files of opencv 3.0 under opencv\build\x86\vc12\lib
for the linker input. (see additional dependencies) which isnt the whole list anymore...
list on the official tutorial is not up to date!
Try using $(OPENCV_DIR)\staticlib instead of $(OPENCV_DIR)\lib.
Related
I'm trying to write a program that uses SURF algorithm and I know that the nonfree module must be installed separately. I've downloaded and installed the latest version of CMake(3.5.2) and I'm following the instructions from:
https://github.com/itseez/opencv_contrib/ . I'm using the GUI and I run Visual Studio 2015 on a 64 bit Windows 10.
Since I know that for SURF you must include xfeatures2d when it asked me the source of the code I only specified the xfeatures2d folder. When I first pressed the configure button I had some errors(I've attached an image of them). I managed to get rid of one of the errors, the one that said to write a line of code at the top of the file
cmake_minimum_required(VERSION 3.5), but I still have one error:
CMake Error at CMakeLists.txt:4 (ocv_define_module):
Unknown CMake command "ocv_define_module".
I'm also attaching a picture of the CMakeLists.txt. Please help me find the problem.
Also, if you could help my install all modules at once, I would be grateful. Or do I have to set as input every folder in the modules folder?
GUI error and CMakeLists.txt
Try using Visual Studio 12 2013 for compilation, this has worked for me, but not the other (newer) versions of Visual Studio.
I'm trying to write a sample ImageMagick program in Visual Studio 2010. I have binary distribution of ImageMagick already installed on my system as I can use command line interface of ImageMagick.
However, when I try to include "Magick++.h" in my C++ program, it says it can't open source file.
I found the instructions on compiling and building ImageMagick from source, but is it possible to change my visual studio project settings so it can pick necessary references/libraries from the already installed version of ImageMagick?
I am by no means an expert, but here is what worked for me:
Using Windows7 Professional and Visual C++ Express 2010...
I checked the Install development headers and libraries for C and C++
At the end of the install, I got these two folders. Magick++.h lies inside include.
Be sure to set up your projects Additional Library Locations and Additional Include Directories and you should be able to compile your program.
Additionally:
The manual suggests you need to do this for your program to work, but I did not and it still worked:
InitializeMagick(path_to_ImageMagick_DLLs);
And during my brief test, I found that Magick::Image::Magick() which changes image formats does not work in Debug mode. It does work in Release mode though.
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)
I am trying to build a test MVC4 project on OS X 10.7.4 using Mono 2.10.9. I created a new empty MVC4 web application in Visual Studio used git to transfer the source code from Windows to Mac OS X. I then ran xbuild for .nuget package restore, but when I build in monodevelop I get a weird error:
/Users/tamasnagy/Developer/Spellbound/Spellbound/Spellbound.csproj: Error: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/Microsoft.WebApplication.targets: Project file could not be imported, it was being imported by /Users/tamasnagy/Developer/Spellbound/Spellbound/Spellbound.csproj: Imported project: "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/Microsoft.WebApplication.targets" does not exist. (Spellbound)
What could this mean? This also happens when I simply create a new MVC project in MonoDevelop and press build. Any ideas?
Create a symlink:
cd /usr/lib/mono/xbuild/Microsoft/VisualStudio/v9.0
ln -s v9.0 v10.0
I have the same exact ubuntu 12.04 distro on two different computers and could not figure out why mono would compile on one computer and not the other. But oh well, symlink solved the problem.
Change your csproj file to import v9.0, as so...
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
Mono's MSBuild implementation (xbuild) does not have an implementation of the targets for ASP.NET projects.
You might be able to build in MonoDevelop. Make sure you have the experimental xbuild integration turned off in MonoDevelop preferences.
I know this is an old question, but it came up when searching for how to use WebApplications.targets on OSX, so it's still worth answering. With the current version of Mono (5.x), Webapplication.targets is included, so now all you have to do, is to set the VSToolsPath, and everything should just work.
If you are using standard bash shell, the .profile file is the place to put it:
export VSToolsPath=/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild/Microsoft/VisualStudio/v15.0/
i'm using opencv2.1 with visualstudio2010
while debugging it is showing this error message:
'the program can't start because cxcore210.dll is missing from your computer. Try reinstalling the program to fix this program.'
but cxcore210.dll is already present in the /bin folder
any suggestions?
You need to make sure the dll is in your system path or in the same folder as the executable. The best way is to add the OpenCV /bin folder to your PATH environment variable.
http://www.mattmontag.com/development/notes-on-using-opencv-2-3-with-visual-studio-2010
With the runtime errors you are now having that suggest you are using the OpenCV binaries compiled in Visual Studio 2008, the easiest option is to get the OpenCV 2.3.1 Win superpack distribution. It comes with binaries compiled in vs2008 and vs2010. Please see my blog because it also has instructions for configuring this distribution! :)
http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.3.1/OpenCV-2.3.1-win-superpack.exe/download
Also - the documentation for OpenCV 2.3 at http://opencv.itseez.com/ is generally much cleaner and better than the other versions.