Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Versions - Cygwin-g+
Forum Updated to NodeBB v4.3 + New Features

Qt Versions - Cygwin-g+

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 3 Posters 1.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Helli
    wrote on last edited by Helli
    #1

    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 :-).

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Helli
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • H Offline
            H Offline
            Helli
            wrote on last edited by
            #5

            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.

            K 1 Reply Last reply
            0
            • H Helli

              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.

              K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              @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.

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              2
              • H Offline
                H Offline
                Helli
                wrote on last edited by Helli
                #7

                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 :-)

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved