Scott Collin的blog
scott collin的BLOG
Scott Collin的blog
//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.
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.
it’s the first time open to the Internet public.
I have attached some screenshots below. If it’s you are interested,
please drop me an email, or let me know by whatever ways you can, I
will send you an Url for download.
Bug reports , comments , or suggestions, should be send to [email protected].
测试代码很简单:
#include <iostream>
using namespace std;
int main()
{
cout <<"hello world"<<endl;
return 0;
}
…两种IDE,DEV-C++和eclipses,以及命令行,在编译速度上命令行最快,eclipses,这倒在意料之中,但产生的可执行文件确吓了我一跳,就这样一个程序,居然产生了400KB以上的文件,命令行和DEV-C++都是461KB,elipses是465KB。为了检测是否是GCC的问题,我在linux下编译同样的代码,C++产生的文件大小为13.9KB。
—————quote end—————-
It’s very interesting!
With the default settings in dev-cpp, compiled by MinGW, the executable is 463kB in size!
Using VC 6, it is 244kB with debug mode, and 64kB with release mode
With vc 7 (vs.net 2003), the two executables are 224kB and 68kB respectively.