Seite 1 von 1

Frage über C++

Verfasst: 03 Sep 2011, 12:53
von hvn
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

Re: Frage über C++

Verfasst: 03 Sep 2011, 13:39
von UMueller
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

Re: Frage über C++

Verfasst: 03 Sep 2011, 14:08
von hvn
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

Re: Frage über C++

Verfasst: 03 Sep 2011, 14:20
von hvn
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?

Re: Frage über C++

Verfasst: 03 Sep 2011, 14:48
von UMueller
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

Re: Frage über C++

Verfasst: 03 Sep 2011, 15:01
von hvn
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. "

Re: Frage über C++

Verfasst: 03 Sep 2011, 15:24
von UMueller
Hallo,

die Goethes riechen wirklich nach Linux und mehr.

Gruß Ulrich Müller