c++ - compiling qt 4.7.3 on mingw with gcc 4.6 -
i decided start working on new c++ project , wanted use latest version of qt framework, 4.7.3. decided use gcc 4.6 found [here] (http://www.equation.com/servlet/equation.cmd?fa=fortran) . compiler seems compile simple c++ files using new c++0x standard.
the problem i'm having, can't seem able compile qt 4.7.3 on mingw gcc 4.6. keep getting following error:
cd src\corelib\ && mingw32-make -f makefile mingw32-make[1]: entering directory `d:/__dev/qt/4.7.3/src/corelib' mingw32-make -f makefile.debug mingw32-make[2]: entering directory `d:/__dev/qt/4.7.3/src/corelib' d:\__dev\qt\4.7.3\bin\moc.exe -dqt_shared -dqt_thread_support -dunicode -dqt_largefile_support -dqt_build_core_lib -dqt_no_using_n amespace -dqt_makedll -dqt_ascii_cast_warnings -dqt_moc_compat -dqt_use_fast_operator_plus -dqt_use_fast_concatenation -d_use_math _defines -dqlibraryinfo_epocroot -dhb_export=q_core_export -dqt_dll -dqt_have_mmx -dqt_have_3dnow -dqt_have_sse -dqt_have_mmxext - dqt_have_sse2 -i"..\..\include" -i"..\..\include\qtcore" -i"tmp\rcc\debug_shared" -i"tmp" -i"global" -i"..\..\tools\shared" -i"..\ 3rdparty\zlib" -i"..\3rdparty\harfbuzz\src" -i"..\3rdparty\md5" -i"..\3rdparty\md4" -i"..\..\include\activeqt" -i"tmp\moc\debug_sh ared" -i"..\..\mkspecs\win32-g++" -d__gnuc__ -dwin32 animation\qabstractanimation.h -o tmp\moc\debug_shared\moc_qabstractanimation .cpp g++ -c -include tmp\obj\debug_shared\qt_pch.h -g -wall -frtti -fexceptions -mthreads -dqt_shared -dqt_thread_support -dunicode -dq t_largefile_support -dqt_build_core_lib -dqt_no_using_namespace -dqt_makedll -dqt_ascii_cast_warnings -dqt_moc_compat -dqt_use_fas t_operator_plus -dqt_use_fast_concatenation -d_use_math_defines -dqlibraryinfo_epocroot -dhb_export=q_core_export -dqt_dll -dqt_ha ve_mmx -dqt_have_3dnow -dqt_have_sse -dqt_have_mmxext -dqt_have_sse2 -i"..\..\include" -i"..\..\include\qtcore" -i"tmp\rcc\debug_s hared" -i"tmp" -i"global" -i"..\..\tools\shared" -i"..\3rdparty\zlib" -i"..\3rdparty\harfbuzz\src" -i"..\3rdparty\md5" -i"..\3rdpa rty\md4" -i"..\..\include\activeqt" -i"tmp\moc\debug_shared" -i"..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\qabstractanimatio n.o animation\qabstractanimation.cpp animation\qabstractanimation.cpp:896:38: fatal error: moc_qabstractanimation.cpp: no such file or directory compilation terminated. mingw32-make[2]: *** [tmp/obj/debug_shared/qabstractanimation.o] error 1 mingw32-make[2]: leaving directory `d:/__dev/qt/4.7.3/src/corelib' mingw32-make[1]: *** [debug-all] error 2 mingw32-make[1]: leaving directory `d:/__dev/qt/4.7.3/src/corelib' mingw32-make: *** [sub-corelib-make_default-ordered] error 2
removing line doesn't help, cause it'll fail @ file. i'm kinda stuck though, because don't know why can't find file.
i removed source code had, , installed windows version of qt 4.7.3, can't compile program gcc 4.6, undefined methods (probably because libs compiled gcc 4.4, or think). decided rebuild qt gcc 4.6. following errors:
g++ -c -include tmp\obj\debug_shared\qt_pch.h -g -wall -frtti -fexceptions -mthreads -dqt_shared -dqt_thread_support -dunicode -dq t_largefile_support -dqt_build_core_lib -dqt_no_using_namespace -dqt_makedll -dqt_ascii_cast_warnings -dqt_moc_compat -dqt_use_fas t_operator_plus -dqt_use_fast_concatenation -d_use_math_defines -dqlibraryinfo_epocroot -dhb_export=q_core_export -dqt_dll -dqt_ha ve_mmx -dqt_have_3dnow -dqt_have_sse -dqt_have_mmxext -dqt_have_sse2 -i"..\..\include" -i"..\..\include\qtcore" -i"tmp\rcc\debug_s hared" -i"tmp" -i"global" -i"..\..\tools\shared" -i"..\3rdparty\zlib" -i"..\3rdparty\harfbuzz\src" -i"..\3rdparty\md5" -i"..\3rdpa rty\md4" -i"..\..\include\activeqt" -i"tmp\moc\debug_shared" -i"..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\moc_qnamespace.o tmp\moc\debug_shared\moc_qnamespace.cpp tmp\moc\debug_shared\moc_qnamespace.cpp:196:16: error: 'wmousenomask' not member of 'qt' tmp\moc\debug_shared\moc_qnamespace.cpp:197:16: error: 'wdestructiveclose' not member of 'qt' [the list continues] tmp\moc\debug_shared\moc_qnamespace.cpp:1022:17: error: 'palettelinkvisited' not member of 'qt' tmp\moc\debug_shared\moc_qnamespace.cpp:1023:17: error: 'x11parentrelative' not member of 'qt' make[2]: *** [tmp/obj/debug_shared/moc_qnamespace.o] error 1 make[2]: leaving directory `d:/__dev/qt/4.7.3/src/corelib' make[1]: *** [debug-all] error 2 make[1]: leaving directory `d:/__dev/qt/4.7.3/src/corelib' make: *** [sub-corelib-make_default-ordered] error 2
does qabstractanimation have qobject macro in declaration? moc.exe may not generating file moc_qabstractanimation.cpp because doesn't see macro.
Comments
Post a Comment