Install Boost1.32.0, SDL, WXWIDGETS, STLPORT in the MINGW GCC environment

xiaoxiao2021-03-06  67

Main environment configuration: mingwmingw can be found on http://sourceforge.net/projects/mingw, but I recommend to http://petra.hos.u-szeged.hu/~aking/www.parinya.ca/ or http : //www.parinya.ca/ Upload MingWStudiofullSetupplus-2.05.exe Installing the root directory of a partition, do not install it to the directory of "C: / Program Files". Otherwise, MSYS will be very troublesome here. Installing the C: / MingWstudio

Then copy the MINGW32-Make.exe under C: / MingWstudio / MingW / BIN to make.exe

Msys: http://sourceforge.net/projects/mingw Find MSYS, the more stable, the more you install MSYS to C: / MingWstudio / MINGGW directory. After the installation, you will talk about the DOS window to ask your MingW address to it C: / MingWstudio / MingW If you accidentally don't match, you can build a FSTAB file in the c: / mingwstudio / mingw / sys / etc directory, plus a line C: / MingWstudio / MingW / MingW

You can start C: / MingWstudio/mingw/sys/msys.bat in the future.

MSYS Common Command: CD D: Go to the D Partition LS Listed with DIR Listed Directory CD / MingW to MingW Directory. Reference The previous configuration will go to the c: / mingwstudio / mingw directory CMD start Under XP MS's dos shell command starts MS on the 9X MS SHELL

Compilation of the library: SDL: to the SDL master http://www.libsdl.org/index.php Download SDL-Devel-1.2.7-mingw32.tar.gz After Using New Directory Local in MingWStudio / Mingw / Sys Directory Start MSYS, play Make Mingw in the SDL directory to complete the installation. This will install the SDL to the local directory. So you can compile SDL programs on the command line. If you want to use SDL in MingWStudio, you have to use SDL in MingWStudio. Include and lib boost 1.32.0 compile: http://sourceforge.net/projects/boost Download the latest version Start MSYS Go to the boost directory to the Tools / build / jam_src directory: CD / Tools / Build / Jam_src startup MS's DOS Shell: 9X, playing the command command XP, playing the CMD command so that the dos shell is entered into the build.bat mingw compilation, the bin.ntx86 directory will appear in the jam_src directory. Bin.ntx86's files under all Copy to Boost directory Next. Use 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 also re- Start Msys. Knock Bjam "-stools = mingw" in the boost directory This will compile your Boost to the C-disk Boost catalog, there are hundredsmm of compilation completion, and dozens of failure Target is because Python is not configured. Ok. You don't have to pay attention to it. You can cut the Boost directory under C: / Boost / include / Boost-1_32 to C: / MingWstudio / Include (there is an old WX directory, which is the wxwidgets carried by MingWstudio.) The file under C: / Boost / LIB is cut into c: / mingwstudio / lib; then you can delete C: / boost. You can also configure Boost's include path to c: / boost / include / boost- in MingWStudio, pointing C: / Boost / Include / Boost- 1 _32 lib points to c: / boost / lib without having to delete C: //sourceforge.net/projects/wxwindows Download WXALL after complex compression into a directory.

Built a directory in the wxwidgets directory such as MingW what.

Start MSYS, go to the mingwww directory of the wxwidgets directory. Hit ../configure --with-msw --disable-shared This will create a Makefile file. - Disable-Shared is forbidden to establish a dynamic connection library. -with-msw doesn't know meant :)

Still this directory, tap Make completion library compilation.

There is a Sample subdirectory in this directory. You can go in to compile those examples. Run debugging

STLPORT:

If your mingw is not the latest version but MingWstudiofullSetupPlus is carried, then you want to compile success stlport. Use msys to enter the SRC subdirectory of the Stlport directory. Play make -f gcc-mingw32.mak compile successfully successfully labeled libss The directory generates the library file.

转载请注明原文地址:https://www.9cbs.com/read-87756.html

New Post(0)