Crash compiling QxOrm library with MinGW on Windows

Forum for posting problems using QxOrm library

Crash compiling QxOrm library with MinGW on Windows

Postby qxorm » Thu Aug 28, 2014 10:56 am

Hello,

If you have a problem to build QxOrm library with MinGW on Windows (crash of process cc1plus.exe) : some versions of MinGW (4.8+) have a known issue with large precompiled header.
More details about this MinGW bug here : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56926
And here : http://stackoverflow.com/questions/1084 ... eader-file

Qt packages (Qt 5.3 and Qt 4.8.6) provide MinGW 4.8.2, and this version has the bug with large precompiled header !
If you can't change your compiler (MSVC++ or MinGW 4.7 for example), you can download a BETA version of QxOrm 1.3.1 here : http://www.qxorm.com/version/QxOrm_1.3.1_BETA_06.zip

This BETA version supports a new compilation option : _QX_NO_PRECOMPILED_HEADER
To enable this option, just open the config file QxOrm.pri, then uncomment the following line (at the end of the file) :
DEFINES += _QX_NO_PRECOMPILED_HEADER

This option disables automatically precompiled headers, and QxOrm works fine with MinGW 4.8.2.

Note : with this option enabled, compilation times should be longer !

Other note : this problem is only on Windows (with MinGW 4.8+), there is no problem on Linux or Mac OS X.

EDIT : here is a BETA version of QxEntityEditor (1.1.7 BETA 03) to download wich supports the new compilation option _QX_NO_PRECOMPILED_HEADER :
http://www.qxorm.com/version/QxEntityEd ... in_32b.zip
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am

Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 2 guests

cron