Results 1 to 6 of 6

Thread: QT MAKE ERROR G++3 command not recognized.

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    4

    QT MAKE ERROR G++3 command not recognized.

    I do my
    ./configure -release -shared -gif -xft -sm -system-libmng -system-zlib -system-libpng -system-jpeg -no-g++-exceptions -thread

    and then i make and i get this error
    G++3 command not found
    ***[mocgen.o] Error 127
    Leaving directory /usr/local/qt-2.3.2/src/mod
    *** [src-moc] Error 2
    Leaving directory /usr/local/qt-2.3.2
    *** [init] Error 2

    I downloaded all of the bins mentioned, some even further ahead, ie gcc-3.1-0.10 released lately, couldnt find the exact ones Zaphod was talking about. Is there a way i could change G++3 to G++
    I thought i read it somewhere but looking through it again, i couldn't find anything

    Thanks,
    RedRover

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    42

    Re: QT MAKE ERROR G++3 command not recognized.

    Originally posted by RedRover
    and then i make and i get this error
    G++3 command not found
    Try lower-case 'g'


  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    18
    do a ls in /usr/bin/ to see the name of your gcc compiler. It appears that if your using a Red Hat type linux, then it should be gcc3, if your using a Debian system, it is gcc-3.0.

    Good luck

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    4

    ..

    The name is gcc and g++ no 3 after it
    but when i do a gcc -v or g++ -v it says 3.1 so its past what it needs
    When i run make to build qt-2.3.2
    it says cannot find g++3 it is an unknown command, because, it is, it should be g++ or gcc how do i do it so when i run make it looks for gcc and g++ instead of gcc3 and g++3?


    RedRover


    Ehm, I renamed them to gcc3 and g++3 for the time being just to build QT should i leave it like that or change it back?
    Last edited by RedRover; 12-26-2001 at 01:55 PM.

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    18
    Did you by anychance make changes to /usr/local/qt/configs/linux-g++-shared as a different thread has suggested? That file contains the links to the compilers you will use. Check lines lines 3, 4, 35, and/or 59 to make sure they use gcc and g++ and not G++3.

    Good luck

  6. #6
    Registered User
    Join Date
    Dec 2001
    Posts
    13

    QT 2.3.2 patch for gcc3

    the patch for qt assumes that the command for gcc is just gcc3 and g++3 instead of looking at the pointers. Go into your /usr/bin and make a link to the correct command.

    ln -symbolic gcc gcc3
    ln -symbolic g++ g++3
    Override~!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On