cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
7,245 Views
Registered: ‎11-12-2012

Ubuntu 62bit, problem to install usb driver

Hello, my name is Pavel. I am trying installing Xilinx ISE 14.2 on Ubuntu 12.04 64-bit. I am found many instruction about installing USB driver. I installed all library, that will be need for build it (gitk, git-gui, libusb-dev, build-essential, libc6-dev-i386, fxload).  But when i start make lib32, i get messages:

 

make LIBVER=32 clean all
make[1]: Entering directory `/opt/Xilinx/usb-driver'
rm -f libusb-driver.so libusb-driver-DEBUG.so
cc -Wall -fPIC -DUSB_DRIVER_VERSION="\"2012-11-12 16:23:34\""  -m32 usb-driver.c xpcu.c parport.c config.c jtagmon.c -o libusb-driver.so -ldl -lusb -lpthread -shared
parport.c: In function ‘parport_transfer’:
parport.c:21:23: warning: variable ‘last_pp_write’ set but not used [-Wunused-but-set-variable]
/usr/bin/ld: skipping incompatible /usr/local/lib/libusb.so when searching for -lusb
/usr/bin/ld: skipping incompatible /usr/local/lib/libusb.a when searching for -lusb
/usr/bin/ld: cannot find -lusb
collect2: ld returned 1 exit status
make[1]: *** [libusb-driver.so] Error 1
make[1]: Leaving directory `/opt/Xilinx/usb-driver'
make: *** [lib32] Error 2

Additionally i am builded and installed libusb and libusb-compat.

Please, help me solve this problem.

0 Kudos
4 Replies
Highlighted
Observer
Observer
7,244 Views
Registered: ‎11-12-2012

I solved this problem by install libusb-dev for i386, but now i have new problem. Installing windrvr6 cause error, that describe in this topic.

0 Kudos
Highlighted
Observer
Observer
7,240 Views
Registered: ‎11-12-2012

If i do export LD_PRELOAD="/opt/Xilinx/usb_driver/libusb-driver.so" (i have this file in that location), then when impact start, i have Error:

ERROR: ld.so: object '/opt/Xilinx/usb-driver/libusb-driver.so' from LD_PRELOAD cannot be preloaded: ignored.

0 Kudos
Highlighted
Visitor
Visitor
7,224 Views
Registered: ‎07-16-2010

A couple of questions:

 

1) You're using a 64-bit system, but are mixing 64-bit libraries & headers with some 32-bit ones (libc6-dev-i386). Then try to build a 32-bit version of the usb driver (make lib32). Why? Why not build a 64-bit version, using 64-bit libraries & headers only?

 

2) Is it:
/opt/Xilinx/usb_driver/libusb-driver.so     or
/opt/Xilinx/usb-driver/libusb-driver.so    ?

 

3) Have you set proper permissions for libusb-driver.so? It should be executable, for example rwxr-xr-x (755).

0 Kudos
Highlighted
Visitor
Visitor
3,942 Views
Registered: ‎06-19-2015

Hello, I know this is old now but I had the same problem.

 

Probably you added this line in your bashrc to makexilinx  ISE work:

 export LD_PRELOAD=/opt/Xilinx/usb-driver/libusb-driver.so

 

The problem: it will make xilinx SDK fail to build software projects, by forcing them to link to 64bit libusb.

 

The fix: here are the lines in my bashrc I have used in order to have ISE and SDK work

 

#see here: http://svenand.blogdrive.com/archive/11.html#.VYH89DUZWPA
source /opt/Xilinx/14.7/ISE_DS/settings64.sh
#xilinx hw
alias xilinxhw ="export LD_PRELOAD=/opt/Xilinx/usb-driver/libusb-driver.so; ise &"
#xilinx sw
alias xilinxsw="xsdk &"

 

you would naturally invoke ISE with xilinxhw and invoke SDK with xilinxsw

0 Kudos