Results 1 to 4 of 4

Thread: Alternative Compiler

  1. #1
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Alternative Compiler

    I have been developing an application on Red Hat Linux using the commerical version of Qt4. When I first developed the user interfaces I used g++ along with qmake. However, I now must integrate my interfaces with code generated 10+ years ago using Fortran (Sun f77) and C (Sun cc). We have purchased new compilers (Portland Group pgCC, pgcc, pgf77) and are required to use these compilers (please dont ask why...I do not know). My interfaces compile fine when using QMake and g++, but I get lots of linker errors when I modify the generated Makefile (from qmake) to use the PG compilers. Does Qt support any other X11 compilers other than the opensource gcc/g++? Is there any documentation on creating your own makefile (with adding moc, no uic needed)? I have searched the posts on here, but could not find anything. Thanks!.

    UPDATE: I suppose I should clarify the use of the Fortran code. The Fortran code is being called from within the C code directly, and is not a "stand alone" app (there is no main). All this works with the PG compilers, just not the Qt portion.
    Last edited by Rayven; 25th May 2006 at 19:52.

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

    Default Re: Alternative Compiler

    pgcc should be supported, at least I see files for it in qmake specs directory.

    Try running qmake with -spec /path/to/qtdir/mkspec/linux-pgcc parameter. Alternatively you can set the QMAKESPEC environment variable to the path of linux-pgcc directory in your Qt installation.

  3. The following user says thank you to wysota for this useful post:

    Rayven (25th May 2006)

  4. #3
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Alternative Compiler

    This looks like the solution. However, when I run make, all the Qt function calls cannot be found such as lbl->setBuddy() etc. Is this a problem with using #include <QLabel> instead of #include <QLabel.h>

    Thanks wysota for the VERY quick response.

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

    Default Re: Alternative Compiler

    You might need to recompile Qt with the new compiler.

Similar Threads

  1. 4.1.0 qmake compiler error - Solaris
    By Novahokie in forum Installation and Deployment
    Replies: 6
    Last Post: 19th April 2007, 18:49
  2. alternative to QMessageBox
    By incapacitant in forum Newbie
    Replies: 20
    Last Post: 24th May 2006, 14:49
  3. Define compiler in qmake
    By philski in forum Newbie
    Replies: 3
    Last Post: 24th April 2006, 21:47
  4. lQtGuid4 error - Compiler setting problem
    By Kapil in forum Installation and Deployment
    Replies: 7
    Last Post: 10th February 2006, 09:30
  5. alternative to COM??
    By TheKedge in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2006, 15:02

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.