Install opencv on visual studio 2013 - visual-studio-2013

I have installed open cv and have configured all the path variables as mentioned in step by step procedure.
I tried a sample program to verify whether my installations are correct. I have mentioned all the path for include files, library files and additional path variables in visual studio 2013.
I am getting error "Cannot open opencv2/core.hpp no such file or directory"
When i check the location of the include file under opencv2 folder there is no such file. But i can see the same in github. If i branch out and download the same from github again in my local I cannot see the core.hpp.

Got answer for this issue... This is because from version 3 openCV needs only couple of lib files to be associated with additional library dependency.. Earlier we need to have multiple lib files for the same...

Related

Cannot open include file: 'pnglibconf.h':No such file or directory

I'm trying to build libpng in MS Visual studio 2015 community edition but when i built it, i got this error (i used cmake to compile libpng along with compiled zlib to produce libpng's soln file ALL_BUILD.vcxproj )
Cannot open include file: 'pnglibconf.h':No such file or directory
I think this a system specific error,when i try to build this on other system it works fine(because pnglibconfig.h was present with MS VS soln folder). Is there any prerequisites that is missing? Update: I tried building libpng in both debug & release mode, both are showing the same error. Zlib builds fine.
Try to add the folder where the png lib headers are to your include list in the VS project settings
If you aren't using "configure", you may need to copy pnglibconf.h.prebuilt from the scripts directory to pnglibconf.h in your working directory. See Section III of the INSTALL file in your libpng source directory.

Error while Loading CMU sphinx in visual studio 2013

I am trying to load CMU sphinx in visual studio 2013 but getting some error.
The steps which i followed was
I downloaded sphinxbase-5prealpha and pocketsphinx-5prealpha and extracted to same folder.
Then i complied all the projects from both pocketsphinx and sphinxbase in visual studio(it asked me to upgrade the compliers so i did the upgrade)
now after cleaning the project, when i am trying to build all the project it is throwing a error that 'cannot open sphinxbase.lib' which it is showing in pocketsphinx project.
when i checked the 'sphinxbase.lib' file was already there in the linker of the project.
According to this document the 'sphinxbase.dll' file should be added to the bin files, but it is already added in the directory bot release and debug.
Similarly it is present in debug directory also.
Please help me, can anybody tell me what wrong i am doing here??
I am just a beginner only in this area.
Thanks !
You extracted files incorrectly. The layout must be the following:
root folder
\____pocketsphinx
\____ all files like README, src
\____sphinxbase
\____ all files like README, src
You need to download sources and unpack them into two folders - pocketsphinx and sphinxbase. Then open sphinxbase solution and compile everything. Then open pocketsphinx solution and compile everything. Please note that if you downloaded pocketsphinx-5prealpha you need to rename it to just pocketsphinx. Same for sphinxbase.
Please also note that pocketsphinx_5prealpha_win32 is a binary distribution, you can not compile it. Instead, you can include it directly into your projects.

Visual studio express 2012 cannot open include file: 'windows.h': No such file or directory

When I run my project I get fatal errors:
Cannot open include file: 'windows.h': No such file or directory
Cannot open include file: 'd3d11.h': No such file or directory
Cannot open include file: 'd3dx11.h': No such file or directory
I have installed SDK, someone tell that I must set correct path to SDK directory, but I not know where to do it, in Tools->Options->Projects and solution I see "Option has been deprecated"
#Kanglai may be right here but the error you are seeing related to the D3D headers is something different. The DX SDK ships separately from the Windows SDK. See this article on MSDN.
Where is the DirectX SDK?
The way Visual C++ handles directories has changed in recent versions, hence the deprecated message. The following blog post explains the changes and how to do the same thing in the newer versions of VS.
VC++ Directories

Trouble building Boost Libraries

OS: Win7
IDE: Visual Studio 2010 Professional
Boost Lib Version: 1.47
Downloaded "boost_1_47_setup.exe" installer from http://www.boostpro.com/download/
Initially installed everything for VS 10, then just checked every box (5+ GB install!)
Added the "boost\boost_1_47" path into "Additional Include Directories" in C++->General
Copy/Pasted code from "Getting Started on Windows: 4 - Build a Simple Program Using Boost"
Compiled without issue
Included boost/regex.hpp and re-compiled
Received Error:
LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc100-mt-gd-1_47.lib'
Expected, haven't built the binaries yet.
Ran "Visual Studio Command Prompt" from tools folder in my VS 10 installation as admin
cd'ed to boost root
Ran bootstrap.bat from command line
Received Error:
Building Boost.Build engine
The system cannot find the path specified.
'.\build.bat' is not recognized as an internal or external command,
operable program or batch file.
Failed to build Boost.Build engine.
Please consult bootstrap.log for furter diagnostics.
Everything I did came from the Getting Started page on Boost.org. Not sure if its just dated or if I'm doing something wrong.
Came here looking for answers, found some similar issues, namely the following:
Problem with C++ Boost installation (can't find file) in VC++ 2010
Problem with C++ Boost installation (can't find file) in VC++ 2010
Boost C++ Libraries linker error libboost_serialization-vc100-mt-gd-1_47.lib
Boost C++ Libraries linker error libboost_serialization-vc100-mt-gd-1_47.lib
No dice. Any help would be appreciated. Thanks
The compiler cannot find the BOOST's library file. To fix the issue you have to find on your computer the libboost_regex-vc100-mt-gd-1_47.lib file and add its folder path to the Project->YourProjectName Properties (Alt+F7)->Configuration Properties->Linker->General->Additional Library Directories. After recompile your project.
This is the answer to the above comment of #Johnny 5....thousand. In VS10 the compiler-wide additional libraries are deprecated. I solved the problem by adding a new project property sheet to all my projects. It is possible to do it by calling the Property Manager Tab (View->Property Manager). In the Property Manager Tab is necessary to click right mouse button on the project, select Add New Project Property Sheet, Save the sheet to a well-known place. After to define a new User Macro - Name:BOOST, Value: Your Boost Path, for example c:\boost_1_47_0\, also add the $(BOOST) to the Additional Include Directories and ad the $(BOOST)\lib to the Additional Library Directories. That's all. For all other projects is required to add existing property sheet.

Visual Studio 2010 can't see /bin library of OpenCV

I'm trying to use OpenCv 2.2 in Visual Studio 2010.
I've configured everything by instruction:
http://opencv.willowgarage.com/wiki/VisualC%2B%2B
and by instruction from the book:
So I've added all /lib and /include paths.
When I build project, it compiles and before starting app, VS displays an error message that opencv_core220d.dll is missing.
This file is in C:/OpenCV2.2/bin as all .dll files. If I add this file to my working directory - it will be fine. Then VS displays error about every .dll file that I added in Linker-Input configuration ( but with .lib extension ).
So, if I add all .dlls file that I've added as .lib in Linker configuration - to my working directory, project will start.
But why? Why VC doesn't see OpenCV2.2/bin folder? Where is this pointed?
Because it doesn't know to look there by default. However, it does know to check the current directory for the DLLs.
You can tell it where to look by adding C:/OpenCV2.2/bin to your Path variable, or if you would rather not muck up your global Path you can set the Environment variable local to the C++ project.
I think that is the syntax for appending to the Path in VS2010, but I'm not sure, so Google it if that doesn't work :)

Resources