Results 1 to 7 of 7

Thread: Missing compiler error in QtCreator and Qt5.1.0 on Lubuntu 13.04

  1. #1
    Join Date
    Aug 2013
    Posts
    13
    Thanks
    6
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Unhappy Missing compiler error in QtCreator and Qt5.1.0 on Lubuntu 13.04

    I can't compile any program in QtCreator on Lubuntu 13.04. I have this error:
    Qt Code:
    1. QtCreator needs a compiler set up to build. Configure a compiler in the kit options
    To copy to clipboard, switch view to plain text mode 
    First of all, I installed from Synaptic gcc-mingw32 and mingw32 with dependencies, so the list of downloading packages files looked like this:
    Qt Code:
    1. binutils (version 2.23.2-2ubuntu1) will be installed
    2. binutils-mingw-w64-i686 (version 2.22.90.20120919-0ubuntu1+2) will be installed
    3. binutils-mingw-w64-x86-64 (version 2.22.90.20120919-0ubuntu1+2) will be installed
    4. cpp-4.6 (version 4.6.4-1ubuntu1) will be installed
    5. g++-4.6 (version 4.6.4-1ubuntu1) will be installed
    6. g++-mingw-w64-i686 (version 4.6.3-13ubuntu1+8) will be installed
    7. g++-mingw-w64-x86-64 (version 4.6.3-13ubuntu1+8) will be installed
    8. gcc-4.6 (version 4.6.4-1ubuntu1) will be installed
    9. gcc-4.6-base (version 4.6.4-1ubuntu1) will be installed
    10. gcc-mingw-w64-base (version 4.6.3-13ubuntu1+8) will be installed
    11. gcc-mingw-w64-i686 (version 4.6.3-13ubuntu1+8) will be installed
    12. gcc-mingw-w64-x86-64 (version 4.6.3-13ubuntu1+8) will be installed
    13. gfortran-mingw-w64-i686 (version 4.6.3-13ubuntu1+8) will be installed
    14. gfortran-mingw-w64-x86-64 (version 4.6.3-13ubuntu1+8) will be installed
    15. libc-dev-bin (version 2.17-0ubuntu5) will be installed
    16. libc6-dev (version 2.17-0ubuntu5) will be installed
    17. libstdc++6-4.6-dev (version 4.6.4-1ubuntu1) will be installed
    18. linux-libc-dev (version 3.8.0-27.40) will be installed
    19. manpages-dev (version 3.44-0ubuntu1) will be installed
    20. mingw-w64-i686-dev (version 2.0.3-1) will be installed
    21. mingw-w64-x86-64-dev (version 2.0.3-1) will be installed
    22. mingw32 (version 4.2.1.dfsg-2ubuntu1) will be installed
    23. mingw32-binutils (version 2.20-0.2) will be installed
    24. mingw32-runtime (version 3.15.2-0ubuntu1) will be installed
    To copy to clipboard, switch view to plain text mode 
    Then I downloaded newest Qt 5.1.0 for Linux 32-bit from qt-project.org/downloads and I installed it without any problems. In installation options I had checked "gcc".

    Then, I created new project. In Kit Selection I had default checked "Desktop Qt 5.1.0 GCC 32bit". I wrote some code, tried to compile it, and I have mentioned error about compiler. I thought QtCreator will detect gcc (or mingw).

    In Options window, section "Build & Run", tab Compilers I have nothing. So I added new compiler GCC and set following file:
    Qt Code:
    1. /home/rafal/Qt5.1.0/5.1.0/gcc/bin/qmake
    To copy to clipboard, switch view to plain text mode 
    But I have no idea if is this the right file. I set ABI to: x86, linux, generic, elf, 32 bit, but also I'm not sure about it. Then, in "Kits" tab I added new one, and this one has GCC compiler. I set this kit to default. I go back to the code, I try to compile it once again, and then I have this error:
    Qt Code:
    1. 18:03:16: Running steps for project TestApp...
    2. 18:03:16: Configuration unchanged, skipping qmake step.
    3. 18:03:16: Could not start process "make"
    4. Error while building/deploying project TestApp (kit: Desktop Qt 5.1.0 GCC 32bit)
    5. When executing step 'Make'
    6. 18:03:16: Elapsed time: 00:00.
    To copy to clipboard, switch view to plain text mode 
    I also installed g++, and I get the same.

    And I don't know what to do.

    Can someone help me, please? What am I doing wrong?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Missing compiler error in QtCreator and Qt5.1.0 on Lubuntu 13.04

    Tell Qt Creator where your compilers are:
    Tool > Options > Build & Run > Compiler Tab

    While you are at it you should tell it about your Qt versions:
    Tool > Options > Build & Run > Qt Versions Tab

    and put them to together is combinations you wish to use:
    Tool > Options > Build & Run > Kits Tab

    You don't need all the MingW stuff unless you are intending to develop for Windows on a Linux machine.

  3. #3
    Join Date
    Aug 2013
    Posts
    13
    Thanks
    6
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Missing compiler error in QtCreator and Qt5.1.0 on Lubuntu 13.04

    Thank you for your reply. But I tried to find compilers, but I'm not sure if I found the right files.

    In Build&Run > Compilers I have:
    Qt Code:
    1. Auto-detected: "GCC (x86 32bit in /usr/bin)
    2. Manual: I added the same file.
    To copy to clipboard, switch view to plain text mode 

    In Qt Versions I have:
    Qt Code:
    1. Auto-detected: At 5.1.0 GCC 32 bit /home/rafal/Qt5.1.0/5.1.0/gcc/bin/qmake
    To copy to clipboard, switch view to plain text mode 

    In Kits I have:
    Qt Code:
    1. Auto-detected: Desktop Qt 5.1.0 GCC 32bit
    To copy to clipboard, switch view to plain text mode 
    , but I can't change anything in it.

    When I make this Kit default, when compiling I get the same error:
    Qt Code:
    1. 09:40:18: Running steps for project TestApp...
    2. 09:40:18: Configuration unchanged, skipping qmake step.
    3. 09:40:18: Could not start process "make"
    4. Error while building/deploying project TestApp (kit: Desktop Qt 5.1.0 GCC 32bit)
    5. When executing step 'Make'
    6. 09:40:18: Elapsed time: 00:00.
    To copy to clipboard, switch view to plain text mode 

    So I added a new Kit:
    Qt Code:
    1. Device type: Desktop
    2. Device: Run locally (default for Desktop)
    3. Sysroot: empty (I don't know if that's needed)
    4. Compiler: GCC (x86 32bit in /usr/bin)
    5. Debugger: GDB Engine <None>
    6. Qt Version: Qt 5.1.0 GCC 32 bit
    7. Qt mkspec: empty
    To copy to clipboard, switch view to plain text mode 

    And that's my configuration. Every time I get the same above error. Do I have to attach another files?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Missing compiler error in QtCreator and Qt5.1.0 on Lubuntu 13.04

    No, but you need to install a complete C++ compiler and tools, which includes make.
    https://help.ubuntu.com/community/InstallingCompilers

  5. The following user says thank you to ChrisW67 for this useful post:

    Acamapichtli (13th August 2013)

  6. #5
    Join Date
    Aug 2013
    Posts
    13
    Thanks
    6
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Missing compiler error in QtCreator and Qt5.1.0 on Lubuntu 13.04

    Thank you very much. It works now.
    By the way, I had another error "Cannot find -lGL", so I installed libglu1-mesa-dev, and now it works fine.

    So, I don't ned to install those compilers which I installed first before installation of QtCreator, but only those from ubuntu page?

  7. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Missing compiler error in QtCreator and Qt5.1.0 on Lubuntu 13.04

    All of the packages with "mingw" in the name are for building Windows executables on Linux host. This is not something you are likely to attempt as a newbie

  8. #7
    Join Date
    Aug 2013
    Posts
    13
    Thanks
    6
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Missing compiler error in QtCreator and Qt5.1.0 on Lubuntu 13.04

    Now I uderstand. Thank you for your help.

Similar Threads

  1. Replies: 1
    Last Post: 21st May 2013, 12:13
  2. QtCreator compiler options
    By soxs060389 in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd December 2011, 01:19
  3. Compiler error with qtcreator and qtestlib
    By azmeuk in forum Qt Programming
    Replies: 2
    Last Post: 15th November 2011, 16:12
  4. compiler and app error with qtcreator 2.3 and 4..7.4
    By creatio.x in forum Installation and Deployment
    Replies: 2
    Last Post: 6th September 2011, 10:16
  5. Compiler error when calling QObject::connect. What am I missing?
    By themanwiththequestion in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2010, 15:33

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.