Install boost1.32.0, SDL, wxWidgets, and stlport in the mingw GCC Environment

Source: Internet
Author: User
Tags wxwidgets

Master environment Configuration:
Mingw
You can find mingw at http://sourceforge.net/projects/mingw, but I
Recommended
Http://petra.hos.u-szeged.hu /~ Aking/www. Parinya. ca/or
Download on http://www.parinya.ca/
MinGWStudioFullSetupPlus-2.05.exe
Install it to the root directory of a partition. Do not install it in a directory such as "C:/Program Files". Otherwise, it will be very troublesome to install msys later.
Here I installed drive C:/mingwstudio

Copy mingw32-make.exeunder C:/mingwstudio/mingw/binto make.exe

Msys:
Http://sourceforge.net/projects/mingw to find msys, the more stable the better
Install msys to the C:/mingwstudio/minggw directory. After installation, we will talk about the DOS window and ask you about the mingw address.
Give it C:/mingwstudio/mingw
If not properly configured, create a fstab file in the C:/mingwstudio/mingw/sys/etc directory and add a line of C:/mingwstudio/mingw

You can start C:/mingwstudio/mingw/sys/msys. BAT to compile the software later.

Common msys commands:
Cd d:
Go to d Partition
 
Ls
List Files in the directory like dir
 
CD/mingw
Go to the mingw directory. refer to the previous configuration and go to the C:/mingwstudio/mingw directory.
 
CMD
Start the DOS shell of MS in XP
Command
Start ms dos shell in 9x

Library Compilation:

SDL:
Download sdl-devel-1.2.7-mingw32.tar.gz from the SDL main site http://www.libsdl.org/index.php
Decompress the package and create a local directory in the mingwstudio/mingw/sys directory.
Start msys and run make mingw In the SDL directory to complete the installation.
This will install SDL in the local directory, so that you can compile the SDL program on the command line.
To Use SDL in mingwstudio, you must specify include and Lib in IDE.

Boost 1.32.0 Compilation:
Http://sourceforge.net/projects/boostdownload Latest Version
Start msys to go to the boost directory

Go to the tools/build/jam_src directory:
CD/tools/build/jam_src

Start the DOS shell of MS:
Run the command in 9X.
Run the CMD command in XP.
In this way, the DOS shell is entered.

Input
Build. Bat mingw

After compilation, the bin. ntx86 directory will appear in the jam_src directory.

Copy all files under bin. ntx86 to the boost directory.

Copy the mingw-3_3_1-tools.jam file under/tools/build/V1 to the boost directory.

Press Ctrl + C to kill the DOS shell. This will return to the original shell of msys. Of course, you can restart msys.

In the boost directory, type bjam "-stools = mingw" Install
This will compile your boost to the C drive boost directory.

There are hundreds of MB after compilation, and dozens of failed targets because python is not configured properly. ignore this.

You can cut the boost directory under the C:/Boost/include/boost-1_32
C:/mingwstudio/include (there is also an old wx Directory, which is carried by mingwstudio wxWidgets .)
Cut the files under C:/Boost/lib to C:/mingwstudio/lib;
Then you can delete C:/boost.

You can also configure the include path of boost in mingwstudio to point to C:/Boost/include/boost-1_32
Lib points to C:/Boost/lib without deleting C:/Boost

WxWidgets:
Http://sourceforge.net/projects/wxwindowsdownload wxalland decompress it to a directory.

Create a directory such as mingw under the wxWidgets directory.

Start msys and enter the newly created mingw directory under the wxWidgets directory. Type ../configure -- With-MSW -- disable-shared
This will create a MAKEFILE file. -- disable-shared is to prohibit the establishment of a dynamic connection library. -- With-MSW does not know the meaning :)

Or click make in this directory to complete library compilation.

There is a sample subdirectory in this directory. You can compile those examples and run debugging.

Stlport:

If your mingw is not the latest version but carried by mingwstudiofullsetupplus, you still want to compile stlport successfully.
Use msys to enter the SRC subdirectory of the stlport directory. Make-F gcc-mingw32.mak
After compilation is successful, the library file will be generated in the Lib subdirectory of the stlport directory.

Then you configure the header file in mingwstudio to point to the stlport directory under the stlport directory.
The library file points to the Lib subdirectory under the stlport directory

If you copy the. A library file generated by stlport to the mingw/lib directory of mingwstudio,
In mingwstudio, the database name is not used to connect to these databases,
But like a libwxzlib-2.5.a, libwxtiff-2.5.a library written wxzlib-2.5, wxtiff-2.5

If you do not copy the file to the library search path of mingwstudio, you must use the full path such as C:/stlport/lib/stlport..

Multiple databases are separated by commas.
Open the sample provided by mingwstudio to view the connection usage of the database.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.