Error Cannot Find Lcv
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and
Usr Bin Ld Cannot Find
policies of this site About Us Learn more about Stack Overflow the pkg-config opencv company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Can't compile first opencv program, '/usr/bin/ld: cannot find -lcv' up vote 5 down vote favorite 4 g++ cv.cpp -o cv -I /usr/local/include/opencv -L /usr/local/lib -lm -lcv -lhighgui -lcvaux Error: /usr/bin/ld: cannot find -lcv collect2: ld returned 1 exit status Code: #include #include #include //#include #include int main(int argc, char* argv[]) { IplImage* img = cvLoadImage( "bal.png" ); cvNamedWindow( "Example1", CV_WINDOW_AUTOSIZE ); cvShowImage("Example1", img); cvWaitKey(0); cvReleaseImage( &img ); cvDestroyWindow( "Example1" ); return 0; } It's 32 bit, locate libcv /usr/lib/libcv.so.2.1 /usr/lib/libcv.so.2.1.0 `pkg-config --cflags --libs opencv` -I/usr/local/include/opencv -I/usr/local/include /usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_ts.so /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so Installed OpenCV-2.4.0 in /usr/local, I also have a system python-opencv. Where am i doing the mistake? What should i do? image gcc graphics opencv share|improve this question edited May 5 '12 at 14:26 vyegorov 10.4k31951 asked May 4 '12 at 16:35 shibly 3,1301867129 If you are on 64bit system, you should probably use -L /usr/local/lib64. Anyway, try to locate libcv.so –aland May 4 '12 at 16:37 It's 32 bit, locate libcv = /usr/lib/libcv.so.2.1 /usr/lib/libcv.so.2.1.0 –shibly May 4 '12 at 16:52 possible duplicate of OpenCV on ubuntu 11.10 –karlphillip May 4 '12 at 20:07 add a comment| 3 Answers 3 active oldest votes up vote 6 down vote accepted As seen from the changelog published on the OpenCV site (for version 2.2), the library na
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Packaging and Compiling Programs Opencv help needed Having an Issue With Posting ? Do you want to help us debug the posting issues ? < http://stackoverflow.com/questions/10452801/cant-compile-first-opencv-program-usr-bin-ld-cannot-find-lcv is the place to report it, thanks ! Results 1 to 8 of 8 Thread: Opencv help needed Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode January 31st, 2008 #1 Stern View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Mar 2006 Beans 5 Opencv help needed Hi I need shelp compiling a https://ubuntuforums.org/showthread.php?t=683555 simple cpp file and linking it with opencv. I've installes with sudo apt-get instal "all opencv files". but when i try to compile a simple example i g++ test.cpp -o test -I /usr/include/ -L /usr/lib -lcv i get an error message : /usr/bin/ld cannont find -lcv !! Adv Reply January 31st, 2008 #2 Zugzwang View Profile View Forum Posts Private Message Ubuntu Cappuccino Scuro Join Date Oct 2007 Beans 1,914 DistroLubuntu 12.10 Quantal Quetzal Re: Opencv help needed Please copy&paste the *precise* error message here. Adv Reply January 31st, 2008 #3 Stern View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Mar 2006 Beans 5 Re: Opencv help needed g++ test.cpp -o test -I /usr/include/ - L /usr/lib -lm lcv -lhighgui gives this /usr/bin/ld : cannot find -lcv collect2: ld returned 1 exit status in cpp file i have #include #include other info running on ppc and dapper6.06 Last edited by Stern; January 31st, 2008 at 01:22 PM. Adv Reply January 31st, 2008 #4 amingv View Profile View Forum Posts Private Message Skinny Soy Caramel Ubuntu Join Date Nov 2007 BeansHidden! DistroKubuntu Re: Opencv help needed Originally Posted by Stern g++ test.cpp -o test -I /usr/
Inappropriate ♦ ♦ cannot find -lcv Hello everyone. I´m a beginner in OpenCV, and I have a big Problem with my installation. I think that I have done all, as I was supposed to do, but http://opencv-users.1802565.n2.nabble.com/cannot-find-lcv-td3979741.html when I´m trying to compile, I always have this Error: **** Internal Builder is used https://bbs.archlinux.org/viewtopic.php?id=100185 for build **** g++ -LC:\OpenCV2.0\lib -LC:\OpenCV2.0\bin -oopenCVDemo.exe src\main.o -lcv -lcv200 -lml -lcxcore -lhighgui C:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lcv collect2: ld returned 1 exit status Build error occurred, build is stopped Time consumed: 181 ms. Can anyone help me? urvang2003 Reply | Threaded Open this post in threaded view ♦ ♦ cannot find | Report Content as Inappropriate ♦ ♦ Re: cannot find -lcv Hey, Did you find out a solution to this? I am having exact same problem. I am trying to use OpenCV on Windows using Eclipse (with MinGW already installed). --- In [hidden email], "apparence1" wrote: > > Hello everyone. > I´m a beginner in OpenCV, and I have a big Problem with my installation. > I think that I have error cannot find done all, as I was supposed to do, but when I´m trying to compile, I always have this Error: > > **** Internal Builder is used for build **** > g++ -LC:\OpenCV2.0\lib -LC:\OpenCV2.0\bin -oopenCVDemo.exe src\main.o -lcv -lcv200 -lml -lcxcore -lhighgui > C:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lcv > collect2: ld returned 1 exit status > Build error occurred, build is stopped > Time consumed: 181 ms. > > > Can anyone help me? > jcarrier2003 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: cannot find -lcv I made an entry today on my blog on how to fix this. Hope it helps. The key is to change your linked libraries to cv200, highgui200, etc...instead of cv, highgui,etc... http://carrierfrequency.blogspot.com/2010/02/setting-up-opencv-20-in-eclipse-on.htmlHope this works for you. -Jon --- In [hidden email], "urvang2003" wrote: > > Hey, > Did you find out a solution to this? I am having exact same problem. I am trying to use OpenCV on Windows using Eclipse (with MinGW already installed). > > --- In [hidden email], "apparence1" wrote: > > > > Hello everyone. > > I´m a beginner in OpenCV, and I have a big Problem with my installation. > > I think
Registered: 2010-05-02 Posts: 35 cant get opencv to work Ok, i did apacman -S opencvand got a test code from the net:#include "cv.h" #include "highgui.h" #include // A Simple Camera Capture Framework int main() { CvCapture* capture = cvCaptureFromCAM( CV_CAP_ANY ); if( !capture ) { fprintf( stderr, "ERROR: capture is NULL \n" ); getchar(); return -1; } // Create a window in which the captured images will be presented cvNamedWindow( "mywindow", CV_WINDOW_AUTOSIZE ); // Show the image captured from the camera in the window and repeat while( 1 ) { // Get one frame IplImage* frame = cvQueryFrame( capture ); if( !frame ) { fprintf( stderr, "ERROR: frame is null...\n" ); getchar(); break; } cvShowImage( "mywindow", frame ); // Do not release the frame! //If ESC key pressed, Key=0x10001B under OpenCV 0.9.7(linux version), //remove higher bits using AND operator if( (cvWaitKey(10) & 255) == 27 ) break; } // Release the capture device housekeeping cvReleaseCapture( &capture ); cvDestroyWindow( "mywindow" ); return 0; }but get the following messagearis@arch:~$ gcc test.c test.c:1:16: fatal error: cv.h: No such file or directory compilation terminated.i think i have to link the files but -lopencv does not work. Any suggestions? Offline #2 2010-06-30 12:35:52 bharani Member From: Karaikudi, India Registered: 2009-07-12 Posts: 202 Re: cant get opencv to work gcc test.c `pkg-config --libs --cflags opencv`Note that ` is not single quotes.You could also use this instead. gcc test.c -I/usr/include/opencv -lml -lcvaux -lhighgui -lcv -lcxcore Last edited by bharani (2010-06-30 12:40:22) Tamil is my mother tongue. Offline #3 2010-06-30 12:50:37 arkara Member Registered: 2010-05-02 Posts: 35 Re: cant get opencv to work thx man it worked.Now for the arcane knowledge part:-i(capital) specifies the include dirand then u link each lib by it's own?for the first case?what is the pkg-config?thanks againfor the first suggestion i getaris@arch:~$ gcc test.c "pkg-config --libs --cflags opencv" gcc: pkg-config --libs --cflags opencv: No such file or directory Last edited by arkara (2010-06-30 13:01:11) Offline #4 2010-06-30 13:46:39 bharani Member From: Karaikudi, India Registered: 2009-07-12 Posts: 202 Re: cant get opencv to work arkara wrote:for the first suggestion i getaris@arch:~$ gcc test.c "pkg-config --libs --cflags opencv" gcc: pkg-config