Great Job! One question, around 8:23 you talk about "Linker" and I don't even see that on my property pages when I click on "configOpenCV". I just downloaded the most recent VS2010 and updated all files. Did I miss something?
@maulkraken Okay.. I think I just figured out why I don't see the "Linker". I configured this under the "ALL BUILD". Somehow I missed the part about creating the "OpenCVconfiguratioin" file and continued to modify the ALL BUILD!
@pressgreen I would recommend it, so you can run cmake from the commandline in the directory of your project. Not sure if it is necessary if you work with the GUI only.
Hm, after i finished with Generating in CMake, Release folder didn't appear at C:\\openCV/build/lib. There is just a Debug folder, but with only 2 files inside: cvhaartraining.lib and cvhaartraining.pdb. And yet in your Debug folder there are a bunch of them...why is so? thanks
@SerCondor I solved a problem. If somebody was bothering with same thing, here is an explanation: It is not enough to generate files with CMake, because it just create solution files for MVS2010. It is necessary to build project, and then Debug and Release folders get full with libraries. Reason why i was stuck at this step is old version of TBB, which didn't allowed proper build. So don't forget to download LATEST version of it.
Hello guys, I hope one of you can help me. Every time I click to „Build Solution“ I get 13 errors. It can not open the libraries (for example „tbb_debug.lib“ )and I dont know why. I've added the folder “include” of the „tbb30_20101215oss“ to the „Include Directories“ and the folder „lib“ to the “Library Directories”. And the libs are in the folders.
I already tried the shown „tbb30_20101215oss“ and the new „tbb40_20111003oss“ but it is everytime the same.
is it the same with compiling and configuring OpenCV in Visual Studio 2010 EXPRESS? i can't seem to compile it properly. i always get some errors with TBB and the steps for fixing it in the video is not in EXPRESS. thanks in advanced!
Which sick openCV nut did invent this complicated routine? no wonder open Source software will never get rid of their 20 year old user-repulsing reputation.
Thanks for the video! It really helps. I tried using your install technique with openCV 2.3 with TBB 3.0 but it doesn't seem to work. I noticed the file names and folder locations have slighty changed. :( Would you be kind enough to update your tutorial video using the latest openCV, Cmake, TBB and settig it up in vs2010? I would really really appreciate it. :) Also if you could add the CUDA toolkit it would be totally totally awesome!!
m getting dis error on configurin..plz help me!!!!
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): The C compiler "cl" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/OpenCV2.2/build/CMakeFiles/CMakeTmp
ok i was following fine up until 6:30. what file is he opening? i cant find a "OpenCVConfiguration" file in the directories. can somebody either tell me what file to open or what im doing wrong? thanks in advance.
@ProjectEvaVideos Hey thanks for your comment. I was opening just a test project I created myself, I named the solution OpenCVConfiguration because I was demonstrating how to configure OpenCV in VS2010. I just created a main.cpp file and you can copy the code in that file from the video, it's very simple code that compiles only if VS is configured correctly. You can modify and create property pages for each project, that's what the video does to configure OpenCV. Hope this helps!
hey m new to opencv,visual studio and cmake...cud plzz gimme links for visual studio..n xactly mention which version shud i download...cozzi have got visual studio professional...plz help me
@madcapgopi As I haven´t run in that situation, I can´t really tell what´s wrong, but my best guess is misconfiguration of your project. Are you able to build a simple hello world C++ program? if not, visual studio is possible configured incorrectly. Make sure inf kernel32.lib is indeed located in one of the library paths. I'm not sure
@madcapgopi As I haven´t run in that situation, I can´t really tell what´s wrong, but my best guess is misconfiguration of your project. Are you able to build a simple hello world C++ program? if not, visual studio is possible configured incorrectly. Make sure inf kernel32.lib is indeed located in one of the library paths. I hope this helps
Why the fuck does this have to be so complicated? It pisses me off how developers, especially open source developers, are incapable of making human-friendly software. Just because you spent time on it does not mean you should make everyone regret not making their own library from scratch.
@chotansign if that code is in a *.cpp file (and NOT in a .h file!), it should work.
If not, Google something like this "error LNK2001". These pages indicate that it cannot find your main function somehow. I added a download link in the detailed description page of this video with my test project. If you open it, set the paths in the property pages right as explained in the tutorial, it should work too.
@toefel18: Yes, I got the problem. My problem was, I couldn't make the main.cpp file. I solved it by the following tutorial "Visual Studio C++ Tutorials: Hello World" from youtube.
Right now everything is working. Thanks for your feedback.
Hi, I'm facing problem at 09.30. I got following lines when I compiled (here some lines I paste because of less space). Waiting for your kind feedback.
InitializeBuildStatus:
Touching "Debug\test.unsuccessfulbuild"
1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>c:\users\chotan\documents\visual studio 2010\Projects\test\Debug\test.exe : fatal error LNK1120: 1 unresolved externals
@chotansign Hey I think you are missing a correct definition of your main function. Make sure there is a main function with this signature defined in a .cpp file (only a .h file does not work since those are only compiled when included): int main(int argc, char* argv[]){} If I change my main function It gives me this error, which is similar to yours:
MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
@danmalikin cxcore210.lib is the release version of the library, cxcore210d.lib is the debug version. Make sure that the paths in the property pages for your debug build are pointing to the debug library directory (OpenCV-2.1.0\build\lib\Debug) and the library paths for the release build are pointing to the release library directory(OpenCV-2.1.0\build\lib\Release).
@danmalikin if you followed the tutorial, you binaries should be in
OpenCV-2.1.0\build\bin\Debug and
OpenCV-2.1.0\build\bin\Release,
the include path is here: OpenCV-2.1.0\include
I think you get those link errors because the cv210d.lib did not build, check if that file is in the OpenCV-2.1.0\build\bin\Debug directory. Make sure the path's are correct, select clean solution and then build again.
@danmalikin You can set the solution mode to Release (there is a dropdown in the main window interface, look Debug and set it to Release) and then rebuild. It will then build the release version.
@danmalikin Then you get the linker errors because it failed to build, the parts of opencv are dependent on eachother. So if cv210d.lib does not build, which is one of the main parts, the others will fail too. Look for the first error message you get and solve those(make sure all the paths are set correctly)
@danmalikin It is a solution I had already created before I started the tutorial. Create one using File > New > Project > VisualC++ > Win32 Console Application. Select "empty project" and finish. Then add a main.cpp file and copy the code at 06:30. Then just continue with the tutorial. I hope this helps.
Hey, OpenCVConfiguration is just the name of my solution. In the tab that gets highlighted at 06:33 you can find the property pages of the currently opened solution. The tab is called "Property Manager". You can also go to the "View >> Property Manager" menu to open the same window.
Property pages (or property sheets) are files that contain configuration data.
The ones already existing are the default one for all your projects. You can then add new property sheets there for OpenCV.
I am totally with you until 06:30 .. I dont have that OpenCVConfiguration file/project/solution that you opened at ) 06:30 ... Please let me know where to find it . I have searched for OpenCVConfiguration.sln in the whole computer but i am unable to find it... Any help will be appreciated ...
Great Job! One question, around 8:23 you talk about "Linker" and I don't even see that on my property pages when I click on "configOpenCV". I just downloaded the most recent VS2010 and updated all files. Did I miss something?
maulkraken 2 days ago
@maulkraken Okay.. I think I just figured out why I don't see the "Linker". I configured this under the "ALL BUILD". Somehow I missed the part about creating the "OpenCVconfiguratioin" file and continued to modify the ALL BUILD!
maulkraken 2 days ago
can i get the source code for object boundary detection??or some tutorial on how to do it..thanks..
wenz8989 2 weeks ago
when installing Cmake do you need to add CMake to the system PATH or not?
pressgreen 2 weeks ago
@pressgreen I would recommend it, so you can run cmake from the commandline in the directory of your project. Not sure if it is necessary if you work with the GUI only.
toefel18 2 weeks ago
If you are getting errors, try and re-config without the tbb checked. and start build process again
tsantini13 1 month ago
Hm, after i finished with Generating in CMake, Release folder didn't appear at C:\\openCV/build/lib. There is just a Debug folder, but with only 2 files inside: cvhaartraining.lib and cvhaartraining.pdb. And yet in your Debug folder there are a bunch of them...why is so? thanks
SerCondor 2 months ago
@SerCondor I solved a problem. If somebody was bothering with same thing, here is an explanation: It is not enough to generate files with CMake, because it just create solution files for MVS2010. It is necessary to build project, and then Debug and Release folders get full with libraries. Reason why i was stuck at this step is old version of TBB, which didn't allowed proper build. So don't forget to download LATEST version of it.
SerCondor 2 months ago in playlist Liked videos
@SerCondor me too
tkang7 1 month ago
Thank you!
dishendahp 2 months ago
I cant see the LINKER tab when i try to do the configOpenCV step.
all the rest is okay though
rebkahibasdeys 3 months ago
Hello guys, I hope one of you can help me. Every time I click to „Build Solution“ I get 13 errors. It can not open the libraries (for example „tbb_debug.lib“ )and I dont know why. I've added the folder “include” of the „tbb30_20101215oss“ to the „Include Directories“ and the folder „lib“ to the “Library Directories”. And the libs are in the folders.
I already tried the shown „tbb30_20101215oss“ and the new „tbb40_20111003oss“ but it is everytime the same.
many thanks
Klaus
derwahreklaus 3 months ago
Comment removed
chris1234138 5 months ago
excellent!! it helped me alot ..
Great Thanks!
ravirockzful 6 months ago
Thanks, man!
lambertwm 6 months ago
is it the same with compiling and configuring OpenCV in Visual Studio 2010 EXPRESS? i can't seem to compile it properly. i always get some errors with TBB and the steps for fixing it in the video is not in EXPRESS. thanks in advanced!
jedsumulong 7 months ago
@jedsumulong I don't know for sure, but I think it should work fine with EXPRESS. I don't know why you get errors.
toefel18 6 months ago
Which sick openCV nut did invent this complicated routine? no wonder open Source software will never get rid of their 20 year old user-repulsing reputation.
Thanks for that fuck.
Quarantineism 7 months ago 9
Thanks for the video! It really helps. I tried using your install technique with openCV 2.3 with TBB 3.0 but it doesn't seem to work. I noticed the file names and folder locations have slighty changed. :( Would you be kind enough to update your tutorial video using the latest openCV, Cmake, TBB and settig it up in vs2010? I would really really appreciate it. :) Also if you could add the CUDA toolkit it would be totally totally awesome!!
thanks again for the vid!!!
nfrancisj2122 8 months ago 2
m getting dis error on configurin..plz help me!!!!
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): The C compiler "cl" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/OpenCV2.2/build/CMakeFiles/CMakeTmp
shruthy100 9 months ago
ok i was following fine up until 6:30. what file is he opening? i cant find a "OpenCVConfiguration" file in the directories. can somebody either tell me what file to open or what im doing wrong? thanks in advance.
P.S. great vid, best ive found so far
ProjectEvaVideos 10 months ago
@ProjectEvaVideos Hey thanks for your comment. I was opening just a test project I created myself, I named the solution OpenCVConfiguration because I was demonstrating how to configure OpenCV in VS2010. I just created a main.cpp file and you can copy the code in that file from the video, it's very simple code that compiles only if VS is configured correctly. You can modify and create property pages for each project, that's what the video does to configure OpenCV. Hope this helps!
toefel18 10 months ago
hey m new to opencv,visual studio and cmake...cud plzz gimme links for visual studio..n xactly mention which version shud i download...cozzi have got visual studio professional...plz help me
shruthy100 9 months ago
Hi,
Hi, Excellent Video, i followed the same steps as described but still im getting the below error.
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
Build started: Project: ALL_BUILD, Configuration: Debug Win32
Building Custom Rule C:/OpenCV2.2/CMakeLists.txt
Skipped Build: Project: INSTALL, Configuration: Debug Win32
Project not selected to build for this solution configuration
== Build: 9 succeeded, 22 failed, 0 up-to-date, 3 skipped==
madcapgopi 10 months ago
@madcapgopi As I haven´t run in that situation, I can´t really tell what´s wrong, but my best guess is misconfiguration of your project. Are you able to build a simple hello world C++ program? if not, visual studio is possible configured incorrectly. Make sure inf kernel32.lib is indeed located in one of the library paths. I'm not sure
toefel18 10 months ago
@madcapgopi As I haven´t run in that situation, I can´t really tell what´s wrong, but my best guess is misconfiguration of your project. Are you able to build a simple hello world C++ program? if not, visual studio is possible configured incorrectly. Make sure inf kernel32.lib is indeed located in one of the library paths. I hope this helps
toefel18 10 months ago
thanks a lot, it really helped me with the config :D
MrMichaelOle 10 months ago
Why the fuck does this have to be so complicated? It pisses me off how developers, especially open source developers, are incapable of making human-friendly software. Just because you spent time on it does not mean you should make everyone regret not making their own library from scratch.
PoliticalHell 10 months ago 7
thanks for the video, it helped me a lot
MrMichaelOle 11 months ago
Thanks. OpenCV is a total pain to configure but you did a great job of explaining it :)
PSG0113 1 year ago
Thanks for ur kind feedback. Still now I am getting same errors. My written code is given below:
#include iostream //here less than and greater than signs are omitted
#include cv.h // because of youtube's post is not taking these sign
using namespace std;
int main(int argc, char* argv[])
{ cv :: Mat matrix; cout << "OpenCV configuration"; return 0;
}
chotansign 1 year ago
@chotansign if that code is in a *.cpp file (and NOT in a .h file!), it should work.
If not, Google something like this "error LNK2001". These pages indicate that it cannot find your main function somehow. I added a download link in the detailed description page of this video with my test project. If you open it, set the paths in the property pages right as explained in the tutorial, it should work too.
toefel18 1 year ago
@toefel18: Yes, I got the problem. My problem was, I couldn't make the main.cpp file. I solved it by the following tutorial "Visual Studio C++ Tutorials: Hello World" from youtube.
Right now everything is working. Thanks for your feedback.
chotansign 1 year ago
Comment removed
chotansign 1 year ago
Comment removed
chotansign 1 year ago
Comment removed
chotansign 1 year ago
Comment removed
chotansign 1 year ago
Hi, I'm facing problem at 09.30. I got following lines when I compiled (here some lines I paste because of less space). Waiting for your kind feedback.
InitializeBuildStatus:
Touching "Debug\test.unsuccessfulbuild"
1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>c:\users\chotan\documents\visual studio 2010\Projects\test\Debug\test.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
chotansign 1 year ago
@chotansign Hey I think you are missing a correct definition of your main function. Make sure there is a main function with this signature defined in a .cpp file (only a .h file does not work since those are only compiled when included): int main(int argc, char* argv[]){} If I change my main function It gives me this error, which is similar to yours:
MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
toefel18 1 year ago
Excellent video. Thanks for sharing
hlvas 1 year ago
actually the problem now is 8:26 , the program cannot read the additional dependencies like, the cxcore210.lib, what do you suggest
danmalikin 1 year ago
@danmalikin cxcore210.lib is the release version of the library, cxcore210d.lib is the debug version. Make sure that the paths in the property pages for your debug build are pointing to the debug library directory (OpenCV-2.1.0\build\lib\Debug) and the library paths for the release build are pointing to the release library directory(OpenCV-2.1.0\build\lib\Release).
toefel18 1 year ago
@toefel18 Thank you for your time, assistance and patience the program is running
danmalikin 1 year ago
Im having this problem while building
Build: 10 succeeded, 14 failed, 0 up-to-date, 3 skipped
however i tried to set the include directory to where i extract the building block and here is it
C:\Users\nmdanmaliki\Documents\face\tbb30_20101215oss\include
and for the library to this path
C:\Users\nmdanmaliki\Documents\face\tbb30_20101215oss\lib
im wondering if im doing something wrong. thank you for your assistance
danmalikin 1 year ago
@danmalikin hey, I don't know what goes wrong, what are the error messages?
toefel18 1 year ago
@toefel18 this are some of the errors LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\cv210d.l
danmalikin 1 year ago
@toefel18 LINK : this are the type of the messages im getting
fatal error LNK1104: cannot open file '..\..\lib\Debug\cv210d.lib
and i will like to know if both the include directory and library directory are in the same folder in the
danmalikin 1 year ago
@toefel18 LINK : this are the type of the errors
fatal error LNK1104: cannot open file '..\..\lib\Debug\cv210d.lib
danmalikin 1 year ago
@danmalikin if you followed the tutorial, you binaries should be in
OpenCV-2.1.0\build\bin\Debug and
OpenCV-2.1.0\build\bin\Release,
the include path is here: OpenCV-2.1.0\include
I think you get those link errors because the cv210d.lib did not build, check if that file is in the OpenCV-2.1.0\build\bin\Debug directory. Make sure the path's are correct, select clean solution and then build again.
toefel18 1 year ago
@toefel18 i actually have only the debug , no release
danmalikin 1 year ago
@danmalikin You can set the solution mode to Release (there is a dropdown in the main window interface, look Debug and set it to Release) and then rebuild. It will then build the release version.
toefel18 1 year ago
Respond to this video... i only have cv210d.pdb,
danmalikin 1 year ago
@danmalikin Then you get the linker errors because it failed to build, the parts of opencv are dependent on eachother. So if cv210d.lib does not build, which is one of the main parts, the others will fail too. Look for the first error message you get and solve those(make sure all the paths are set correctly)
toefel18 1 year ago
@toefel18 this is the first error
LINK : fatal error LNK1104: cannot open file 'tbb_debug.lib
danmalikin 1 year ago
@toefel18 this is the first error
LINK : fatal error LNK1104: cannot open file 'tbb_debug.lib
and what is the path for library directory
danmalikin 1 year ago
@danmalikin lib\ia32\vc10 that's the library path you need to add to your propertypages
toefel18 1 year ago
@toefel18 im having this error
LINK : fatal error LNK1104: cannot open file 'cxcore210.lib'
danmalikin 1 year ago
@danmalikin II think you should post your question on, for example, stackoverflow. They might be able to help you better.
toefel18 1 year ago
Im having the same problem i can find OpenCVConfiguratioon.sln, please help
danmalikin 1 year ago
@danmalikin It is a solution I had already created before I started the tutorial. Create one using File > New > Project > VisualC++ > Win32 Console Application. Select "empty project" and finish. Then add a main.cpp file and copy the code at 06:30. Then just continue with the tutorial. I hope this helps.
toefel18 1 year ago
Hey, OpenCVConfiguration is just the name of my solution. In the tab that gets highlighted at 06:33 you can find the property pages of the currently opened solution. The tab is called "Property Manager". You can also go to the "View >> Property Manager" menu to open the same window.
Property pages (or property sheets) are files that contain configuration data.
The ones already existing are the default one for all your projects. You can then add new property sheets there for OpenCV.
toefel18 1 year ago
@toefel18Im having this problem while building
Build: 10 succeeded, 14 failed, 0 up-to-date, 3 skipped
however i tried to set the include directory to where i extract the building block and here is it
C:\Users\nmdanmaliki\Documents\face\tbb30_20101215oss\include
and for the library to this path
C:\Users\nmdanmaliki\Documents\face\tbb30_20101215oss\lib
im wondering if im doing something wrong. thank you for your assistance
danmalikin 1 year ago
I am totally with you until 06:30 .. I dont have that OpenCVConfiguration file/project/solution that you opened at ) 06:30 ... Please let me know where to find it . I have searched for OpenCVConfiguration.sln in the whole computer but i am unable to find it... Any help will be appreciated ...
askthatguru 1 year ago
Comment removed
KingKnecht76 1 year ago
Thanks :)
WiseGuyFTW 1 year ago