Qt for Windows

xiaoxiao2021-04-01  221

Qt 4.1.0 OpenSource VC.NET 2003 Compilation Full Version Qt Use the Open Source version, Qt-win-OpenSource-Src-4.1.0.zip.

First compile the generation of QT4 file directory operating system: Windows XP SP2 Compiler: Microsoft Visual Studio .NET 2003 Chinese

1, decompress the file f: / Qt / Qt_Open (directory can be determined by itself) 2, set the environment variable: qtdir = f: / qt / qt_open path =% qtdir% / bin;% PATH% (this step is best setting Beneficial to be an absolute directory, otherwise it may cause qmake, moc to be used) qmakespec = win32-msvc.net3, download qt.4.1.0.win.os.patch.zip (in this URL) http://qt.tttxp.ru /Qt4.1.0.htm) 4, qt.4.1.0.win.os.patch.zip file extracts to F: / QT / QT_Open, override the original identical directory: MKSPECS, QMAKE, CONGFIGURE.EXE5, in VC. This file vsvars32.bat is found in the installation directory of Net2003, which is mainly to set the path of some library files. 6, Start Menu -> Run -> CMD Enter DOS, then go to f: / qt / qt_open, 7, first use the vsvars32 to set the path, then run configure.exe, then have some tips, enter Y, wait for a while, end The project files needed under VC7.1 will be generated.

Then run the NMAKE, OK, C / C

The settings of the VS2003 make the program that can work and compile QT4 correctly

It has been found online and there is no relevant instructions. According to QT3 settings, I set it in QT4, and finally can run correctly, celebrate.

C / C

1. General -> Added Contains Directory

D: / apps / west, d: / apps / west / qt4open / include / qtcore, d: / apps / west / qt4open / include / qtgui, d

: / Apps / Develop / QT4Open / include / ActiveQT, TMP / MOC / Debug_shared, D: /Apps/develop/QT4Open/mkspecs/win32-MSVC.NET

2. Preprocessors -> Preprocessor Definition

_Windows, unicode, win32, qt_largefile_support, qt_edition = qt_edition_desktop, qt_dll, qt_gui_lib, qt_core_lib, qt_thr

EAD_Support

3. Preparatory head

Select: Do not use the precompiled head

Connector

Conventional -> Additional Library

D: / apps / wevelop / qt4open / lib, d: / apps / wevelop / qt4open / lib

2. Enter -> Additional dependencies

D: /apps/develop/qt4open/lib/qtmaind.lib d: /apps/develop/qt4open/lib/qtguid4.lib

D: /apps/develop/qt4open/lib/qtcored4.lib

转载请注明原文地址:https://www.9cbs.com/read-131215.html

New Post(0)