Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt creator : Custom excecutable
Qt 6.11 is out! See what's new in the release blog

Qt creator : Custom excecutable

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 3 Posters 4.5k Views 3 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.
  • KartK Offline
    KartK Offline
    Kart
    wrote on last edited by Kart
    #1

    I have just finished building Qt 5.9.1 on my Ubuntu 16.04. While trying to build the project in my Qt Creator 3.5.1, this is what i am getting in the general messages :

    /opt/qt5.9.1_x86/mkspecs/features/toolchain.prf(50): system(execute) requires one or two arguments.
    Project ERROR: Cannot run compiler 'g++'. Maybe you forgot to setup the environment?
    Error while parsing file /home/karthi/Qt/untitled4/untitled4.pro. Giving up.
    Warnings while parsing QML type information of /opt/qt5.9.1_x86/qml:
    /opt/qt5.9.1_x86/qml/builtins.qmltypes:1:24: Reading only version 1.1 parts.
    /opt/qt5.9.1_x86/qml/builtins.qmltypes:10:5: Expected only Component and ModuleApi object definitions.

    Build is also done and the bin file is made. While running the project it is asking for Custom Executable. I am also not able to view my headers or source files in the Project tab. Only the project folder is visible. But the files is there in the source folder.

    Kindly help me with this issue. Thank you

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

      Hi and welcome to devnet,

      Might be a silly question but did you install the basic development tools on your machine ? Basically apt-get install build-essential ?

      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
      • KartK Offline
        KartK Offline
        Kart
        wrote on last edited by
        #3

        Hi SGaist,
        Yes , i did. I am uploading a screen shot.!0_1500008334863_Screenshot from 2017-07-14 10-27-20.png

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          Hi, try installing or building Qt not in /opt but instead in your home directory.

          KartK 1 Reply Last reply
          0
          • hskoglundH hskoglund

            Hi, try installing or building Qt not in /opt but instead in your home directory.

            KartK Offline
            KartK Offline
            Kart
            wrote on last edited by
            #5

            @hskoglund Hi.. i already have 5.9.0, 4.8.0 and 5.8.0 in /opt/ and it works fine.

            1 Reply Last reply
            0
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by
              #6

              Ok but where is the gcc_64 subdirectory? I think Qt is happier if that is present :-)

              KartK 1 Reply Last reply
              0
              • hskoglundH hskoglund

                Ok but where is the gcc_64 subdirectory? I think Qt is happier if that is present :-)

                KartK Offline
                KartK Offline
                Kart
                wrote on last edited by Kart
                #7

                @hskoglund can you help me with any other workaround ? Because i will be cross compiling the same version of Qt after testing it on my x86.

                1 Reply Last reply
                0
                • KartK Offline
                  KartK Offline
                  Kart
                  wrote on last edited by
                  #8

                  One more thing i have noticed is that, if i build the project and just close the Qt Creator and open it again. Then if i open the same project again, it works perfectly. No questions asked by Qt Creator.

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

                    What parameters did you use to build Qt 5.9.1

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

                    KartK 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      What parameters did you use to build Qt 5.9.1

                      KartK Offline
                      KartK Offline
                      Kart
                      wrote on last edited by Kart
                      #10

                      @SGaist This is the parameters i have given

                      ./configure -tslib -opensource -confirm-license -skip wayland -nomake examples -c++std c++11 -v -prefix /opt/qt5.9.1_x86
                      
                      1 Reply Last reply
                      0
                      • KartK Offline
                        KartK Offline
                        Kart
                        wrote on last edited by
                        #11

                        I was not able to find the exact issue. But Qt Creator 4.3.0 is not having the issue.
                        Now should i mark this topic as solved ?

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

                          Yes you can. Resolution is : upgrade Qt Creator.

                          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