Results 1 to 3 of 3
Hey there,
I have a folder with a library that I wish to share but when I use the link command (ln) it still doesnt seem to share and I ...
- 06-29-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 6
Linking files
Hey there,
I have a folder with a library that I wish to share but when I use the link command (ln) it still doesnt seem to share and I keep getting the same compiler error.
I have tried the following instructions but I am still no further. Any idea on what I am doing wrong?
Cheers
install instructions:
Instructions for installing the d2xx shared lib
As Linux distributions vary these instructions are a guide to installation and use.
This setup works with Mandrake 9.2 but may require some investigation on other distributions.
This library has been tested using kernel 2.4.25.
D2XX documentation is available for the Windows dll - some variations may occur between linux and
windows implementation. We have endevoured to make the APIs appear the same on both platforms however some
issues may slip and we would appreciate that you contact support if you observe this.
D2XX for linux was primarily developed to aid porting windows applications written with D2XX to linux.
Unfortunately the source code for D2XX is not freely available - however if you prefer to have the
source and are starting a project from scratch you can try libftdi from Thomas Jarosch.
Details of this library are on the ftdi web site.
Installation:
1. unzip and untar the file given to a suitable directory
gunzip libftd2xx0.4.12.tar.gz
tar -xvf libftd2xx0.4.12.tar
2. As root user copy the following files to /usr/local/lib
cp libftd2xx.so.0.4.12 /usr/local/lib
3. Change directory to /usr/local/lib
cd /usr/local/lib
4. make symbolic links to these files using the following commands:
ln -s libftd2xx.so.0.4.12 libftd2xx.so
5. Change directory to /usr/lib
cd /usr/lib
6. make symbolic links to these files using the following commands:
ln -s /usr/local/lib/libftd2xx.so.0.4.12 libftd2xx.so
7. Add the following line to /etc/fstab:
none /proc/bus/usb usbdevfs defaults,devmode=0666 0 0
There have been reports that you may need to use the following command for some distros
none /proc/bus/usb usbdevfs defaults,mode=0666 0 0 (use usbfs in 2.6 kernels)
8. Remount all in the fstab file
mount -a
- 07-01-2009 #2
The ln command doesn't create shared ownership of a file. It just allows you to access it under a different name. The ownership of files depends on who creates them - and where. This is a security feature of Linux. You need to be root to obey these instructions as the directories you are using are system directories.
"I'm just a little old lady; don't try to dazzle me with jargon!"
- 07-01-2009 #3Just Joined!
- Join Date
- Jun 2009
- Posts
- 6
Hey there thanks for the reply.
Yeah Im logged in as the root. only problem i have now is that on compilation it says /usr/local/lib/libftd2xx.so: file not recognized: File format not recognized
any idea as to why my link file is not working?


Reply With Quote
