Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
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)
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!"
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
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe