找回密码
 注册
查看: 3406|回复: 10

qt4 open source 版本在vc2003下编译如何

[复制链接]
发表于 2005-7-9 16:18:41 | 显示全部楼层 |阅读模式
qt4 open source 版本在vc2003下编译如何做呀,我的编译不了。
configure程序如何用呀?
大侠求救呀
发表于 2005-7-9 21:39:11 | 显示全部楼层
还是用Linux吧
回复

使用道具 举报

发表于 2005-7-10 10:02:26 | 显示全部楼层
qt4 open source不支持vc2003
回复

使用道具 举报

发表于 2005-7-11 11:00:28 | 显示全部楼层
QT4Windows的OpenSource版用MinGW版比较的方便啊
看这个:
http://www.qtcn.org/bbs/read.php?tid=29&fpage=1
回复

使用道具 举报

发表于 2005-7-12 11:27:10 | 显示全部楼层
可以编译,不过手续麻烦点。
1。下载那个评估版。
2。拷贝评估版的mkspace到opensource版相应的目录下
3。设定qt的环境变量。mkspace为win32.....(指向.net的那个,我在linux下发的帖子,具体名字没看)
4。使用评估版的qmake生成opensource版的makefile文件
5。nmake
6。game over
回复

使用道具 举报

发表于 2005-7-26 16:06:09 | 显示全部楼层
yfy002,

请您说明白一点好吗? 我按你说的做,编译有问题.
回复

使用道具 举报

发表于 2005-7-26 16:33:06 | 显示全部楼层
[quote="leee101"]yfy002,


可能你还需要一个.qmake.cache文件,我一开始用g++编译时产生了这个文件,后来我把里面的QMAKESPEC改为win32-msvc.net,使用vc.net编译成功的. .qmake.cache文件是用g++编译qmake时产生的。在opensource版的根目录下。我把我的发给你看看。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

发表于 2005-7-27 12:24:45 | 显示全部楼层
谢谢yfy002.
我的email
[email protected]

另外,我用的是vs6,应该在方法上与.net是一样的吧.
回复

使用道具 举报

发表于 2005-7-31 15:19:31 | 显示全部楼层
[quote:c30cdffd67="yfy002"]可以编译,不过手续麻烦点。
1。下载那个评估版。
2。拷贝评估版的mkspace到opensource版相应的目录下
3。设定qt的环境变量。mkspace为win32.....(指向.net的那个,我在linux下发的帖子,具体名字没看)
4。使用评估版的qmake生成opensource版的makefile文件
5。nmake
6。game over[/quote]

使用评估版的文件可能有版权问题
回复

使用道具 举报

发表于 2005-8-1 16:19:49 | 显示全部楼层
Qt4商业版才支持VC6、VS2003de
qt-win-commercial-desktop-4.0.0-vc60.exe
qt-win-commercial-desktop-4.0.0-vs2003.exe
qt-integration-VS2003_1.0.1.exe
回复

使用道具 举报

发表于 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.
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文件中,否则有些文件编译报错。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-8 06:07 , Processed in 0.030623 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表