recipe xxx failed when buid QxORM bq qt 5.2.1

Forum for posting problems using QxOrm library

recipe xxx failed when buid QxORM bq qt 5.2.1

Postby ledunkang » Sun Mar 30, 2014 5:28 pm

I tried to build QxORM with qt5.2.1/qtcreator 3.01.
QxORM.pri has been modified to correct boost include and lib path.
I got the following build error:
==================================
C:/Qt/Qt5.2.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'E:/build-QxOrm-Desktop_Qt_5_2_1_MinGW_32bit-Debug'
g++ -c -include debug\QxPrecompiled.h -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -D_QX_QT_GUI_DEPENDENCY -D_QX_SERIALIZE_BINARY_ENABLED -D_QX_SERIALIZE_XML_ENABLED -D_QX_MODE_DEBUG -D_QX_BUILDING_QX_ORM -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\QxOrm -I"..\QxOrm\include" -I"..\boost_1_55_0\b2014032809\include\boost-1_55" -I"..\boost_1_55_0\b2014032809\include\boost-1_55" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtWidgets" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtSql" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtXml" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtNetwork" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtGui" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtCore" -I"qt\moc" -I"." -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\mkspecs\win32-g++" -o debug\bool_array.o ..\QxOrm\src\QxMemLeak\bool_array.cpp

Makefile.Debug:7009: recipe for target 'debug/bool_array.o' failed
mingw32-make[1]: *** [debug/bool_array.o] Error 1
mingw32-make[1]: Leaving directory 'E:/build-QxOrm-Desktop_Qt_5_2_1_MinGW_32bit-Debug'
makefile:34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
===========================================
I guess this error is related to precompiled header coz qxorm lib can be built when I disable precompiled header in qxorm.pro and qxorm.pri.
but what i need is to build qxorm with precompiled header enabled.
Any help will be appreciated!
ledunkang
 
Posts: 5
Joined: Sun Mar 30, 2014 4:36 pm

Re: recipe xxx failed when buid QxORM bq qt 5.2.1

Postby qxorm » Mon Mar 31, 2014 7:22 am

Hi,

I guess this error is related to precompiled header coz qxorm lib can be built when I disable precompiled header in qxorm.pro and qxorm.pri.

Yes, you're right, your error is due to precompiled header.
But this is not a problem with QxOrm library but with MinGW !
This is a known issue of MinGW 4.8+ (and MinGW 64) and large precompiled header, more details here :
- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56926
- http://stackoverflow.com/questions/1084 ... eader-file

FYI, there is no problem until MinGW GCC 4.7.
Anyway, on Windows, if you can, I recommend to use MSVC++ instead of MinGW, a tutorial is available here :
http://www.qxorm.com/qxorm_en/tutorial_3.html
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am

Re: recipe xxx failed when buid QxORM bq qt 5.2.1

Postby ledunkang » Mon Apr 14, 2014 2:05 pm

Thanks. I've compiled QxOrm with precomiled-header disabled.
BTW, there is something need to be fixed in qxorm.pri for qmake, that is,
To replace
QMAKE_CXXFLAGS = -export-all-symbols

by
QMAKE_CXXFLAGS = -Wl,-export-all-symbols

or qmake fails to generate correct g++ parameters in Makefile.
ledunkang
 
Posts: 5
Joined: Sun Mar 30, 2014 4:36 pm

Re: recipe xxx failed when buid QxORM bq qt 5.2.1

Postby qxorm » Tue Apr 15, 2014 11:07 am

Thanks. I've compiled QxOrm with precomiled-header disabled.

I don't recommand it because of very lonnggggg compilation times.
But if you can't change your MinGW version (or even better use MSVC++), then OK it will work but with long compilation times.
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 8 guests

cron