LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-19-2009, 07:23 AM   #1
obaidmushtaq
LQ Newbie
 
Registered: Mar 2009
Posts: 12

Rep: Reputation: 0
make issue "/usr/bin/ld: cannot find -ldc1394_control"


Dear All,

I am trying to make an application but getting the following error:


g++ -g -O -Wall -I../../libsfbcomm -I../../ISOFile/include `pkg-config --cflags opencv` -c -o FireWireFrameGrabber.o FireWireFrameGrabber.cpp
g++ fwstreamer.o FireWireFrameGrabber.o ../../libsfbcomm/libsfbcomm.a ../../ISOFile/lib/Unix/bin/ISOFileLib.a ../../../supplemental/xvidcore-1.1.3/build/generic/=build/libxvidcore.a -L/usr/X11R6/lib -lpthread -lraw1394 -ldc1394_control `pkg-config --libs opencv` -o fwstreamer
/usr/bin/ld: cannot find -ldc1394_control
collect2: ld returned 1 exit status
make: *** [fwstreamer] Error 1


From this link:

http://people.mech.kuleuven.be/~tdel...enlibEXTRA.txt

I found that I have to install libdc1394-dev. I did, but the issue is still there.

[root@obd-11 fwstreamer]# rpm -qa | grep libdc1394
libdc1394-docs-2.0.2-1.fc10.i386
libdc1394-devel-2.0.2-1.fc10.i386
libdc1394-tools-2.0.2-1.fc10.i386
libdc1394-2.0.2-1.fc10.i386

I get the same error

Any help will be appreciated. I am stuck.

PS: I am using FC-10
[root@obd-11 fwstreamer]# uname -a
Linux obd-11 2.6.27.19-170.2.35.fc10.i686 #1 SMP Mon Feb 23
13:21:22 EST 2009 i686 i686 i386 GNU/Linu

BR,

Obaid
 
Old 03-19-2009, 09:36 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
Quote:
/usr/bin/ld: cannot find -ldc1394_control
The missing library ldc1394_control is available in previous version of libdc1394, like libdc1394-devel-1.x, so it seems you have to downgrade.
 
Old 03-19-2009, 10:15 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Quote:
cannot find -ldc1394_control
libdc1394_control.so .... is from 'libdc1394-1.x
not available for Fedora 10.

So you will have to start out with the dependency
libraw1394, also version 1.x :
http://sourceforge.net/project/showf...ease_id=356902
> > libraw1394-1.2.0.tar.gz

# yum install -y libXv-devel libx11-devel
# rpm -e libraw1394-devel ( to avoid conflict if installed.)

'cd libraw1394-1.2.0/' .. ./configure .. make .. # make install
( to /usr/local/lib/ )

And libdc1394 Version 1 : please do the command
'svn co https://libdc1394.svn.sourceforge.ne...n_1/libdc1394/'
( 'subversion' must be installed to do 'svn' )

cd libdc1394 .. ./autogen.sh .. make .. # make install
.. all to /usr/local/lib/libdc1394_control.so(.x) .. no libdc1394.so.x,
so you will have no conflict with version 2.

Good luck !
..................
 
Old 03-19-2009, 11:06 AM   #4
obaidmushtaq
LQ Newbie
 
Registered: Mar 2009
Posts: 12

Original Poster
Rep: Reputation: 0
@knudfl

Thanks but it is still not working. I am attaching the logs for you. After I performed what you told me, the library errors are still there and I cannot compile.

Please have a look. I would be grateful to you.

Kind Regards,

Obaid
Attached Files
File Type: txt logs.txt (14.4 KB, 16 views)
 
Old 03-19-2009, 11:43 AM   #5
obaidmushtaq
LQ Newbie
 
Registered: Mar 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Hello,

Sorry, previous attachment was not correct. Please see this one.

Kind Regards,

Obaid
Attached Files
File Type: txt logs.txt (41.1 KB, 41 views)
 
Old 03-19-2009, 12:16 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please do not attach 769 lines ... the errors will do.

Suggest : delete the directory libdc1394/
.. and fetch it again as normal user : do not download
anything as root. And do not run 'autogen.sh' as root,
root is for administration only.

By the way, 'autogen.sh' wasn't executeable ( the one I
got ). 'chmod +x autogen.sh' will do, or just use the
command 'sh autogen.sh'
.....
May be you are missing 'libtool' ? ?
# yum install libtool
.....

P.S. The attachment in post #4 can be deleted, I guess.
.....

Last edited by knudfl; 03-19-2009 at 12:21 PM.
 
Old 03-19-2009, 01:47 PM   #7
obaidmushtaq
LQ Newbie
 
Registered: Mar 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Hello,

I am still not able to make it work. Here is the error now: (a bit different one now)

g++ -g -O -Wall -I../../libsfbcomm -I../../ISOFile/include `pkg-config --cflags opencv` -c -o fwstreamer.o fwstreamer.cpp
In file included from fwstreamer.cpp:1:
FireWireFrameGrabber.h:9:38: error: libdc1394/dc1394_control.h: No such file or directory
In file included from fwstreamer.cpp:1:
FireWireFrameGrabber.h:61: error: ISO C++ forbids declaration of ‘dc1394_camerainfo’ with no type
FireWireFrameGrabber.h:61: error: expected ‘;’ before ‘*’ token
FireWireFrameGrabber.h:62: error: ISO C++ forbids declaration of ‘dc1394_miscinfo’ with no type
FireWireFrameGrabber.h:62: error: expected ‘;’ before ‘*’ token
FireWireFrameGrabber.h:63: error: ISO C++ forbids declaration of ‘dc1394_cameracapture’ with no type
FireWireFrameGrabber.h:63: error: expected ‘;’ before ‘*’ token


This is because when I try to make libdc1394-1.1.0, it gives me the following errors (I tried it with both root and another user):

gcc -g -O2 -Wall -Wunused -o .libs/dc1394_vloopback dc1394_vloopback.o affine.o -lm ../libdc1394/.libs/libdc1394_control.so -lraw1394 -Wl,--rpath -Wl,/usr/local/lib
../libdc1394/.libs/libdc1394_control.so: undefined reference to `raw1394_set_iso_handler'
../libdc1394/.libs/libdc1394_control.so: undefined reference to `raw1394_stop_iso_rcv'
../libdc1394/.libs/libdc1394_control.so: undefined reference to `raw1394_start_iso_rcv'
collect2: ld returned 1 exit status
make[2]: *** [dc1394_vloopback] Error 1
make[2]: Leaving directory `/home/linus/Download/libdc1394-1.2.2/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/linus/Download/libdc1394-1.2.2'
make: *** [all] Error 2


Kind Regards,

Obaid
 
Old 03-19-2009, 02:14 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The version grapped with 'svn' will "make" with no errors.

http://damien.douxchamps.net/ieee1394/libdc1394/
> > 'Download' > http://damien.douxchamps.net/ieee139...1394/download/
Version 1
svn co https://libdc1394.svn.sourceforge.ne...n_1/libdc1394/

......
 
Old 03-19-2009, 02:37 PM   #9
obaidmushtaq
LQ Newbie
 
Registered: Mar 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Hello,

No it doesn't I have use the following command:

svn co https://libdc1394.svn.sourceforge.ne...n_1/libdc1394/

followed by ./autogen.sh .. make .. make install

Same error:


../libdc1394/.libs/libdc1394_control.so: undefined reference to `raw1394_set_iso_handler'
../libdc1394/.libs/libdc1394_control.so: undefined reference to `raw1394_stop_iso_rcv'
../libdc1394/.libs/libdc1394_control.so: undefined reference to `raw1394_start_iso_rcv'


Kind Regards,

Obaid
 
Old 03-21-2009, 03:36 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Unless you have messed up Fedora 10 by doing non admin tasks
as root, it should be easy to compile libdc1394 Version 1.

So I guess, that you will have to start from scratch.
( Unless 'make clean' will do.)
Please download to a "new name" with
'svn co https://libdc1394.svn.sourceforge.ne...c1394-rev.587/'

and make a backup copy before you start with ./autogen.sh, etc.

If it doesn't work out with compiling this time, you will have
to remake libraw1394-1.2.0 also from scratch again.
.....
 
Old 03-21-2009, 05:14 AM   #11
obaidmushtaq
LQ Newbie
 
Registered: Mar 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Hi,

Thanks a lot. We resolved it by removing some unnecessary linking.

Kind Regards,

Obaid
 
  


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
/tools/bin/ld: cannot find -lstdc++ -- Error in " make check " of Glibc lfs_rocks Linux From Scratch 1 02-15-2008 09:23 AM
gmake error [2] "/usr/bin/ld cannot find -lmpi_f77 slothrop Linux - Software 1 08-01-2007 12:18 AM
"gxine" /usr/bin/ld: cannot find -lmozjs behmjoe Linux - Software 9 12-16-2005 12:35 AM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
what is "S" instead of "X" in the file permission when i look at /usr/bin/chsh? Linux_interest Linux - Newbie 4 08-28-2004 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration