2012/5/11 Kai Tietz <[email protected]>
> 2012/5/11 MARTIN Pierre <[email protected]>:
> > The last toolchain i have downloaded is the one from TDM's. i'm trying
> to compile Qt 4.8.1 with it, and it fails where SeZero's build was
> successfull.
> > The error message i get is when compiling QMake (Which takes place in
> the ./configure part):
> >
> > Creating qmake. Please wait...
> > g++ -c -o project.o -DQMAKE_OPENSOURCE_EDITION -g -I. -Igenerators
> -Igenerators/unix -Igenerators/win32 -Igenerators/ma
> > c -Igenerators/symbian -Igenerators/integrity
> -I/QtSDK/Desktop/Qt/4.8.1/i686-w64-mingw32/include -I/QtSDK/Desktop/Qt/4.8
> > .1/i686-w64-mingw32/include/QtCore
> -I/QtSDK/Desktop/Qt/4.8.1/i686-w64-mingw32/src/corelib/global
> -I/QtSDK/Desktop/Qt/4.8
> > .1/i686-w64-mingw32/src/corelib/xml
> -I/QtSDK/QtSources/4.8.1/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE
> -DQT_BOOTSTRAPPE
> > D -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES
> -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/QtSD
> > K/QtSources/4.8.1/mkspecs/win32-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD
> -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DEPRE
> > CATED project.cpp
> > project.cpp: In member function 'QStringList& QMakeProject::values(const
> QString&, QMap<QString, QStringList>&)':
> > project.cpp:3062:51: error: cannot convert 'wchar_t*' to 'LPSTR {aka
> char*}' for argument '1' to 'BOOL GetComputerNameA(
> > LPSTR, PDWORD)'
> > make.exe: *** [project.o] Error 1
> >
> > Isn't that related to the encoding selected for the Win32 API? Wouldn't
> that mean that the wrong version of the GetComputerName function is being
> resolved (GetComputerNameA instead of GetComputerNameW)? As stated on the
> MinGW-w64 trac wiki, TDM seems to be providing the easiest to use
> toolchains, but are they ready to be used once installed? After installing
> it, i modified the MSYS fstab so /mingw points to the TDM's one, then i
> cranked up and tried to compile Qt again... Maybe there is some extra steps
> with this toolchain version?
> >
> > Thanks,
> > Pierre.
>
> Hmm, it might be that TDM builds toolchains with triplet *-pc-mingw32,
> which disables unicode startup. This might be related. Ruben?
>
No, it's not related to the toolchain. This is Qt's configure not working
on MSYS. Specifically, -DUNICODE is missing from the compiler options.
I must *strongly* urge you to try building Qt from cmd instead of MSYS.
Just do
export PATH=C:\mingw32\bin;%PATH%
export QTDIR=C:\path\to\the\Qtdir
cd to\the\qt\dir
configure -qt-style-windowsxp -qt-style-windowsvista -phonon -opensource
and then run
mingw32-make
Ruben
> Kai
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public