libftdi Archives

Subject: Re: CMAKE: Build the files against the new build static library and not the system library

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 9 Jun 2010 18:13:32 +0200
Hello Uwe,

On Tuesday, 8. June 2010 13:54:23 Uwe Bonnes wrote:
> in the examples directory, with cmake the executable were linked against
> the systel libftdi and not the new library built inside the source tree.
> This hinders testing. To avoid problems with dynamic linking, as a
> shortcut libftdi is linked static.

Works-for-me(tm):

[root@intranator examples]# ll /usr/lib/libftdi*.so*
lrwxrwxrwx 1 root root    19 2010-04-16 11:34 /usr/lib/libftdipp.so -> 
libftdipp.so.1.15.0
lrwxrwxrwx 1 root root    19 2010-04-16 11:34 /usr/lib/libftdipp.so.1 -> 
libftdipp.so.1.15.0
-rwxr-xr-x 1 root root 26948 2010-02-28 21:16 /usr/lib/libftdipp.so.1.15.0
lrwxrwxrwx 1 root root    17 2010-04-16 11:34 /usr/lib/libftdi.so -> 
libftdi.so.1.15.0
lrwxrwxrwx 1 root root    17 2010-04-16 11:34 /usr/lib/libftdi.so.1 -> 
libftdi.so.1.15.0
-rwxr-xr-x 1 root root 18692 2010-02-28 21:16 /usr/lib/libftdi.so.1.15.0

[root@intranator examples]# ldd simple 
        linux-gate.so.1 =>  (0x00ad5000)
        libftdi.so.1 => /root/git/opensource/libftdi/build/src/libftdi.so.1 
(0x00695000)
        libusb-0.1.so.4 => /usr/lib/libusb-0.1.so.4 (0x001d6000)
        libc.so.6 => /lib/libc.so.6 (0x008f1000)
        /lib/ld-linux.so.2 (0x00d46000)


Which cmake version do you use? I run "2.6-patch 4"

Cheers,
Thomas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread