Gast
#1669622
Hallo Leute, ich habe unter meinem Ubuntu 9.10 ein C/C++-Programm programmiert um damit auf die serielle Schnittstelle zu zugreifen, funktioniert wunderbar. Nun wollte ich dieses Programm auf meinen neuen NGW100 zum laufen bringen. Da ich für den seriellen Zugriff auf die Schnittstelle POSIX benutze, habe ich termios.h und ioctl.h als Header-Files eingebunden. Nun meine Probleme/Frage: 1. Die beiden speziellen Header-Files werden beim cross-compilieren nicht gefunden (alle anderen scheinbar schon), wie muss ich vorgehen. 2. Wenn ich mit avr32-g++ kompiliere, bin ich mir unsicher ob hier die Standard-Optionen ausreichen (avr32-g++ file.cpp -o file), habe zwar schon andere Varianten probiert, aber gleiche in grün. Bei Google finde ich immer nur Anleitungen zu gcc (ging auch nich). Ich nutze: Ubuntu 9.10 AVR32-Toolchain 2.4.2 für Ubuntu 9.10 Hier nochmal meine Fehlermeldung vom Compiler: In file included from dd_npb190.cpp:7: /usr/lib/gcc/avr32/4.3.2/../../../../avr32/include/termios.h:4:25: error: sys/termios.h: No such file or directory dd_npb190.cpp:9:23: error: sys/ioctl.h: No such file or directory dd_npb190.cpp: In function 'int main()': dd_npb190.cpp:62: error: 'select' was not declared in this scope dd_npb190.cpp: In function 'int open_input_source(int)': dd_npb190.cpp:237: error: aggregate 'termios options' has incomplete type and cannot be defined dd_npb190.cpp:259: error: 'O_NDELAY' was not declared in this scope dd_npb190.cpp:280: error: 'tcgetattr' was not declared in this scope dd_npb190.cpp:292: error: 'B9600' was not declared in this scope dd_npb190.cpp:292: error: 'cfsetspeed' was not declared in this scope dd_npb190.cpp:293: error: 'PARENB' was not declared in this scope dd_npb190.cpp:294: error: 'CSTOPB' was not declared in this scope dd_npb190.cpp:295: error: 'CSIZE' was not declared in this scope dd_npb190.cpp:296: error: 'CS8' was not declared in this scope dd_npb190.cpp:297: error: 'CLOCAL' was not declared in this scope dd_npb190.cpp:297: error: 'CREAD' was not declared in this scope dd_npb190.cpp:298: error: 'ICANON' was not declared in this scope dd_npb190.cpp:298: error: 'ECHO' was not declared in this scope dd_npb190.cpp:298: error: 'ECHOE' was not declared in this scope dd_npb190.cpp:298: error: 'ISIG' was not declared in this scope dd_npb190.cpp:300: error: 'OPOST' was not declared in this scope dd_npb190.cpp:301: error: 'VMIN' was not declared in this scope dd_npb190.cpp:302: error: 'VTIME' was not declared in this scope dd_npb190.cpp:305: error: 'TCIOFLUSH' was not declared in this scope dd_npb190.cpp:305: error: 'tcflush' was not declared in this scope dd_npb190.cpp:307: error: 'TCSAFLUSH' was not declared in this scope dd_npb190.cpp:307: error: 'tcsetattr' was not declared in this scope Wäre super wenn mir jemand weiterhelfen könnte. Vielen Dank schonmal! Gruß Uwe