serial port - FTDI TTL with Linux -


in order send commands external device, use wire called ttl-232r-3v3 of ftdi. want set there specific pathways high or low. parity or stop bits not needed.

my operating system ubuntu linux 13.04.

i want develop java or c application, can send these commands. there error when try install driver wire:

i'm following this instruction, , decided install d2xx driver. think i've installed shared object , static library described in step 2.1, anyway didn't got error messages.

but when try compile sample code, described in step 3, got following output executing make -b command.

for n in bitmode eeprom/erase eeprom/read eeprom/write eeprom/user/read eeprom/user/size eeprom/user/write events largeread multithread setvidpid simple timeouts ; make -c $n || exit 1; done make[1]: betrete verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/bitmode' gcc main.c -o bitmode -wall -wextra -l. -lftd2xx -wl,-rpath /usr/local/lib   make[1]: verlasse verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/bitmode' make[1]: betrete verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/erase' gcc main.c -o erase -wall -wextra -l. -lftd2xx -wl,-rpath /usr/local/lib make[1]: verlasse verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/erase' make[1]: betrete verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/read' gcc main.c -o read -wall -wextra -l. -lftd2xx -wl,-rpath /usr/local/lib make[1]: verlasse verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/read' make[1]: betrete verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/write' gcc main.c -o write -wall -wextra -l. -lftd2xx -wl,-rpath /usr/local/lib make[1]: verlasse verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/write' make[1]: betrete verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/user/read' gcc main.c -o readua -wall -wextra -l. -lftd2xx -wl,-rpath /usr/local/lib make[1]: verlasse verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/user/read' make[1]: betrete verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/user/size' gcc main.c -o sizeua -wall -wextra -l. -lftd2xx -wl,-rpath /usr/local/lib make[1]: verlasse verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/user/size' make[1]: betrete verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/user/write' gcc main.c -o writeua -wall -wextra -l. -lftd2xx -wl,-rpath /usr/local/lib make[1]: verlasse verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/eeprom/user/write' make[1]: betrete verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/events' gcc main.c -o events -wall -wextra -l. -lftd2xx -wl,-rpath /usr/local/lib make[1]: verlasse verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/events' make[1]: betrete verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/largeread' gcc main.c -o largeread -wall -wextra -l. -lftd2xx -wl,-rpath /usr/local/lib make[1]: verlasse verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/largeread' make[1]: betrete verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/multithread' gcc main.c -o multi -wall -wextra -l. -lftd2xx -wl,-rpath /usr/local/lib make[1]: verlasse verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples/multithread' gcc main.c -o multi -wall -wextra -l. -lftd2xx -wl,-rpath /usr/local/lib /usr/bin/ld: /tmp/ccoasrrg.o: undefined reference symbol     'pthread_create@@glibc_2.2.5' /usr/bin/ld: note: 'pthread_create@@glibc_2.2.5' defined in dso /lib/x86_64-linux-    gnu/libpthread.so.0 try adding linker command line /lib/x86_64-linux-gnu/libpthread.so.0: not read symbols: ungültiger vorgang collect2: fehler: ld gab 1 als ende-status zurück make[1]: *** [multi] fehler 1 make[1]: verlasse verzeichnis '/home/robin/dokumente/java/stepper/lib/release/examples    /multithread' make: *** [subdirs] fehler 1 

how can fix error? has experiences wire , linux? in advance!

some of sample, or 1 of dependencies, using pthreads, makefile isn't configured that.

edit makefile , add -pthread cflags , ldflags. can adding lines

cflags += -pthread ldflags += -pthread 

however, may not need d2xx library @ all. ftdi kernel driver should create /dev/ttyusbn device can use "real" serial port.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -