Page 1 of 1

libftd2xx.so - there is no such file or directory

Posted: Fri Nov 07, 2014 4:38 pm
by seprob
Hello! I'm using Raspberry Pi B+ with Raspbian on board. I want to install library libftd2xx 1.1.12. I already compiled that (http://www.ftdichip.com/Support/Documen ... nux%20.pdf) but when I wan to execute some example I get the error like "error while loading shared libraries: libftd2xx.so: cannot open shared object file: No such file or directory". I put the same symlink in other directories according to files in /etc/ld.so.conf.d". I changed also "LD_LIBRARY_PATH" to "/usr/local/lib". I saw similar topic but there was no solution. Have some ideas?

Re: libftd2xx.so - there is no such file or directory

Posted: Fri Nov 07, 2014 8:22 pm
by DougieLawson
After you update /etc/ld.so.conf.d you MUST run depmod -a to ensure all the library info is built into the system files. It's not good enough to just reboot, you may need to do that after running depmod.

Re: libftd2xx.so - there is no such file or directory

Posted: Fri Nov 07, 2014 8:43 pm
by seprob
DougieLawson wrote:After you update /etc/ld.so.conf.d you MUST run depmod -a to ensure all the library info is built into the system files. It's not good enough to just reboot, you may need to do that after running depmod.
I didn't change nothing in /etc/ld.so.conf.d". I mean I checked what directories with libraries are written there and then I made symlinks accordingly.

Re: libftd2xx.so - there is no such file or directory

Posted: Fri Nov 07, 2014 9:20 pm
by DougieLawson
If you add any new library or symlink to a library run depmod.

Re: libftd2xx.so - there is no such file or directory

Posted: Fri Nov 07, 2014 9:34 pm
by rpdom
DougieLawson wrote:If you add any new library or symlink to a library run depmod.
I think you've confused depmod (which rebuilds the kernel module dependency tables) and ldconfig (which rebuilds the system library tables).

There's no kernel modules involved here, so sudo ldconfig should be run.

Re: libftd2xx.so - there is no such file or directory

Posted: Sat Nov 08, 2014 5:25 am
by seprob
rpdom wrote:
DougieLawson wrote:If you add any new library or symlink to a library run depmod.
I think you've confused depmod (which rebuilds the kernel module dependency tables) and ldconfig (which rebuilds the system library tables).

There's no kernel modules involved here, so sudo ldconfig should be run.
I was puting "ldconfig" usually always after some changes in library paths.

Re: libftd2xx.so - there is no such file or directory

Posted: Sat Nov 08, 2014 10:01 am
by DougieLawson
Have you followed the instructions here: http://www.ftdichip.com/Drivers/D2XX/Li ... -linux.txt

Re: libftd2xx.so - there is no such file or directory

Posted: Sat Nov 08, 2014 12:48 pm
by seprob
DougieLawson wrote:Have you followed the instructions here: http://www.ftdichip.com/Drivers/D2XX/Li ... -linux.txt
I wrote in the first post I did it.

Re: libftd2xx.so - there is no such file or directory

Posted: Sat Nov 08, 2014 2:08 pm
by DougieLawson
Then you'll need to ask FTDI for support.

Re: libftd2xx.so - there is no such file or directory

Posted: Sat Nov 08, 2014 3:34 pm
by seprob
DougieLawson wrote:Then you'll need to ask FTDI for support.
But I don't think it's a problem with device. It's a problem with OS.

Re: libftd2xx.so - there is no such file or directory

Posted: Sat Nov 08, 2014 6:51 pm
by DougieLawson
seprob wrote:
DougieLawson wrote:Then you'll need to ask FTDI for support.
But I don't think it's a problem with device. It's a problem with OS.
It's their library code that you're trying to install.

Re: libftd2xx.so - there is no such file or directory

Posted: Sun Nov 09, 2014 11:13 am
by seprob
DougieLawson wrote:
seprob wrote:
DougieLawson wrote:Then you'll need to ask FTDI for support.
But I don't think it's a problem with device. It's a problem with OS.
It's their library code that you're trying to install.
But when I want to execute the program it doesn't see the shared object.

Re: libftd2xx.so - there is no such file or directory

Posted: Sun Nov 09, 2014 12:25 pm
by DougieLawson
Go and ask the people who wrote the code. Because there's no other way to get this thing to work.

Re: libftd2xx.so - there is no such file or directory

Posted: Wed Nov 12, 2014 4:27 pm
by seprob
DougieLawson wrote:Go and ask the people who wrote the code. Because there's no other way to get this thing to work.
I am so surprised but it helped. They send me back correct files (libftd2xx.so.1.1.12 and libftd2xx.a) and I replaced them and then everything went good.

Re: libftd2xx.so - there is no such file or directory

Posted: Wed Mar 25, 2015 6:05 am
by jchen6668
Who did you ask for the libftd2xx.so.1.1.12 and libftd2xx.a from, FTDI?
I've encountered the same problem and do not know where to go.
Thanks very much in advance,
Jason