I've successfully built Qt 4.8, Boost 1.52, QxOrm 1.2.4 using MinGW-w64 targeting 64-bit Windows. Now the problem is that I cannot build any example provided by QxOrm. For instance, lets take "qxBlog":
- Code: Select all
D:\Users\Haroogan\Projects\qxBlog>qmake
D:\Users\Haroogan\Projects\qxBlog>make release
make -f Makefile.Release
make[1]: Entering directory `/d/Users/Haroogan/Projects/qxBlog'
g++ -x c++-header -c -pipe -O3 -fomit-frame-pointer -funroll-loops -flto -march=native -frtti -fexceptions -mthreads -Wall -Wextra -DUNICODE -DQT_LARGEFILE_SUPPORT -DNDEBUG -D_BUILDING_QX_BLOG -DQT_DLL -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
-DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I'../../../../Applications/Qt/x64/include/QtCore' -I'../../../../Applications/Qt/x64/include/QtNetwork' -I'../../../../Applications/Qt/x64/include/QtGui' -I'../../../../Applications/Qt/x64/include/QtXml' -I'../../../../Applications/Qt/x64/include/QtSql' -I'../../../../Applications/Qt/x64/include' -I'include' -I'../../../../Applications/Boost/include' -I'../../../../Applications/QxOrm/include' -I'../../../../Applications/Qt/x64/include/ActiveQt' -I'qt/moc' -I'../../../../Applications/Qt/x64/mkspecs/default' -o release/precompiled.h.gch/c++ include/precompiled.h
In file included from ../../../../Applications/Qt/x64/include/QtCore/qglobal.h:62:0,
from ../../../../Applications/QxOrm/include/QxPrecompiled.h:50,
from ../../../../Applications/QxOrm/include/QxOrm.h:50,
from include/precompiled.h:4:
../../../../Applications/Qt/x64/include/QtCore/qconfig.h:41:0: warning: "QT_LARGEFILE_SUPPORT" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
In file included from ../../../../Applications/Boost/include/boost/ptr_container/ptr_map_adapter.hpp:19:0,
from ../../../../Applications/Boost/include/boost/ptr_container/detail/serialize_ptr_map_adapter.hpp:9,
from ../../../../Applications/Boost/include/boost/ptr_container/serialize_ptr_map.hpp:9,
from ../../../../Applications/Boost/include/boost/ptr_container/serialize_ptr_container.hpp:12,
from ../../../../Applications/QxOrm/include/QxSerialize/QxSerialize.h:63,
from ../../../../Applications/QxOrm/include/QxFactory/../../inl/QxFactory/QxFactory.inl:32,
from ../../../../Applications/QxOrm/include/QxFactory/QxFactory.h:110,
from ../../../../Applications/QxOrm/include/QxOrm.h:82,
from include/precompiled.h:4:
../../../../Applications/Boost/include/boost/ptr_container/detail/map_iterator.hpp:52:48: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
g++ -c -include release/precompiled.h -pipe -O3 -fomit-frame-pointer -funroll-loops -flto -march=native -frtti -fexceptions -mthreads -Wall -Wextra -DUNICODE -DQT_LARGEFILE_SUPPORT -DNDEBUG -D_BUILDING_QX_BLOG -DQT_DLL -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I'../../../../Applications/Qt/x64/include/QtCore' -I'../../../../Applications/Qt/x64/include/QtNetwork' -I'../../../../Applications/Qt/x64/include/QtGui'
-I'../../../../Applications/Qt/x64/include/QtXml' -I'../../../../Applications/Qt/x64/include/QtSql' -I'../../../../Applications/Qt/x64/include' -I'include' -I'../../../../Applications/Boost/include' -I'../../../../Applications/QxOrm/include' -I'../../../../Applications/Qt/x64/include/ActiveQt' -I'qt/moc' -I'../../../../Applications/Qt/x64/mkspecs/default' -o release/author.o src/author.cpp
make[1]: *** [release/author.o] Error 1
make[1]: Leaving directory `/d/Users/Haroogan/Projects/qxBlog'
make: *** [release] Error 2
Now, what actually happens is: a dialog window pops up with an error "cc1plus.exe has stopped working". "cc1plus" as you probably know is a part of GCC (MinGW in my case). What is very suspicious is that after such build there is a 153 MB file called "c++" in "<project root>/release/precompiled.h.gch/" directory! I'm completely sure that this failure is somehow related to that suspicious file, or is it intended behavior? Anyway, I need some help, especially from QxOrm developers to resolve this problem.
Thank you in advance. Regards.