|
发表于 2005-8-1 21:23:50
|
显示全部楼层
QT4在VC环境下编译
苦楝树 中有文章如下
http://spaces.msn.com/members/nzt/?partqs=cat%3DQt&_c11_blogpart_blogpart=blogview&_c=blogpart
July 13
compile qt with msvc.net
1. unzip opensource version
//2. run configure with win32-g++ // obselete, a good methods here
3. cvs_qtmsvc_bcc.zip should merge with qt4msvc_bcc.zip, then overwrote by files from mkspecs-from-evaluation-version
4. set qmakespec to win32-msvc.net
4.1 rename the License.cpl to license.TROLL
4.2 copy qmake-from-eval to qmake dir, rename to qmake.exe
4.2 open the makefile under the qmake dir, comments the all: xxx line, and then add a line "all: "
4.3 run configure, it will configure for you.
5. use qmake -recursive to generate makefiles (in general, this step will be done during the configure process. but, if you run with any other makespec rather than msvc.net, please do it again. In a clean installation, it's ok to skip this step)
6. nmake all files, it will cost much time. but, you can stop it at any time, and then simply run nmake again to continue the process.
5:09 AM | Permalink | Comments (0) | Trackbacks (0) | Qt
qt 4 installed with msvc.net and dev-c++
qt 4 installed with msvc.net and dev-c++
adipose from qt forum has summerized some points in how to compile qt 4 source open version with msvc.net. here is its url
this thread also address some ideas on how to make qt4 work with dev-c++. apart from this thread, there are some as following:
http://sourceforge.net/forum/forum.php?thread_id=1314521&forum_id=48211
http://www.hoppelkoppel.de/docs/InstallationQt.pdf
http://evilissimo-softdev.de/files/stuff/qt-devcpp-template.txt
http://www.c-plusplus.de/forum/viewtopic-var-t-is-114023-....html
hope to help.
4:24 AM | Permalink | Comments (0) | Trackbacks (0) | Qt
July 02
compiling Qt 4 with msvc.net (obselete)
see this item for latest method
1. unpack qt-win-opensource-4.0.0.zip to c:\qt\4.0.0
2. open cmd, then locate to c:\qt\4.0.0
c:
cd \qt\4.0.0
3. unpack qt4msvc_bcc.zip to the Qt 4.0.0 directory
4. configure Qt 4 with MinGW. This step is necessary, otherwise it will prompt missing of files when do nmake.
configure -platform win32-g++
5. go to the qmake directory, then use Makefile.win32-msvc to recompile qmake.
cd qmake
nmake -f Makefile.win32-msvc
I am also wondering if there is a makefile for win32-msvc.net. Unfortunately, there is not such a file due to absence of qmake generator file specific to msvc.net. However, we can regard qmake using win32-msvc option is compatible with msvc.net environment, considering the successful final nmake link result.
6. go back the root directory of Qt 4. Using qmake with recursive option to produce makefiles in current directory and all its subdirectories.
cd ..
qmake -recursive -spec win32-msvc.net
7. nmake Qt4. The process will be longer than you expected. Be patient. ![](static/image/smiley/default/icon_smile.gif)
nmake
编译是变态的慢,要有心理准备哦!我在dell c640/2.0G/512M上花了将近6个小时才编译完成
需要qt4msvc_bcc.zip的请留email给我.
If you need qt4msvc_bcc.zip, please leave me a message, or drop me an Email. You can also download this file from Kde-cygwin maillist. Thank Andreas Hausladen for sending this zip file to the public maillist.
p.s. It will be better to use makespec files got from the win evaluation Qt 4 version. Just override the counterparts in qt4msv_bcc.zip. I have done as this, and comipled successfully.
12:14 PM | Permalink | Comments (0) | Trackbacks (0) | Qt
我的经验
qt4msvc_bcc.zip 在 这里 http://andy.jgknet.de/oss/qt/qt4msvc_bcc.zip
另外,在文件D:\qt\4.0.0.MSVC\mkspecs\win32-msvc.net\qmake.conf
CONFIG += qt warn_on release incremental flat link_prl precompile_header debug_and_release debug_and_release_target
的后面加入
QT += core gui
这样在.PRO文件生成Makefile时会默认将与qtcore4.dll、qtgui4.dll连编译的头文件和lib文件加到
Makefile文件中,否则有些文件编译报错。 |
|