Error while building cvblobs.lib with VS2010 and Windows7 - visual-studio-2010

I am trying to build cvblobslib in VS2010 with windows 7.
The cvblobs wiki page here
http://opencv.willowgarage.com/wiki/cvBlobsLib#Build_intructions
describes that to build you need to just open the project file and build it.However, for me working in VS2010 on windows 7 this does not build and gives the following error:
`c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blob.h(21): fatal error C1083: Cannot open include file: 'cxcore.h': No such file or directory
1> ComponentLabeling.cpp
1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blobcontour.h(6): fatal error C1083: Cannot open include file: 'cv.h': No such file or directory
1> BlobResult.cpp
1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blobresult.h(24): fatal error C1083: Cannot open include file: 'cxcore.h': No such file or directory
1> BlobOperators.cpp
1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blob.h(21): fatal error C1083: Cannot open include file: 'cxcore.h': No such file or directory
1> BlobContour.cpp
1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blobcontour.h(6): fatal error C1083: Cannot open include file: 'cv.h': No such file or directory
1> Generating Code...
1>
1>Build FAILED.`
How do I remove these errors?There have been similar questions here but no-one has answered these satisfactorily.

Have you changed the include paths to point to your installation of OpenCV (opencv_install_path/include/)? This resides in Project -> Properties -> Configuration Properties -> C/C++ -> General -> Additional Include Directories.
Also specify the path to OpenCV libs (opencv_install_path/lib/) in Project -> Properties -> Configuration Properties -> Linker -> General -> Additional Library Directories and specify the static libs (opencv*.lib) that you need to use in Project -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies.

Related

Zmq setup for VS2010 C++

I am trying to setup zmq for VS2010 C++.
Following are the steps I have tried:
Downloaded .zip source
Built the solution builds\msvc\msvc10.sln
Set C/C++ > General > Additional Include Dictionaries -> C:\Program Files\ZeroMQ 3.2.3\include
Set Linker > General > Additional Library Dictionaries -> C:\Program Files\ZeroMQ 3.2.3\lib
Set Linker > Input > Additional Dependencies -> libzmq.lib
And yet getting this error:
"Cannot open include file: 'zmq.hpp': No such file or directory"
Can anyone please help me with right steps?

gsoap : plug in stlvector

I'm writting hellow-world program using gsoap v 2.8 and trying to compile it in Visual Studio 2010. I want to use stl-vector functionality. But there are import errors in directive
#import "import/stlvector.h"
The error:
error C1083: Cannot open type library file: 'r:\work\vs2010\xmlme\xmlme\import\stlvector.h' Error while loading library r:\work\vs2010\xmlme\xmlme\xmlme.h
And consequence:
IntelliSense: cannot open source file "R:/Work/VS2010/XmlMe/XmlMe/Debug/stlvector.tlh" r:\work\vs2010\xmlme\xmlme\xmlme.h
Cannot figure out what Intellisense wants from me. I copied import folder from gsoap directory to my project and referencing it properly as I think.
my solution archive (link may expire)
UPDATE:
I've tried -s parameter for wsdl2h utility to exclude stl-dependency from xmlme.h file. And now I've similar error:
error C1083: Cannot open type library file: soap12.h: Error while loading library. xmlme\xmlme.h
... producing the same weird consequence:
IntelliSense: cannot open source file "XmlMe/Debug/soap12.tlh" \xmlme\xmlme.h
The thing is to not include XmlMe.h (file generated with wsdl2h.exe tool) in the project. It uses soapcpp2-compliant language (C-based but not C and that's why VS10 compiler generates error when including such a file).
Also you need to include .nsmap file, for e.g. in your main function definition file.

fatal error LNK1104: cannot open file 'libboost_date_time-vc100-mt-gd-1_53.lib' - file ignored, no matter what i link

I have just bjamed boost and it seems like its still gonna refuse to work (I alread have tried and given up to make this library). What I did was, that I launched bjam.exe and I linked:
include directories: C:\ ... \boost_1_53_0
Library directories: C:\ ... \boost_1_53_0\bin.v2\libs
But I still get the error. So I decided to look in the folders, and this showed up to be path to the desired library:
C:\ ... \boost_1_53_0\bin.v2\libs\date_time\build\msvc-10.0\debug\link-static\threading-multi\
If I explicitly add this folder to the Library directories, the library is found but in VCC another error pops up, asking me for another library.
So how do I ask bjam to make a folder system that VCC can understand?
Adding the C:...\boost_1_55_0\stage\lib directory worked for me. Added to:
Project properties -> Configuration Properties -> VC++ Directories -> Library Directories.
Adding the following link to 'Configuration properties -> Linker -> General -> Additional Library Directories ' helped me as well.
'C:\Program Files\boost\boost_1_55_0\stage\lib'

NVIDIA SDK is missing a header file

I am writing a simple program and trying to include this file in my code #include <cutil_inline.h> but I am getting an error..
fatal error C1083: Cannot open include file: 'cutil_inline.h': No such file or directory
I have tried this but still getting the error
Error:
fatal error C1083: Cannot open include file: 'cutil_inline.h': No such file or directory
Solution:
1- right-click on project name in solution explorer window
2- Click "Properties"
3- in left window Click Configuration Properties -> Linker
4- set the value of "Additional Library Directories" to
"$(CUDA_PATH)/lib/$(PlatformName)";"$(NVSDKCOMPUTE_ROOT)/C/common/lib"
5- Right-click on your .cu file
6- Click Properties
7- Click on Cuda Runtime API
8- Set Additional Include Directories to :
$(CUDA_PATH)/include;./;$(NVSDKCOMPUTE_ROOT)/C/common/inc;$(NVSDKCOMPUTE_ROOT)/shared/inc
Can anybody help me out here. ?
Note you are missing a header, not a library. Making changes in Additional Library Directories will not help you.
Find the path cutil_inline.h is in. Make sure your SDK version includes it; if it doesn't, see if your code can do without it. Also note that according to the comment from #talonmies, the cutil package doesn't exist in CUDA 5.
Put the path into Configuration Properties -> C/C++ -> General -> Additional Include Directories.
For me it's under $(NVSDKCUDA_ROOT)\common\inc, but your mileage may vary.

Builds with command line "devenv" but not with Visual Studio (sln) and MSBUild

I'm trying to set up a project with TeamCity and I was wondering what does exactly happen when I choose “Visual Studio (sln)” from the drop down menu under "Runner Type". When I choose this option my project fails to build and I get a bunch of compilation errors like this :
Logging\LoggingSingleton.cpp(19, 0): error C1083: Cannot open include
file: 'Auto/AutoHandle.h': No such file or directory
d:\tcbuildagent\work\b1f06d91677fef59\consumer_2011_050\coretech\sdk\src\auto\AutoTempFile.h(16,
0): error C1083: Cannot open include file: 'Coretech.h': No such file
or directory
d:\tcbuildagent\work\b1f06d91677fef59\consumer_2011_050\coretech\sdk\src\auto\AutoTempFolder.h(23,
0): error C1083: Cannot open include file: 'Coretech.h': No such file
or directory
d:\tcbuildagent\work\b1f06d91677fef59\consumer_2011_050\coretech\sdk\src\logging\McLog2.h(8,
0): error C1083: Cannot open include file: 'Coretech.h': No such file
or directory
d:\tcbuildagent\work\b1f06d91677fef59\consumer_2011_050\coretech\sdk\src\encryption\McAfeeObfuscation.h(2,
0): error C1083: Cannot open include file: 'Coretech.h': No such file
or directory
d:\tcbuildagent\work\b1f06d91677fef59\consumer_2011_050\coretech\sdk\src\file\BaseIniReader.h(21,
0): error C1083: Cannot open include file: 'Coretech.h': No such file
or directory
d:\tcbuildagent\work\b1f06d91677fef59\consumer_2011_050\coretech\sdk\src\file\IniReader.h(21,
0): error C1083: Cannot open include file: 'Coretech.h': No such file
or directory
d:\tcbuildagent\work\b1f06d91677fef59\consumer_2011_050\coretech\sdk\src\file\BaseIniReader.h(21,
0): error C1083: Cannot open include file: 'Coretech.h': No such file
or directory
d:\tcbuildagent\work\b1f06d91677fef59\consumer_2011_050\coretech\sdk\src\file\BaseIniReader.h(21,
0): error C1083: Cannot open include file: 'Coretech.h': No such file
or directory
However, if I choose “Command Line” as my runner type, and run my solution like : devenv ………../LogReader.sln /Build “Debug” it builds fine with no compilation error. But we don’t want our teams to manually put in the parameters every time, and either build it with MSBuild (gives same errors as Visual Studio sln) or “Visual Studio (sln)”.
You might verify the platform that it is building with, or specify it. We've had similar issues in the past when the project settings were inconsistent across platform, and the platform being built was not the one that was expected. In this case, I would suspect that one platform does not have the same include directories as another.
TeamCity is a build server which has a set of plugin support to perform the more than one type of build process in a very smoother fashion. TeamCity downloads the code from the Source Control application to a working folder and starts the build process. The build process expects the assembly references and libraries as similar to a developer machine. For example, a basic .net application requies the appropriate .net framework to perform the build process. Similarly in your case, the libraries. If you can make the library files available, the build process will run without an issue.

Resources