QtSerial unter Ubuntu installieren

Gast #3583351
Hallo,

ich probiere seit Stunden vergeblich QtSerialPort unter Ubuntu für QT5 
zu installieren.

Die Hilfe von QT erklärt diese folgendermaßen:
1
Build and install from command line
2

3
Before building you need to:
4

5
    install Perl3
6
    ensure that the environment variables are set correctly:
7
        correctly specified the path to the installed Qt4/Qt5
8
        correctly specified the path to used the compiler
9
        correctly specified the path to the Perl3
10
    create a build directory that is on the same level as the directory with the source code
11
        /
12
        |- /serialport-src
13
        |- /serialport-build
14

15
The following are recommended procedures for building the QtSerialPort library on Qt4/Qt5 from command line.
16

17
    cd serialport-build
18
    qmake ../serialport-src/qtserialport.pro
19
    make [or 'nmake' for MSVC compiler, or 'mingw32-make' for MinGW compiler]
20
    make install [or 'nmake install' for MSVC compiler, or 'mingw32-make install' for MinGW compiler]


Wenn ich jetzt probiere das Ganze zu installieren, bekomme ich nur eine 
Fehlermeldung bei dem qmake-Schritt:

d@ubuntu:~/qtserialport/build$ sudo qmake 
/home/d/qtserialport/src/serialport/serialport.pro
Project MESSAGE: /usr/lib/x86_64-linux-gnu/qt5/bin/syncqt -module 
QtSerialPort -mkspecsdir /usr/share/qt5/mkspecs -outdir 
/home/d/qtserialport
Could not find any sync.profile for your module!
Pass <module directory> to syncqt to sync your header files.
syncqt failed at /usr/lib/x86_64-linux-gnu/qt5/bin/syncqt line 774.
Project ERROR: Failed to run: /usr/lib/x86_64-linux-gnu/qt5/bin/syncqt 
-module QtSerialPort -mkspecsdir /usr/share/qt5/mkspecs -outdir 
/home/d/qtserialport


Die aktuellste Perl-Version ist installiert.
Welche Pfade ich aber überprüfen soll oder woher der Fehler kommt bzw. 
wie ich ihn beheben kann, verstehe ich leider nicht.

Ich weiß nicht, ob es von Belange ist, aber ich habe QT aus den Quellen 
kompiliert und so läuft es einwandfrei.

Kann mir jemand weiterhelfen?

Vielen Dank!
Gast
In der Line steht:

die "Could not find any sync.profile for your module!\nPass <module 
directory> to syncqt to sync your header files.\nsyncqt failed" if 
(!$basedir);

und davor steht:

# if we have no $basedir we cannot be sure which sources you want, so 
die


Aber was für ein Stammverzeichnis?
Ich verstehe da leider nur Bahnhof :-(
Gast
Was ich  bis jetzt gesehen habe scheint es wohl Probleme mit dem 
getcwd(); Befehl zu geben.
Kannst dir das $basedir ja mal anzeigen lassen bzw. das aktuelle 
Verzeichnis dort eintragen.

Antwort schreiben

Eine eigene Frage? Dieser Thread ist über 12 Jahre alt. Stell sie in einem eigenen Thread – dort lesen mehr Leute mit, und sie wird öfter und schneller beantwortet.

Neuen Thread starten

Eine Lösung, Ergänzung oder Rückmeldung zu diesem Thread? Dann antworte hier.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.