Results 1 to 3 of 3

Thread: Installing on Linux with gcc

  1. #1
    Join Date
    Aug 2008
    Qt products

    Default Installing on Linux with gcc

    Alright, this may be a noob question, but here goes anyway: I'm trying to install Qt on an OpenSUSE box. I've fiddled with this kind of thing before, the process is usually straightforward; I untar the file into a folder, go to that folder, type './configure'...

    ...and the program seems to want to use g++ to compile things. Problem: I don't /have/ g++; I have gcc, which as I understand is more or less the same thing with a different name. This results in an error and the configuration stopping. I've poked around the forums here and found what I think is a similar problem...apparently I need to change some variable called QMAKESPEC somewhere that points to the /mkspecs folder? Where is this variable?

    And what would I change it to anyway? The linux-related folders in the /mkspecs folder appear to be: linux-cxx, linux-ecc-64, linux-g++, linux-g++-32, linux-g++-64, linux-icc, linux-icc-32, linux-icc-64, linux-kcc, linux-llvm, linux-lsb-g++, and linux-pgcc. The last one is the only one that's close to being gcc, so is that the one I should be using?

  2. #2
    Join Date
    Jul 2008
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Unix/X11 Windows

    Default Re: Installing on Linux with gcc

    GCC is the GNU Compiler Collection. In this collection is g++, the C++ compiler. You will need g++ to compile Qt, since this is written in C++. I guess you could use a different C++ compiler if you really want to, but why not stick with g++...

  3. #3
    Join Date
    Jan 2006
    Warsaw, Poland
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits

    Default Re: Installing on Linux with gcc

    In another words you need to install a package called gcc-g++, gcc-c++ or similar.
    Last edited by wysota; 26th August 2008 at 21:35.

Similar Threads

  1. problem installing qwt 5.1.1 on linux for ARM
    By raman_31181 in forum Qwt
    Replies: 4
    Last Post: 18th August 2010, 15:51
  2. Installing both qt3 and qt4 on linux ( Fedora Core )
    By vermarajeev in forum Installation and Deployment
    Replies: 3
    Last Post: 10th May 2007, 18:21
  3. errors while installing Qt4.2 in Linux
    By nimmyj in forum Installation and Deployment
    Replies: 11
    Last Post: 13th December 2006, 12:58
  4. Installing without using gcc
    By Rayven in forum Installation and Deployment
    Replies: 6
    Last Post: 31st May 2006, 23:28
  5. gcc (linux) : ok ; g++ (windows) : fails
    By nouknouk in forum Qt Programming
    Replies: 1
    Last Post: 25th February 2006, 04:08


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.