Cross compile QT5.8 on windows for Rpi

Sysprogs forums Forums Other tools & products Cross compile QT5.8 on windows for Rpi

This topic contains 1 reply, has 2 voices, and was last updated by  grrizzly 1 week, 5 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10780

    tiagojanz
    Participant

    Hi,

     

    I followed  the tutorial at https://visualgdb.com/tutorials/raspberry/qt/embedded/ but  when I try to configure it gives this error

     

    TVale@DEVRPK01 /c/Users/TVale/downloads
    $ mkdir qt-build

    TVale@DEVRPK01 /c/Users/TVale/downloads
    $ cd qt-build

    TVale@DEVRPK01 /c/Users/TVale/downloads/qt-build
    $ ../qt-everywhere-opensource-src-5.8.0/configure -platform win32-g++ -xplatform linux-arm-gnueabi-
    g++ -release -opengl es2 -device linux-rasp-pi2-g++ -sysroot C:/SysGCC/RaspberryQT57/arm-linux-gnue
    abihf/sysroot -prefix /usr/local/qt5
    + cd qtbase
    + /c/Users/TVale/downloads/qt-everywhere-opensource-src-5.8.0/qtbase/configure -top-level -platform win32-g++ -xplatform linux-arm-gnueabi-g++ -release -opengl es2 -device linux-rasp-pi2-g++ -sysroot C:/SysGCC/RaspberryQT57/arm-linux-gnueabihf/sysroot -prefix /usr/local/qt5
    Which edition of Qt do you want to use ?

    Type ‘c’ if you want to use the Commercial Edition.
    Type ‘o’ if you want to use the Open Source Edition.

    o
    This is the Qt Open Source Edition.

    You are licensed to use this software under the terms of
    the GNU Lesser General Public License (LGPL) version 3.
    You are also licensed to use this software under the terms of
    the GNU General Public License (GPL) version 2.

    Type ‘L’ to view the GNU Lesser General Public License version 3.
    Type ‘G’ to view the GNU General Public License version 2.
    Type ‘yes’ to accept this license offer.
    Type ‘no’ to decline this license offer.

    Do you accept the terms of either license? yes

    Preparing build tree…
    Creating qmake…
    ………………………………………………………..c:/Users/TVale/downloads/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/io/qsettings.cpp:954:40: error: ‘KNOWNFOLDERID’ does not name a type
    static QString windowsConfigPath(const KNOWNFOLDERID &type)
    ^
    c:/Users/TVale/downloads/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/io/qsettings.cpp:954:55: error: ISO C++ forbids declaration of ‘type’ with no type [-fpermissive]
    static QString windowsConfigPath(const KNOWNFOLDERID &type)
    ^
    c:/Users/TVale/downloads/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/io/qsettings.cpp: In function ‘QString windowsConfigPath(const int&)’:
    c:/Users/TVale/downloads/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/io/qsettings.cpp:959:36: error: ‘KF_FLAG_DONT_VERIFY’ was not declared in this scope
    if (SHGetKnownFolderPath(type, KF_FLAG_DONT_VERIFY, NULL, &path) == S_OK) {
    ^
    c:/Users/TVale/downloads/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/io/qsettings.cpp:959:68: error: ‘SHGetKnownFolderPath’ was not declared in this scope
    if (SHGetKnownFolderPath(type, KF_FLAG_DONT_VERIFY, NULL, &path) == S_OK) {
    ^
    c:/Users/TVale/downloads/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/io/qsettings.cpp:965:21: error: ‘FOLDERID_ProgramData’ was not declared in this scope
    if (type == FOLDERID_ProgramData) {
    ^
    c:/Users/TVale/downloads/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/io/qsettings.cpp:967:28: error: ‘FOLDERID_RoamingAppData’ was not declared in this scope
    } else if (type == FOLDERID_RoamingAppData) {
    ^
    c:/Users/TVale/downloads/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/io/qsettings.cpp: In function ‘void initDefaultPaths(QMutexLocker*)’:
    c:/Users/TVale/downloads/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/io/qsettings.cpp:1069:64: error: ‘FOLDERID_RoamingAppData’ was not declared in this scope
    const QString roamingAppDataFolder = windowsConfigPath(FOLDERID_RoamingAppData);
    ^
    c:/Users/TVale/downloads/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/io/qsettings.cpp:1070:61: error: ‘FOLDERID_ProgramData’ was not declared in this scope
    const QString programDataFolder = windowsConfigPath(FOLDERID_ProgramData);
    ^
    make.exe: *** [qsettings.o] Error 1

    TVale@DEVRPK01 /c/Users/TVale/downloads/qt-build

     

     

     

     

    thank you

    #10995

    grrizzly
    Participant

    Getting the exact same issue, any tips?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.