LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   make issue "/usr/bin/ld: cannot find -ldc1394_control" (https://www.linuxquestions.org/questions/linux-software-2/make-issue-usr-bin-ld-cannot-find-ldc1394_control-712799/)

obaidmushtaq 03-19-2009 07:23 AM

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

bathory 03-19-2009 09:36 AM

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.

knudfl 03-19-2009 10:15 AM

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 !
..................

obaidmushtaq 03-19-2009 11:06 AM

1 Attachment(s)
@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

obaidmushtaq 03-19-2009 11:43 AM

1 Attachment(s)
Hello,

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

Kind Regards,

Obaid

knudfl 03-19-2009 12:16 PM

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.
.....

obaidmushtaq 03-19-2009 01:47 PM

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

knudfl 03-19-2009 02:14 PM

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/

......

obaidmushtaq 03-19-2009 02:37 PM

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

knudfl 03-21-2009 03:36 AM

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.
.....

obaidmushtaq 03-21-2009 05:14 AM

Hi,

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

Kind Regards,

Obaid


All times are GMT -5. The time now is 08:00 AM.