Results 1 to 2 of 2

Thread: QMAKE problem: gcc instead of g++

  1. #1
    Join Date
    Apr 2007
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QMAKE problem: gcc instead of g++

    Hi,

    I have a QT program that compiles in Ubuntu 16.04 and works perfectly. Hurrah!

    I updated my computer to Ubuntu 18.04.

    When I compile now, I get an error in the first c++ include.

    If I look at the Makefile that QMAKE creates, I see that is trying to compile with CC instead of CXX.

    I have Ubuntu 16.04 in a separate computer and I have verified that it still works there.


    So, what kind of general QT/QMAKE environment or whatever I don't have in my Ubuntu 18.04 that I did have in my Ubuntu 16.04 that is confusing QMAKE?

    BTW, I check qmake -query, and it does not look wrong...
    QMAKE_SPEC:linux-g++
    QMAKE_XSPEC:linux-g++
    QMAKE_VERSION:3.1
    QT_VERSION:5.9.5


    Any idea?

    Thanks,

    Hipo


    Added after 35 minutes:


    Hi,

    I'll answer myself...

    I fixed it by removing qt5 and installing qt4.

    Not sure what environment variables or default parameters change when you do that, but that fixes it for me...

    Thanks in any case to anybody that read the thread,

    Regards,
    Hipo
    Last edited by hipogrito; 19th September 2018 at 20:49.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QMAKE problem: gcc instead of g++

    I fixed it by removing qt5 and installing qt4.
    That sounds like a pretty poor solution to me. It seems like you have a configuration problem in your Qt5 / Ubuntu 18.04 environment that should be easy to fix.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. qmake Problem on Mac
    By Furkan in forum Qt Tools
    Replies: 7
    Last Post: 12th June 2012, 10:40
  2. QMake problem
    By adhit in forum Qt Programming
    Replies: 5
    Last Post: 13th April 2009, 11:53
  3. A problem about qmake in Qt 4.4
    By alban_gt in forum Qt Programming
    Replies: 3
    Last Post: 24th July 2008, 17:19
  4. I have a problem about qmake
    By wsinw in forum Installation and Deployment
    Replies: 3
    Last Post: 29th May 2007, 12:04
  5. QMake Problem
    By KyrinComa in forum Newbie
    Replies: 3
    Last Post: 17th May 2006, 12:36

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.