[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I add -D_WIN32_WINNT=0x0502 to qterminal compile flag (MinGW)
From: |
Tatsuro MATSUOKA |
Subject: |
Re: How do I add -D_WIN32_WINNT=0x0502 to qterminal compile flag (MinGW) |
Date: |
Tue, 7 Feb 2012 13:25:08 +0900 (JST) |
Hello
I have taken a mistake. I have modified DEFINES in unix { }.
I have add
DEFINES += _WIN32_WINNT=0x0502
in win32{}
Then compile was went well.
Regards
Tatsuro
--- On Tue, 2012/2/7, Tatsuro MATSUOKA wrote:
> Hello
>
> I am now re-challenging to build octave-gui on MinGW.
>
> In compiling, QWinTerminalImpl.cpp
>
> #***************
> g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE
> -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX
> -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2
> -DQT_THREAD_SUPPORT -I'c:/Programs/Qt/4.8.0/include/QtCore'
> -I'c:/Programs/Qt/4.8.0/include/QtGui' -I'c:/Programs/Qt/4.8.0/include' -I'.'
> -I'c:/Programs/Qt/4.8.0/include/ActiveQt' -I'release'
> -I'c:/Programs/Qt/4.8.0/mkspecs/default' -o release/QWinTerminalImpl.o
> win32/QWinTerminalImpl.cpp
> win32/QWinTerminalImpl.cpp: In constructor
> 'QConsolePrivate::QConsolePrivate(QWinTerminalImpl*, const QString&)':
> win32/QWinTerminalImpl.cpp:132:10: warning: 'QConsolePrivate::m_process' will
> be initialized after [-Wreorder]
> win32/QWinTerminalImpl.cpp:120:8: warning: 'bool
> QConsolePrivate::m_inWheelEvent' [-Wreorder]
> win32/QWinTerminalImpl.cpp:142:1: warning: when initialized here [-Wreorder]
> win32/QWinTerminalImpl.cpp:200:39: error: 'GetConsoleWindow' was not declared
> in this scope
> make[3]: *** [release/QWinTerminalImpl.o] Error 1
> make[3]: Leaving directory
> `/home/octaves/hg/octave-gui/gui/qterminal/libqterminal'
> make[2]: *** [release] Error 2
> make[2]: Leaving directory
> `/home/octaves/hg/octave-gui/gui/qterminal/libqterminal'
> make[1]: *** [sub-libqterminal-make_default] Error 2
> make[1]: Leaving directory `/home/octaves/hg/octave-gui/gui/qterminal'
> make: *** [sub-qterminal-make_default] Error 2
> #****************
>
> I manually added -D_WIN32_WINNT=0x0502 on the console and compile was
> successful.
>
> I modified "DEFINES" in libqterminal.pro but nothing was changed.
>
> How do I add -D_WIN32_WINNT=0x0502 to qterminal compile flag ?
>
> Regards
>
> Tatsuro
>