Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Versions - Cygwin-g+



  • Hi,

    I come on this forum after a week of search and try to understand how to fix my issue.
    I have install Sysgo ElinOS-6.2 (C:\sysgo\opt\elinos-6.2...) on my computer.
    This version of Linux have a version of Qt 5.7.1 and use cygwin.
    To be in accordance with the Qt version, I have install Qt 5.7 (C:\Qt...)

    My project compile in cygwin with both command :
    #qmake-qt5 -o Makefile myprj.pro
    #make
    But it is not useful to debug my project.

    I started to implement the Kits on Qt Creator. Compiler -> OK, Debug -> OK (ABIs : x86-linux-generic-elf-x64).
    But the Qt Versions go wrong. Qt found the version : 5.7.1 (qt5) but the ide says to execute make install.
    => Looking on general message I have :
    "cannot read /opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/share/qt5/mkspecs/devices/linux-elinos-g++/qmake.conf : no such file or directory"

    when i apply the command qmake -query I have :

    $ qmake-qt5 -query
    QT_SYSROOT:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu
    QT_INSTALL_PREFIX:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/delete
    QT_INSTALL_PREFIX/raw:/delete
    QT_INSTALL_ARCHDATA:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/delete
    QT_INSTALL_ARCHDATA/raw:/delete
    QT_INSTALL_DATA:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/usr/share/qt5
    QT_INSTALL_DATA/raw:/usr/share/qt5
    QT_INSTALL_DOCS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/usr/share/qt5/doc
    QT_INSTALL_DOCS/raw:/usr/share/qt5/doc
    QT_INSTALL_HEADERS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/include/qt5
    QT_INSTALL_HEADERS/raw:/include/qt5
    QT_INSTALL_LIBS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/lib
    QT_INSTALL_LIBS/raw:/lib
    QT_INSTALL_LIBEXECS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/delete/libexec
    QT_INSTALL_LIBEXECS/raw:/delete/libexec
    QT_INSTALL_BINS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/usr/bin
    QT_INSTALL_BINS/raw:/usr/bin
    QT_INSTALL_TESTS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/delete/tests
    QT_INSTALL_TESTS/raw:/delete/tests
    QT_INSTALL_PLUGINS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/usr/lib/qt5/plugins
    QT_INSTALL_PLUGINS/raw:/usr/lib/qt5/plugins
    QT_INSTALL_IMPORTS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/delete/imports
    QT_INSTALL_IMPORTS/raw:/delete/imports
    QT_INSTALL_QML:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/delete/qml
    QT_INSTALL_QML/raw:/delete/qml
    QT_INSTALL_TRANSLATIONS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/usr/share/qt5/translations
    QT_INSTALL_TRANSLATIONS/raw:/usr/share/qt5/translations
    QT_INSTALL_CONFIGURATION:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/etc/qt5
    QT_INSTALL_CONFIGURATION/raw:/etc/qt5
    QT_INSTALL_EXAMPLES:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/usr/share/qt5/examples
    QT_INSTALL_EXAMPLES/raw:/usr/share/qt5/examples
    QT_INSTALL_DEMOS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/x86_64-unknown-linux-gnu/usr/share/qt5/examples
    QT_INSTALL_DEMOS/raw:/usr/share/qt5/examples
    QT_HOST_PREFIX:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24
    QT_HOST_DATA:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/share/qt5
    QT_HOST_BINS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/bin/qt5
    QT_HOST_LIBS:/opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/lib
    QMAKE_SPEC:cygwin-g++
    QMAKE_XSPEC:devices/linux-elinos-g++
    QMAKE_VERSION:3.0
    QT_VERSION:5.7.1
    

    I have try the command :
    qmake -set / -unset of some properties but nothing change

    If I try to open my project, the same qmake.conf can not be read and the .pro file cannot be parsed.

    An other way, I change the mkspecs in kit : "c:\sysgo\opt\elinos-6.2\cdk\x86\x86_64\glibc-2.24\share\qt5\mkspecs\linux-g++\qmake.conf"
    The .pro file can now be parsed but an other error message come :
    Project ERROR: Unknown module(s) in QT : core gui widgets network mutlimedia

    If I do manual qmake/make in Qt, the project compile correctly.. but don't know Qt module...

    I do some other stuff but all comes at this end of full errors.

    Is someone can help me ?
    Thanks you very much :-).


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    If I understand you correctly you want to use the Qt version provided by that distribution you installed so why are you installing another one ?



  • Hi SGaist,

    Yes, I want to use the Qt Version from Sysgo/ElinOS.
    The Makefile generated by my command qmake used the compiler from Sysgo/ElinOS.
    "c:\sysgo\opt\elinos-6.2\cdk\x86\x86_64\glibc-2.24\bin\x86_x64-unknown-linux-gnu-gcc.exe"

    I forgot to specify... The binary file go to a target where ElinOS is installed.


  • Lifetime Qt Champion

    By any chance, does it also provide Qt Creator ? That might be easier to get started.



  • They don't provide Qt Creator...
    Cygwin command provide by Sysgo/ElinOS is poor..
    Sysgo does not provide Qt Creator. I tried to install Qt by downloading and run it in cygwin but no success.



  • @Helli

    I develop in general on Windows 10 with MinGW. For Linux OS I am using VirtualBox to run Ubuntu Desktop with creator. For cross compiling for embedded devices, I do the cross compiling on Ubuntu linux for specific devices. That makes life a lot easier in my opinion. I can run latest Qt creator on Ubuntu and have all the comfort as with Windows 10.

    With VirtualBox you can share a part of the disk to make the exchange of code between Windows and Ubuntu easier.
    Certainly there are a lot of possibilities to direct cross-compilation for linux on Windows and there are people preferring this. However, there are always some hooks which are avoided when you are going through a VirtualBox.



  • Hi,

    After some research, I have read that qmake.exe can be redirected to a qt.conf file.
    But I have some trouble to resolve the path.
    When I write : /cygdrive/c/.... => Qt see those path but I have a "cannot read ... : no such file or directory.
    When I write : C:/ => the default path come back as /opt/...

    EDIT :
    I think I can maybe solve something if I can resolve the Cygwin path.
    Actually, the bash is in C:/sysgo/bin. And the "root" of cygwin is C:/sysgo.

    If I look on all path I see /opt/....
    Where /opt is normally C:/sysgo/opt/...

    How is it possible to change /opt/ to C:/sysgo/opt as "default" ??

    Thanks for help :-)


  • Lifetime Qt Champion

    That's a good question, I think you should contact the Cygwin Qt package maintainer(s). They should be able to help you ore efficiently.


Log in to reply