QtSerial unter Ubuntu installieren

Gast #3583351
Lesenswert?
• ▲
▼
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 #3583568
Lesenswert?
• ▲
▼
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 :-(

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren