Results 1 to 1 of 1

Thread: Compile qt 4.6.3 with mingw on windows - how to get rid of VS includes?

  1. #1

    Default Re: Compile qt 4.6.3 with mingw on windows - how to get rid of VS includes?

    Hi,
    I'm trying to compile qt no windows with mingw and gcc 4.4.0
    after

    configure -platform win32-g++
    mingw32-make

    got:
    D:\prywata\Qt\4.6.3>mingw32-make
    cd src\tools\bootstrap\ && mingw32-make -f Makefile
    mingw32-make[1]: Entering directory `D:/prywata/Qt/4.6.3/src/tools/bootstrap'
    mingw32-make -f Makefile.Release
    mingw32-make[2]: Entering directory `D:/prywata/Qt/4.6.3/src/tools/bootstrap'
    g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT
    _NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO
    _QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPAC
    E -DQT_NODLL -I"..\..\..\include" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtXml" -I"..\..\3rdparty\zlib" -I"c:\A
    PPS\VisualStudio\VC\include" -I"c:\APPS\VisualStudio\VC\PlatformSDK\Include" -I"..\..\..\mkspecs\win32-g++" -o tmp\obj\r
    elease_shared\qisciicodec.o ..\..\corelib\codecs\qisciicodec.cpp
    In file included from ..\..\..\include/QtCore/../../src/corelib/tools/qbytearray.h:48,
    from ..\..\..\include/QtCore/qbytearray.h:1,
    from ..\..\..\include/QtCore/../../src/corelib/tools/qstring.h:46,
    from ..\..\..\include/QtCore/qstring.h:1,
    from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcodec.h:45,
    from ..\..\..\include/QtCore/qtextcodec.h:1,
    from ..\..\corelib\codecs\/qisciicodec_p.h:56,
    from ..\..\corelib\codecs\qisciicodec.cpp:41:
    c:\APPS\VisualStudio\VC\include/string.h:140: warning: ignoring #pragma warning
    c:\APPS\VisualStudio\VC\include/string.h:141: warning: ignoring #pragma warning
    c:\APPS\VisualStudio\VC\include/string.h:144: warning: ignoring #pragma warning
    In file included from c:\APPS\VisualStudio\VC\include/yvals.h:327,
    from c:\APPS\VisualStudio\VC\include/xstddef:7,
    from c:\APPS\VisualStudio\VC\include/exception:16,
    from c:\APPS\VisualStudio\VC\include/new:6,
    from ..\..\..\include/QtCore/../../src/corelib/tools/qlist.h:54,
    from ..\..\..\include/QtCore/qlist.h:1,
    from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
    from ..\..\..\include/QtCore/qtextcodec.h:1,
    from ..\..\corelib\codecs\/qisciicodec_p.h:56,
    from ..\..\corelib\codecs\qisciicodec.cpp:41:
    c:\APPS\VisualStudio\VC\include/use_ansi.h:114: warning: ignoring #pragma comment
    In file included from c:\APPS\VisualStudio\VC\include/xstddef:7,
    from c:\APPS\VisualStudio\VC\include/exception:16,
    from c:\APPS\VisualStudio\VC\include/new:6,
    from ..\..\..\include/QtCore/../../src/corelib/tools/qlist.h:54,
    from ..\..\..\include/QtCore/qlist.h:1,
    from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
    from ..\..\..\include/QtCore/qtextcodec.h:1,
    from ..\..\corelib\codecs\/qisciicodec_p.h:56,
    from ..\..\corelib\codecs\qisciicodec.cpp:41:
    c:\APPS\VisualStudio\VC\include/yvals.h:525: warning: ignoring #pragma warning
    c:\APPS\VisualStudio\VC\include/yvals.h:526: warning: ignoring #pragma warning
    c:\APPS\VisualStudio\VC\include/yvals.h:761: warning: ignoring #pragma warning
    In file included from c:\APPS\VisualStudio\VC\include/stddef.h:22,
    from ..\..\..\include/QtCore/../../src/corelib/global/qglobal.h:45,
    from ..\..\..\include/QtCore/qglobal.h:1,
    from ..\..\..\include/QtCore/../../src/corelib/tools/qchar.h:45,
    from ..\..\..\include/QtCore/qchar.h:1,
    from ..\..\..\include/QtCore/../../src/corelib/tools/qstring.h:45,
    from ..\..\..\include/QtCore/qstring.h:1,
    from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcodec.h:45,
    from ..\..\..\include/QtCore/qtextcodec.h:1,
    from ..\..\corelib\codecs\/qisciicodec_p.h:56,
    from ..\..\corelib\codecs\qisciicodec.cpp:41:
    c:\APPS\VisualStudio\VC\include/crtdefs.h:472: error: redeclaration of C++ built-in type 'wchar_t'
    c:\APPS\VisualStudio\VC\include/crtdefs.h:521: error: '__int64' does not name a type
    c:\APPS\VisualStudio\VC\include/crtdefs.h:530: error: '__time64_t' does not name a type
    In file included from c:\APPS\VisualStudio\VC\include/xstddef:7,
    from c:\APPS\VisualStudio\VC\include/exception:16,
    from c:\APPS\VisualStudio\VC\include/new:6,
    from ..\..\..\include/QtCore/../../src/corelib/tools/qlist.h:54,
    from ..\..\..\include/QtCore/qlist.h:1,
    from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
    from ..\..\..\include/QtCore/qtextcodec.h:1,
    from ..\..\corelib\codecs\/qisciicodec_p.h:56,
    from ..\..\corelib\codecs\qisciicodec.cpp:41:
    c:\APPS\VisualStudio\VC\include/yvals.h:498: error: '__int64' does not name a type
    c:\APPS\VisualStudio\VC\include/yvals.h:499: error: '__int64' does not name a type
    c:\APPS\VisualStudio\VC\include/yvals.h:547: error: '__thiscall' does not name a type
    c:\APPS\VisualStudio\VC\include/yvals.h:548: error: '__thiscall' does not name a type
    c:\APPS\VisualStudio\VC\include/yvals.h:549: error: ISO C++ forbids declaration of '__thiscall' with no type
    c:\APPS\VisualStudio\VC\include/yvals.h:549: error: expected ';' before '~' token
    c:\APPS\VisualStudio\VC\include/yvals.h:698: error: '__thiscall' does not name a type
    c:\APPS\VisualStudio\VC\include/yvals.h:699: error: ISO C++ forbids declaration of '__thiscall' with no type
    c:\APPS\VisualStudio\VC\include/yvals.h:699: error: expected ';' before '~' token
    c:\APPS\VisualStudio\VC\include/yvals.h:700: error: variable or field '__thiscall' declared void
    c:\APPS\VisualStudio\VC\include/yvals.h:700: error: expected ';' before '_Lock'
    c:\APPS\VisualStudio\VC\include/yvals.h:701: error: variable or field '__thiscall' declared void
    c:\APPS\VisualStudio\VC\include/yvals.h:701: error: expected ';' before '_Unlock'
    c:\APPS\VisualStudio\VC\include/yvals.h:742: error: '__thiscall' does not name a type
    c:\APPS\VisualStudio\VC\include/yvals.h:743: error: ISO C++ forbids declaration of '__thiscall' with no type
    c:\APPS\VisualStudio\VC\include/yvals.h:743: error: expected ';' before '~' token
    In file included from c:\APPS\VisualStudio\VC\include/exception:33,
    from c:\APPS\VisualStudio\VC\include/new:6,
    from ..\..\..\include/QtCore/../../src/corelib/tools/qlist.h:54,
    from ..\..\..\include/QtCore/qlist.h:1,
    from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
    from ..\..\..\include/QtCore/qtextcodec.h:1,
    from ..\..\corelib\codecs\/qisciicodec_p.h:56,
    from ..\..\corelib\codecs\qisciicodec.cpp:41:
    c:\APPS\VisualStudio\VC\include/eh.h:61: error: ISO C++ forbids declaration of 'type_info' with no type
    c:\APPS\VisualStudio\VC\include/eh.h:61: error: expected ',' or '...' before '&' token
    In file included from c:\APPS\VisualStudio\VC\include/exception:34,
    from c:\APPS\VisualStudio\VC\include/new:6,
    from ..\..\..\include/QtCore/../../src/corelib/tools/qlist.h:54,
    from ..\..\..\include/QtCore/qlist.h:1,
    from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
    from ..\..\..\include/QtCore/qtextcodec.h:1,
    from ..\..\corelib\codecs\/qisciicodec_p.h:56,
    from ..\..\corelib\codecs\qisciicodec.cpp:41:
    c:\APPS\VisualStudio\VC\include/malloc.h:194: error: '_ALLOCA_S_MARKER_SIZE' was not declared in this scope
    c:\APPS\VisualStudio\VC\include/malloc.h: In function 'void* _MarkAllocaS(void*, unsigned int)':
    c:\APPS\VisualStudio\VC\include/malloc.h:202: error: '_ALLOCA_S_MARKER_SIZE' was not declared in this scope
    c:\APPS\VisualStudio\VC\include/malloc.h: In function 'void _freea(void*)':
    c:\APPS\VisualStudio\VC\include/malloc.h:236: error: '_ALLOCA_S_MARKER_SIZE' was not declared in this scope
    In file included from ..\..\..\include/QtCore/../../src/corelib/tools/qlist.h:54,
    from ..\..\..\include/QtCore/qlist.h:1,
    from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
    from ..\..\..\include/QtCore/qtextcodec.h:1,
    from ..\..\corelib\codecs\/qisciicodec_p.h:56,
    from ..\..\corelib\codecs\qisciicodec.cpp:41:
    c:\APPS\VisualStudio\VC\include/new: At global scope:
    c:\APPS\VisualStudio\VC\include/new:54: error: expected type-specifier before '...' token
    c:\APPS\VisualStudio\VC\include/new:83: error: expected type-specifier before '...' token
    mingw32-make[2]: *** [tmp/obj/release_shared/qisciicodec.o] Error 1
    mingw32-make[2]: Leaving directory `D:/prywata/Qt/4.6.3/src/tools/bootstrap'
    mingw32-make[1]: *** [release] Error 2
    mingw32-make[1]: Leaving directory `D:/prywata/Qt/4.6.3/src/tools/bootstrap'
    mingw32-make: *** [sub-tools-bootstrap-make_default-ordered] Error 2

    D:\prywata\Qt\4.6.3>



    Could you tell me why qt tries to include VS libs and how to get rid of it to make compilation successful?

    Ryczypisk


    Added after 1 45 minutes:


    I think the problem was in environment variables:

    1. LIB
    2. INCLUDE

    after clean it configuration looks better and I'm compiling QT from 15 minutes :-) ...
    Last edited by Ryczypisk; 28th October 2010 at 15:14.

Similar Threads

  1. Qt Creator problem with Mingw includes
    By doijunior in forum General Programming
    Replies: 3
    Last Post: 23rd July 2011, 01:58
  2. Replies: 15
    Last Post: 24th October 2010, 15:29
  3. qt eclipse integration error with mingw includes
    By hannesvdc in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 21:41
  4. Replies: 4
    Last Post: 29th December 2007, 01:27
  5. compile with minGW ??
    By eric in forum Qt Programming
    Replies: 4
    Last Post: 8th November 2007, 00:41

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.