Results 1 to 3 of 3

Thread: Building Qt 4.3.4 on Win Vista & MinGW

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Post Building Qt 4.3.4 on Win Vista & MinGW

    Hi,

    I'm having a little problem building my Qt version on Windows Vista using MinGW.

    After configuring qt with configure -platform win32-g++
    and calling mingw32-make
    to build Qt, I get the following error(s):
    Qt Code:
    1. mingw32-make -f Makefile.Release
    2. mingw32-make[2]: Entering directory 'C:/Libs/Qt/4.3.4/src/tools/rcc'
    3. gcc -c -O2 -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -DQT_RCC -DQ
    4. T_LITE_UNICODE -DQT_NO_DATASTREAM -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_UNICODE
    5. TABLES -DQT_NO_LIBRARY -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT -DQT_NODLL -I".
    6. .\..\corelib\arch\generic" -I"..\..\..\include" -I"." -I"..\..\..\include\QtCore
    7. " -I"..\..\..\include\QtXml" -I"..\..\3rdparty\zlib" -I"." -I"..\..\..\mkspecs\w
    8. in32-g++" -o tmp\obj\release_shared\crc32.o ..\..\3rdparty\zlib\crc32.c
    9. In file included from ..\..\3rdparty\zlib\crc32.c:29:
    10. ..\..\3rdparty\zlib\/zutil.h:21:24: stddef.h: No such file or directory
    11. ..\..\3rdparty\zlib\/zutil.h:23:22: string.h: No such file or directory
    12. ..\..\3rdparty\zlib\/zutil.h:24:22: stdlib.h: No such file or directory
    13. ..\..\3rdparty\zlib\/zutil.h:38:23: errno.h: No such file or directory
    14. ..\..\3rdparty\zlib\crc32.c:36:24: limits.h: No such file or directory
    15. mingw32-make[2]: *** [tmp/obj/release_shared/crc32.o] Error 1
    16. mingw32-make[2]: Leaving directory 'C:/Libs/Qt/4.3.4/src/tools/rcc'
    17. mingw32-make[1]: *** [release] Error 2
    18. mingw32-make[1]: Leaving directory 'C:/Libs/Qt/4.3.4/src/tools/rcc'
    19. mingw32-make: *** [sub-rcc-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    Obviously stddef.h, string.h, stdlib.h, errno.h, limits.h (included in zutil.h) can't for some reason not beeing found, which is strange, because all files can be found in MinGW's default include path "...\MinGW\include".

    I'm not sure why gcc can't find those files, I tried editing "...\mkspecs\win32-g++\qmake.conf" and change
    Qt Code:
    1. QMAKE_INCDIR =
    To copy to clipboard, switch view to plain text mode 
    to
    Qt Code:
    1. QMAKE_INCDIR = C:\Libs\MinGW\include
    To copy to clipboard, switch view to plain text mode 
    which DID solve the above problem, but introduced another one. I'm getting a lot of errors, like:
    Qt Code:
    1. c:/Libs/MinGW/include/string.h:136: error: syntax error before "wcsxfrm"
    2. c:/Libs/MinGW/include/string.h:146: warning: type defaults to 'int' in declaration of 'wchar_t'
    3. c:/Libs/MinGW/include/string.h:146: error: syntax error before '*' token
    4. c:/Libs/MinGW/include/string.h:146: warning: type defaults to 'int' in declaration of '_wcsdup'
    5. c:/Libs/MinGW/include/string.h:146: warning: data definition has no type or storage class
    6. c:/Libs/MinGW/include/string.h:147: warning: type defaults to 'int' in declaration of 'wchar_t'
    7. c:/Libs/MinGW/include/string.h:147: error: syntax error before '*' token
    8. c:/Libs/MinGW/include/string.h:148: warning: type defaults to 'int' in declaration of 'wchar_t'
    To copy to clipboard, switch view to plain text mode 

    Anyone has an idea? (Yeah I know, stupid Windows user, I'm not building source code very often )

    I'm using the following Versions (qt-win-opensource-4.3.4-mingw.exe):
    - Qt 4.3.4 (opensource), installed to c:\Libs\Qt\4.3.4
    - MinGW 3.4.2 (packed with Qt version), installed to c:\Libs\MinGW\

    PATH: "...;C:\Libs\Qt\4.3.4\bin;C:\Libs\MinGW\bin;C:\Lib s\MinGW\libexec\gcc\mingw32\3.4.2"

    I DO have MS Visual Studio 2005 installed, but temporary removed it from PATH and VS80COMNTOOLS.
    Last edited by Sirow; 27th April 2008 at 21:32.

Similar Threads

  1. Failure to build Debug libs - Vista Mingw Qt 4.3.2
    By pmabie in forum Installation and Deployment
    Replies: 8
    Last Post: 15th October 2007, 18:04
  2. Failure when building QT on Windows with MinGW
    By sharon in forum Installation and Deployment
    Replies: 2
    Last Post: 23rd August 2007, 13:38

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
  •  
Qt is a trademark of The Qt Company.