Results 1 to 4 of 4

Thread: Fatal Error when compiling Qt4.8.5 using MinGW 4.7.2

  1. #1
    Join Date
    Nov 2009
    Posts
    61
    Thanks
    9
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Fatal Error when compiling Qt4.8.5 using MinGW 4.7.2

    Hi

    I've got a simple question. I decided to compile new Qt4.8.5 using the newest version MinGW GCC 4.7.2 and I've got fatal error on the way. This is the configure command:

    Qt Code:
    1. configure -debug-and-release -opensource -shared -platform win32-g++ -plugin-sql-mysql -I C:\ApacheMysqlPhp\Mysql\include -L C:\ApacheMysqlPhp\Mysql\lib -L C:\ApacheMysqlPhp\Mysql\lib\opt -plugin-sql-odbc -no-qt3support -plugin-sql-sqlite -developer-build
    To copy to clipboard, switch view to plain text mode 

    and then I've got the error related to windres:

    Qt Code:
    1. windres: can't open file `page:': Invalid argument
    To copy to clipboard, switch view to plain text mode 

    I never use windres. Is the error related to a wrong version of GCC compiler? I read for Qt4.8.x GCC supposed to be GCC of version 4.4 with w32api.h v3.13. I followed exact procedure from last time I compiled 4.8.3 and everything went well, then. This time I've got this error! Any help will be much appreciated.

  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: Fatal Error when compiling Qt4.8.5 using MinGW 4.7.2

    windres is MingW's Windows resource compiler and will be used to do things like compile version information, manifests, or icons into Windows DLLs or EXEs. It looks like it is being fed a dud command line but we cannot see that command (you can).

  3. #3
    Join Date
    Nov 2009
    Posts
    61
    Thanks
    9
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Fatal Error when compiling Qt4.8.5 using MinGW 4.7.2

    Well

    The reason I decided to compile Qt4.8.5 from sources is that there's no binaries that would work with the newest version MinGW 4.7.2. I was told I'd have 2 ways to make it work: either install MinGW 4.4 which failed because there's no earlier package than 4.5 to install from MinGW SourceForge or compile Qt4.8.5 from sources using MinGW 4.7.2. The second approach also failed causing Fatal Error. I have no such knowledge to understand this sort of error. I followed the procedure from documentary. This is probably this far I can go.

    Thanks for explanation on Windres but it still does not say if the problem is related to wrong compiler. Perhaps I am not able to compile Qt4.8.5 at this stage.

  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: Fatal Error when compiling Qt4.8.5 using MinGW 4.7.2

    I have been able to compile Qt 4.8.4 with Gcc 4.6.2, which I think is available in the MingW repo. Never built it with gcc 4.7. Gcc 4.7 changed the ABI (not that this should break compilation) but gcc 4.6 binaries should be compatible with earlier 4.4 binaries.

    There were a few Qt 4.8.5 cannot build bugs logged when I looked yesterday...this might be another.

Similar Threads

  1. python qt4 unknown fatal error
    By izghitu in forum Newbie
    Replies: 0
    Last Post: 25th January 2011, 19:54
  2. fatal error C1001: An internal error has occurred in the compiler
    By noodles in forum Installation and Deployment
    Replies: 0
    Last Post: 12th August 2010, 11:24
  3. qtmaind.lib fatal error LNK1103
    By fistroman in forum Installation and Deployment
    Replies: 2
    Last Post: 5th May 2010, 02:47
  4. Fatal error ..!!!!
    By joseph in forum Qt Programming
    Replies: 9
    Last Post: 13th November 2007, 14:05
  5. QT4 beginner Fatal Error
    By Remyfr in forum Installation and Deployment
    Replies: 3
    Last Post: 11th March 2006, 01:48

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.