Frage über C++

Alles rund um TX(T) und RoboPro, mit ft-Hard- und Software
Computing using original ft hard- and software
Forumsregeln
Bitte beachte die Forumsregeln!
Antworten
hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Frage über C++

Beitrag von hvn » 03 Sep 2011, 12:53

Hallo,

Jetzt brauche Ich Python aber Ich will C++ auch wieder gebrauchen mit der ftApi von der uni-frankfurt (apidoc-1-1). Aber Ich bekomme ein Fehler der Ich nicht ganz verstehe. Nach compilieren ist einer Meldung:

In function `main':
Mirft-cpp.cpp:(.text+0x54): undefined reference to `ftapi::ftGetIfFromFactory(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, ftapi::ft_if_conn)'

Soweit Ich weiss, sind fischerusb und ftapi correct installiert. Aber der website sagt auch dass fischerusb jetzt obsolete ist. Ich habe schon Fragen gestellt an die Leute, aber kein Antwort bekommen. Kann jemand mich sagen welche Fehler(s) Ich mache?

Vielen Dank.

hvn

UMueller
Beiträge: 220
Registriert: 31 Okt 2010, 22:58

Re: Frage über C++

Beitrag von UMueller » 03 Sep 2011, 13:39

Hallo,

die Fehlermeldung deutet daraufhin, dass ftApi nicht gefunden wurde.
liegt es auch im richtigen Verzeichnis z.B. ..\System32 ....
der ftApi Aufruf scheint mir ein C++ Befehl zu sein. dem muß oft ein windll. vorangestellt werden.
Was für ein Interface verwendest Du denn (Robo Interface / TX Controller).

Du kannst Dir auch zusätzlich meine Lösung dazu ansehen :http://www.ftcomputing.de/pythonecke.htm für das Robo Interface dort ist auch ein Link zum TX Controller.

Gruß Ulrich Müller

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Frage über C++

Beitrag von hvn » 03 Sep 2011, 14:08

Hallo,

Danke fuer die Antwort. Ich bemerke dass Ich nicht alles erzaehlt habe. Erstens, Ich brauche kein Windows aber Fedora Linux 14. Zweitens, mein Controller ist der RoboInterface. Als der Fehler bedeutet dass ftApi nicht gefunden werd, will Ich versuchen ftApi wieder zu installieren.

Gruss,

hvn

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Frage über C++

Beitrag von hvn » 03 Sep 2011, 14:20

Hallo,

Ich habe versucht ftApi wieder zu installieren und mit "make install" bekomme Ich ganz viel Berichten wie diese:

./../libtool: line 5209: : command not found
/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -DNDEBUG -DHAVE_POSIXSERIAL -DHAVE_LIBUSB -lusb -o ftsalctrl ftSalCtrl.o ../../src/ftapi/libftapi.a
../../libtool: line 841: X--tag=CXX: command not found
../../libtool: line 874: libtool: ignoring unknown tag : command not found
../../libtool: line 841: X--mode=link: command not found
../../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found
../../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
gcc: no input files
gcc: no input files
gcc: no input files
gcc: no input files
../../libtool: line 2253: X-g: command not found
../../libtool: line 2253: X-O2: command not found
../../libtool: line 2253: X-DNDEBUG: command not found
../../libtool: line 2253: X-DHAVE_POSIXSERIAL: command not found
../../libtool: line 2253: X-DHAVE_LIBUSB: command not found
../../libtool: line 2422: Xftsalctrl: command not found

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.


Please consult the Fedora Project support
at http://wiki.x.org
for help.

Was bedeuten die? Die ftApi docs deuten dat ftApi nicht installiert kan worden, als fischerusb (obsolete) nicht bereits installatiert ist. Ist dass hier das Problem?

UMueller
Beiträge: 220
Registriert: 31 Okt 2010, 22:58

Re: Frage über C++

Beitrag von UMueller » 03 Sep 2011, 14:48

Hallo,

bist Du sicher, dass das ftApi auch für Linux geeignet ist, ich habe davon noch nichts gehört und muss deswegen passen.

Gruß Ulrich Müller

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Frage über C++

Beitrag von hvn » 03 Sep 2011, 15:01

UMueller hat geschrieben:Hallo,

bist Du sicher, dass das ftApi auch für Linux geeignet ist, ich habe davon noch nichts gehört und muss deswegen passen.

Gruß Ulrich Müller
Ja, Ich bin sicher davon: http://www.vsi.cs.uni-frankfurt.de/rese ... s/fischer/ sagt:

"ftapi is available for different platforms; at present Linux 2.6.x and MacOS X are supported. "

UMueller
Beiträge: 220
Registriert: 31 Okt 2010, 22:58

Re: Frage über C++

Beitrag von UMueller » 03 Sep 2011, 15:24

Hallo,

die Goethes riechen wirklich nach Linux und mehr.

Gruß Ulrich Müller

Antworten