+ Reply to Thread
Results 1 to 3 of 3

Thread: Unable to build Qt 4.4.0 debug libs with MinGW (pch error)

  1. #1
    Join Date
    May 2006
    Location
    Stuttgart, Germany
    Posts
    22
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Unable to build Qt 4.4.0 debug libs with MinGW (pch error)

    Hi,

    I'm having problems to build Qt 4.4.0 Debug Libraries with MinGW g++ compiler version 3.4.5 (stable). When selecting "Qt 4.4.0 (Build Debug Libraries)" from start menu, compiling stops in process of compiling QtWebkit debug library:

    Qt Code:
    1. [...]
    2. (cd D:\Programme\Qt\4.4.0-MinGW\src\3rdparty\webkit\WebCore && mingw32-make -f M
    3. akefile debug)
    4. mingw32-make[1]: Entering directory `D:/Programme/Qt/4.4.0-MinGW/src/3rdparty/we
    5. bkit/WebCore'
    6. mingw32-make -f Makefile.Debug
    7. mingw32-make[2]: Entering directory `D:/Programme/Qt/4.4.0-MinGW/src/3rdparty/we
    8. bkit/WebCore'
    9. g++ -c -include tmp\obj\debug_shared\WebKit_pch.h -Wreturn-type -fno-strict-alia
    10. sing -g -frtti -fexceptions -mthreads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE
    11. -DQT_LARGEFILE_SUPPORT -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_MAKED
    12. LL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT
    13. -D_USE_MATH_DEFINES -DBUILD_WEBKIT -DENABLE_ICONDATABASE=0 -DENABLE_XPATH=1 -DEN
    14. ABLE_SVG=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -
    15. DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I"..\..\..\..\include\QtCor
    16. e" -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtNetwork" -I"..\..\..\
    17. ..\include\QtNetwork" -I"..\..\..\..\include\QtGui" -I"..\..\..\..\include\QtGui
    18. " -I"..\..\..\..\include" -I"..\WebKit\qt\Api" -I"..\JavaScriptCore" -I"..\JavaS
    19. criptCore\kjs" -I"..\JavaScriptCore\bindings" -I"..\JavaScriptCore\bindings\c" -
    20. I"..\JavaScriptCore\wtf" -I"..\JavaScriptCore\ForwardingHeaders" -I"." -I"Forwar
    21. dingHeaders" -I"platform" -I"platform\network" -I"platform\graphics" -I"loader"
    22. -I"page" -I"css" -I"dom" -I"bridge" -I"editing" -I"rendering" -I"history" -I"xml
    23. " -I"html" -I"plugins" -I"..\..\..\..\include\QtWebKit" -I"tmp\rcc\debug_shared"
    24. -I"tmp" -I"generated" -I"tmp" -I"..\JavaScriptCore" -I"..\JavaScriptCore\kjs" -
    25. I"..\JavaScriptCore\bindings" -I"..\JavaScriptCore\bindings\c" -I"..\JavaScriptC
    26. ore\wtf" -I"..\JavaScriptCore\bindings\qt" -I"..\JavaScriptCore\pcre" -I"d:\Prog
    27. ramme\Qt\4.4.0-MinGW\src\3rdparty\webkit\WebKitBuild\Debug\JavaScriptCore\kjs\tm
    28. p" -I"platform\qt" -I"platform\network\qt" -I"platform\graphics\qt" -I"platform\
    29. graphics\svg\qt" -I"loader\qt" -I"page\qt" -I"..\WebKit\qt\WebCoreSupport" -I"..
    30. \WebKit\qt\Api" -I"." -I"ForwardingHeaders" -I"..\..\webkit" -I"..\JavaScriptCor
    31. e\kjs" -I"..\JavaScriptCore\bindings" -I"platform" -I"platform\network" -I"platf
    32. orm\graphics" -I"platform\graphics\svg" -I"platform\graphics\svg\filters" -I"loa
    33. der" -I"loader\icon" -I"css" -I"dom" -I"page" -I"bridge" -I"editing" -I"renderin
    34. g" -I"history" -I"xml" -I"html" -I"bindings\js" -I"ksvg2" -I"ksvg2\css" -I"ksvg2
    35. \svg" -I"ksvg2\misc" -I"ksvg2\events" -I"platform\image-decoders" -I"d:\Programm
    36. e\Qt\4.4.0-MinGW\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\..\..
    37. \mkspecs\win32-g++" -o tmp\obj\debug_shared\runtime.o ..\JavaScriptCore\bindings
    38. \runtime.cpp
    39. cc1plus.exe: tmp\obj\debug_shared\WebKit_pch.h: No such file or directory
    40. cc1plus.exe: one or more PCH files were found, but they were invalid
    41. cc1plus.exe: use -Winvalid-pch for more information
    42. mingw32-make[2]: *** [tmp/obj/debug_shared/runtime.o] Error 1
    43. mingw32-make[2]: Leaving directory `D:/Programme/Qt/4.4.0-MinGW/src/3rdparty/web
    44. kit/WebCore'
    45. mingw32-make[1]: *** [debug] Error 2
    46. mingw32-make[1]: Leaving directory `D:/Programme/Qt/4.4.0-MinGW/src/3rdparty/web
    47. kit/WebCore'
    48. mingw32-make: *** [debug-D__Programme_Qt_4_4_0_MinGW_src_3rdparty_webkit_WebCore
    49. ] Error 2
    50. D:\Programme\Qt\4.4.0-MinGW\src>
    To copy to clipboard, switch view to plain text mode 

    MinGW is pre-installed in
    D:\Programme\MinGW
    , version of g++ compiler is:
    Qt Code:
    1. D:\Programme\Qt\4.3.5-MinGW>g++ -v
    2. Reading specs from D:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs
    3. Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --wi
    4. th-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --dis
    5. able-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --d
    6. isable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --with
    7. out-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enabl
    8. e-hash-synchronization --enable-libstdcxx-debug
    9. Thread model: win32
    10. gcc version 3.4.5 (mingw-vista special r3)
    11. D:\Programme\Qt\4.3.5-MinGW>
    To copy to clipboard, switch view to plain text mode 

    Is this a known bug, or is compiler version too old for Qt 4.4.0?

    Thanks for any hints,
    AlGaN

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,507 Times in 1,384 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Unable to build Qt 4.4.0 debug libs with MinGW (pch error)

    Try to comment out the following line in D:/Programme/Qt/4.4.0-MinGW/src/3rdparty/webkit/WebCore/WebCore.pro:
    Qt Code:
    1. #PRECOMPILED_HEADER = $$PWD/../WebKit/qt/WebKit_pch.h
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    AlGaN (7th June 2008)

  4. #3
    Join Date
    May 2006
    Location
    Stuttgart, Germany
    Posts
    22
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Unable to build Qt 4.4.0 debug libs with MinGW (pch error)

    Hi jpn,

    thanks, that did the trick

    AlGaN

+ Reply to Thread

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  5. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19

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