安装 MinGW 4.4.0 QT Xtupe

  (这篇文章是本人为 WesBaker 所写,所有权归WesBaker ,一个非常好的一个美国人).

1.   Download

 

step

component

 

URL/description

1

MINGW 4.4.0

 

GNU Binutils

  binutils-2.19.1-mingw32-bin.tar.gz

http://sourceforge.net/projects/mingw/files/MinGW/Base/binutils/binutils-2.19.1/

MinGW Runtime

    mingwrt-3.16-mingw32-dev.tar.gz

  mingwrt-3.16-mingw32-dll.tar.gz

  http://sourceforge.net/projects/mingw/files/MinGW/Base/mingw-rt/mingwrt-3.16/

MinGW API for MS-Windows

  w32api-3.13-mingw32-dev.tar.gz

  http://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/w32api-3.13/

GMP Runtime

  gmp-4.2.4-mingw32-dll.tar.gz

  http://en.sourceforge.jp/projects/sfnet_mingw/downloads/MinGW/Base/gcc/Version4/Previous%20Release%20gcc-4.4.0/gmp-4.2.4-mingw32-dll.tar.gz/

libiconv Runtime

  libiconv-1.13-mingw32-dll-2.tar.gz

  http://sourceforge.net/projects/mingw/files/MinGW/Base/libiconv/libiconv-1.13/

MPFR Runtime

  mpfr-2.4.1-mingw32-dll.tar.gz

  http://en.sourceforge.jp/projects/sfnet_mingw/downloads/MinGW/Base/gcc/Version4/Previous%20Release%20gcc-4.4.0/mpfr-2.4.1-mingw32-dll.tar.gz/

 

POSIX Threads for Win32 Runtime

  pthreads-w32-2.8.0-mingw32-dll.tar.gz

  http://en.sourceforge.jp/projects/sfnet_mingw/downloads/MinGW/Base/gcc/Version4/Previous%20Release%20gcc-4.4.0/pthreads-w32-2.8.0-mingw32-dll.tar.gz/

Core (C)

    gcc-core-4.4.0-mingw32-bin.tar.gz

  gcc-core-4.4.0-mingw32-dll.tar.gz

  http://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version4/Previous%20Release%20gcc-4.4.0/

C++

    gcc-c++-4.4.0-mingw32-bin.tar.gz

  gcc-c++-4.4.0-mingw32-dll.tar.gz

  http://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version4/Previous%20Release%20gcc-4.4.0/

GNU Make

  make-3.81-20090914-mingw32-bin.tar.gz

  http://sourceforge.net/projects/mingw/files/MinGW/Extension/make/make-3.81-20090914-mingw32/

GNU Source-Level Debugger

  gdb-7.0.2-mingw32-bin.tar.gz

  http://sourceforge.net/projects/mingw/files/MinGW/Extension/gdb/GDB-7.0/

 

2

MSYS-1.0.11.exe

http://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/msys-1.0.11/

 

3

Subversion

It is used to download 6,7,8,9

4

postgresql-8.3.20.tar.gz

http://www.postgresql.org/ftp/source/v8.3.20/

 

5

qt-win-opensource-4.7.3-mingw.exe

ftp://ftp.qt.nokia.com/qt/source/

6

openrpt

https://postbooks.svn.sourceforge.net/svnroot/postbooks/openrpt/trunk

7

csvimp

https://postbooks.svn.sourceforge.net/svnroot/postbooks/csvimp/trunk

8

xtlib

https://postbooks.svn.sourceforge.net/svnroot/postbooks/xtlib/trunk

9

xtuple

https://postbooks.svn.sourceforge.net/svnroot/postbooks/xtuple/trunk

 

 

2.   Setup MINGW 4.4.0

 

2.1).Create the top directory(eg.F:\MinGW),the directory name can not be exist the whitespace.

 

2.2).Decompress the following files to in the F:\MinGW directory.

  gdb-7.0-2-mingw32-bin.tar

  make-3.81-20090914-mingw32-bin.tar

  libiconv-1.13-mingw32-dll-2.tar

  gcc-c++-4.4.0-mingw32-bin.tar

  gcc-c++-4.4.0-mingw32-dll.tar

  gcc-core-4.4.0-mingw32-bin.tar

  gcc-core-4.4.0-mingw32-dll.tar

  pthreads-w32-2.8.0-mingw32-dll.tar

  mpfr-2.4.1-mingw32-dll.tar

gmp-4.2.4-mingw32-dll.tar

w32api-3.13-mingw32-dev.tar

mingwrt-3.16-mingw32-dev.tar

mingwrt-3.16-mingw32-dll.tar

binutils-2.19.1-mingw32-bin.tar

 

2.3)After decompress,the F:\MinGW directory has the following directories:

3.   Setup MSYS-1.0.11.exe

 

3.1) Click the MSYS-1.0.11.exe,Yes->Next->Yes->Next, Next->Install

the directory name can be any place,  I used the following path in my computer.

    

 

3.2) type y->y

 

 

3.3)type the MinGW path (eg.F:\MinGW)

3.4)type y

 

3.5)enter->finish.

 

 

4.   Setup the MinGW environment parameter.

 

Set the following parameter int the environment variable.

 

Add F:\MinGW\bin to the PATH variable.

Add F:\MinGW\lib to the LIB variable.

Add F:\MinGW\include to the INCLUDE variable.

Windows Vista and Windows 7 users

1.            From the Desktop, right-click My Computer and clickProperties.

2.            Click Advanced System Settings link in the left column.

3.            In the System Properties window click the Environment Variables button.

 

 

5.   Copy pg,qt,xtupe

create the soft directory upder the F:\MinGW directory.

5.1) decompress the postgresql-8.3.20.tar.gz under the soft directory.

5.2)create the xtuple directory under the soft directory.

5.3)copy the csvimp,openrp,xtlib,xtuple into  the xtuple directory.

5.4) decompress the qt into the soft directory.

6.   Setup postgresql

 

6.1  run the MSYS

in the msys program directory(eg.e:\msys\1.0\msys)

 

6.2  cd / -> ls

6.3 enter the postgresql directory

 

 

6.4  ./configure --without-zlib

 

 

About 3 minutes,the configrue is complete.

 

6.5  make

 

6.6  make install

   

 

 

6.7  Setup directory

The pg is setup in the E:\msys\1.0\local\pgsql directory default.

 

 

From the msys,we can see:

 

7.   Setup the pg qt environment parameter.

 

set PATH=%PATH%;E:\msys\1.0\local\pgsql\bin;

set LIB=%LIB%;E:\msys\1.0\local\pgsql\lib;

set INCLUDE=%INCLUDE%;E:\msys\1.0\local\pgsql\include;

 

set PATH=%PATH%;F:\MinGW\soft\4.7.3\bin;

set LIB=%LIB%;F:\MinGW\soft\4.7.3\lib;

set INCLUDE=%INCLUDE%;F:\MinGW\soft\4.7.3\include;

 

set QMAKESPEC=win32-g++

set QTDIR=F:\MinGW\soft\4.7.3

 

8.      Setup openrpt

Cd openrpt directory ->qmake ->make

 

Run the openrpt

 

9.      Setup csvimp

Cd the csvimp directory ->qmake ->make

 

Run the csvimp

 

10. Setup xtlib

Cd the xtlib directory ->qmake ->make

 

 

11. Setup xtuple

Note:if the xtupe compile fail,you need to setup qt.

   

Cd the xtuple  directory ->qmake ->make

 

 

Run the xTuple

12. Setup QT

   The Qt compile will spend over 15 hours.

Cd qt directory -> configure.exe –platform win32-g++ ào à y

 

After configure ,Make

 

 

If you see that F:\MinGW\soft\4.7.3\examples be compiled .Then the compile can be canceled.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值