Cannot find -lusb in opensuse 12.2


 
Thread Tools Search this Thread
Operating Systems Linux SuSE Cannot find -lusb in opensuse 12.2
# 8  
Old 10-22-2013
pkg-config --cflags also gives you the include paths and such to compile. Hopefully that'll force it to use the right definitions for the one of the three --libs picks.
This User Gave Thanks to Corona688 For This Post:
# 9  
Old 10-23-2013
Well it does seem to link properly using -lusb-1.0 and I have it working now. There appear to have been some changes in the way this hardware works and I may not actually have to link to the usb lib anymore, go figure.

Thanks again for the help, I'm sure that learning about pkg-config will continue to prove useful.

LMHmedchem
# 10  
Old 10-23-2013
Try ldd ./myprogram to see what libraries it loads, I suspect it does actually load one of your libusb so files.
# 11  
Old 10-25-2013
This is the list of libs that are loaded,
linux-vdso.so.1 (0x00007fffd1595000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f85ac109000)
libusb-1.0.so.0 => /usr/lib64/libusb-1.0.so.0 (0x00007f85abef9000)
libstdc++.so.5 => /usr/lib64/libstdc++.so.5 (0x00007f85abc17000)
libm.so.6 => /lib64/libm.so.6 (0x00007f85ab919000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f85ab703000)
libc.so.6 => /lib64/libc.so.6 (0x00007f85ab355000)
/lib64/ld-linux-x86-64.so.2 (0x00007f85ac325000)
librt.so.1 => /lib64/librt.so.1 (0x00007f85ab14d000)

I'm not sure this tells me if my app is using anything in the library or not because I linked to the usb library in make. If I have -lusb-1.0 in my link rule, will libusb-1.0 appear on this list even if there is never anything in the library that gets called?

I guess I probably need to build it without the link and see if it still works.

LMHmedchem
# 12  
Old 10-25-2013
If you leave out -lusb-1.0 and it still links, then you are correct.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. SuSE

Is OpenSuSE 12.1 stable and reliable?

Hi, We are ready to update OpenSuSE for our web servers from 11.2 to either 11.4 or 12.1. 12.1 is still a beta version. Is it stable and reliable enough for production servers? Please share your valuable experiences. Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

2. SuSE

openSuse 11.1 RAID 0 Question

Hello, I have a file server running openSuse 11.1, that has two HDDs running in RAID 0 (mirroring) using the md software RAID linux driver. I was considering removing this RAID, using one of the drives as the OS and the other as a data drive. Is there any way to stop using this as a RAID set to do... (4 Replies)
Discussion started by: vwgtiturbo
4 Replies

3. SuSE

openSUSE support

does Novell support openSUSE as it does for it's server packages, or is openSUSE's support the same as every other distribution of linux? (1 Reply)
Discussion started by: bcbotha
1 Replies

4. UNIX for Advanced & Expert Users

openSuse 10.3 , Emulex HBA

hello, i have a dell Poweredge 2950 ( Server ) and an IBM storage device DS 3000 family ( Storage ) . I am supposed to link the IBM storage device to the Dell Poweredge via "Emulex 4Gb Fibre Channel Host Bus Adapter". I have put the addapter card in my server and connected it to the storage.... (3 Replies)
Discussion started by: nux007
3 Replies

5. SuSE

Opensuse mt command

do not have lock and unlock function, is any way to lock the tape drive under opensuse 10? thanks (4 Replies)
Discussion started by: lijiajin
4 Replies

6. Linux

The LimitRequestBody filed in openSUSE 10.2

Because some program i have installed can not upload files bigger than some size as printing, the base got a packet bigger than 'max_allowed_packet' bytes what that i need to do as written in the documentation of the program increase the value of a fileld called LimitRequestBody told that is in... (5 Replies)
Discussion started by: tal
5 Replies

7. UNIX for Dummies Questions & Answers

Opensuse installation

I have never installed unix, after going through forum i realised opensuse is one of the goodoptions. I have downloaded iso image and burned DVD and took installation print out. I have created a partition (g)of 10gb, but my question is how do i make unix to get installed on my partitioned... (0 Replies)
Discussion started by: striker1
0 Replies
Login or Register to Ask a Question