LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-23-2010, 11:24 PM   #1
Ankithskarat
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
Opencv error: /usr/bin/ld.real: cannot find -lcv; collect2: ld returned 1 exit status


hey,

I'm new to Linux & i need to get started with programming using Opencv. I've gone thru the tutorials mentioned here -

http://www.cs.iit.edu/~agam/cs512/le...ncv-intro.html

but i cant execute the 1st sample file. I've used the same command they'v shown -

g++ hello-world.cpp -o hello-world \
-I /usr/local/include/opencv -L /usr/local/lib \
-lm -lcv -lhighgui -lcvaux

In fact, i copied the file "opencv" into location /usr/local/include/ since its mentioned in the commandline statement. Yet, i get the error stating -

/usr/bin/ld.real: cannot find -lcv
collect2: ld returned 1 exit status

I hav no idea how to go abt this. Any help would be appreciated.
Thanx
 
Old 03-24-2010, 01:03 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
That's an include. The error is about a library, check for
libcv, install that into a directory in the LDPATH ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A different collect2: ld returned 1 exit status old_as_a_fossil Linux - General 0 01-28-2010 10:57 AM
Error Message : collect2: ld returned 1 exit status biplabbijay Programming 1 11-26-2009 06:46 PM
cannot find -lpcap collect2: ld returned 1 exit status nasim751 Programming 1 02-12-2008 02:57 PM
ld: cannot find -lc collect2: ld returned 1 exit status ArbuZz Linux From Scratch 3 09-27-2005 01:52 AM
konstruct error collect2: ld returned 1 exit status X2O Linux - Software 2 08-11-2004 09:48 PM


All times are GMT -5. The time now is 05:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration