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. Installing Qtcreator on xubuntu

Installing Qtcreator on xubuntu

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 5 Posters 1.1k 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.
  • D Offline
    D Offline
    Dinesh123
    wrote on last edited by
    #1

    I am a naive user of the Qt. I have installed Qt5. 5 on the xubuntu. But when I try to compile a basic program on the Qtcreator, it shows the error "compiler not set in the kit options".
    I have tried to set but its not working.
    Please help in this regard.
    And moreover whether the Qt developer should not have provided all the settings? , The naive user like me face a lot difficulty.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Do you have gcc or clang installed? If not, run this in terminal:

      sudo apt install build-essential
      

      And then try again in Qt Creator.

      I have tried to set but its not working.

      Can you provide any more detail? What have you done, how did it fail?

      (Z(:^

      D 2 Replies Last reply
      5
      • sierdzioS sierdzio

        Do you have gcc or clang installed? If not, run this in terminal:

        sudo apt install build-essential
        

        And then try again in Qt Creator.

        I have tried to set but its not working.

        Can you provide any more detail? What have you done, how did it fail?

        D Offline
        D Offline
        Dinesh123
        wrote on last edited by
        #3

        @sierdzio i have installed Qt5. 5 but when I try to build a basic program, it says compiler not set at the kit option.
        Then I have read something about how to set compiler and followed that.
        Now it says
        Make:no such file or directory
        fatal error: no input file

        Please provide the details of the proper settings.

        And moreover, why such settings is not happening automatically at the time of installation.

        1 Reply Last reply
        0
        • sierdzioS sierdzio

          Do you have gcc or clang installed? If not, run this in terminal:

          sudo apt install build-essential
          

          And then try again in Qt Creator.

          I have tried to set but its not working.

          Can you provide any more detail? What have you done, how did it fail?

          D Offline
          D Offline
          Dinesh123
          wrote on last edited by
          #4

          @sierdzio for the command
          Sudo apt install build - essential
          It says no such depository

          I have used qt-unified-x86-linux offline installer

          jsulmJ 1 Reply Last reply
          0
          • D Dinesh123

            @sierdzio for the command
            Sudo apt install build - essential
            It says no such depository

            I have used qt-unified-x86-linux offline installer

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Dinesh123 It is

            apt install build-essential
            

            without spaces between build - essential. And it is there in Xubuntu (18.04 which I'm using).

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            4
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Qt 5.5? That's very old. Are you forced to use an ancient version of Qt? If not, get the online installer and install either Qt 5.12 or 5.14.

              Make:no such file or directory

              I think you are still missing basic compilation tools. Run sudo apt install build-essential (there are no spaces between words in build-essential!). It has to work, even on xubuntu.

              fatal error: no input file

              Or you are trying to compile a project without files?

              And moreover, why such settings is not happening automatically at the time of installation.

              Because in C++ world, the choice of compiler is up to you. Qt can work with clang or g++, and with a wide variety of compilator versions. It's your responsibility to set your dev environment, not Qt's.

              (Z(:^

              D 1 Reply Last reply
              4
              • sierdzioS sierdzio

                Qt 5.5? That's very old. Are you forced to use an ancient version of Qt? If not, get the online installer and install either Qt 5.12 or 5.14.

                Make:no such file or directory

                I think you are still missing basic compilation tools. Run sudo apt install build-essential (there are no spaces between words in build-essential!). It has to work, even on xubuntu.

                fatal error: no input file

                Or you are trying to compile a project without files?

                And moreover, why such settings is not happening automatically at the time of installation.

                Because in C++ world, the choice of compiler is up to you. Qt can work with clang or g++, and with a wide variety of compilator versions. It's your responsibility to set your dev environment, not Qt's.

                D Offline
                D Offline
                Dinesh123
                wrote on last edited by
                #7

                @sierdzio The command
                Sudo apt-get install build-essential does not work.

                The error is build-essential has no candidate.

                I have used qt-unified-linux-x86-2.0.5-2-online.run
                And performed the settings as mentioned in the following link
                https://www.google.com/url?sa=t&source=web&rct=j&url=http://variwiki.com/images/8/8d/YoctoQtCreator.pdf&ved=2ahUKEwjXqf_as8_oAhWVwjgGHQPrBUMQFjAAegQIARAB&usg=AOvVaw3MYXNS1nzX5RLbjNdXaAJQ&cshid=1586025169512

                And now it says

                error :g++ command not found

                While trying to build a basic application (gcc compiler set in the kit option ).
                I am unable to understand what is going wrong.
                Help to resolve this issue or provide proper Web link specifying the details of qtcreator settings.

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

                  Hi,

                  Your issue currently is that your system is not properly setup and it's not a Qt Creator problem. All derivatives of Debian have the build-essential package which is meta package providing a set of tools for compilation and the rest.

                  If you have, first ensure that your package cache is up to date and use it to search that package. Please learn the tools to manage your Linux installation.

                  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
                  3
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi
                    what version of Xubuntu are you using?

                    if you cant do

                    sudo apt-get update
                    sudo apt-get install build-essential
                    

                    Then something up with your installation.

                    Normally you do not need to setup Creator it find gcc by itself!

                    so i dont think you have gcc and tool chain installed as that comes from
                    build-essential.
                    So before even looking at Creator. You have to have a working gcc toolchain.

                    1 Reply Last reply
                    2
                    • sierdzioS Offline
                      sierdzioS Offline
                      sierdzio
                      Moderators
                      wrote on last edited by
                      #10

                      Are you building for Yocto (embedded Linux) targets? If no, then don't use instructions on how to set up for Yocto development. It won't help you get local dev env for Qt development.

                      (Z(:^

                      1 Reply Last reply
                      2

                      • Login

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