What's Here?
- Members: 137,221
- Replies: 481,472
- Topics: 75,056
- Snippets: 2,567
- Tutorials: 675
- Total Online: 2,145
- Members: 101
- Guests: 2,044
|
It can be a little tedious to compile the wxWidgets source code, so this is a simple batch script to do it for you.
|
Submitted By: gabehabe
|
|
Rating:
   
|
|
Views: 352 |
Language: Other Languages
|
|
Last Modified: October 9, 2008 |
Instructions: Simply save as a .bat file (batch script) and execute it. It will ask you to input the path of the MinGW compiler, and the installation directory of wxWidgets.
This script is developed according to the instructions to compile wxWidgets 2.8.9 for CodeBlocks, found here: http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.6_to_develop_Code::Blocks_(MSW) |
Snippet
@ECHO OFF
REM Prompt the user to enter the path to MinGW compiler
ECHO Please enter the path to MinGW (NOTE: It should not contain spaces.
ECHO If it does, it is recommended that you put it in the root of your C drive
ECHO (example, C:\MinGW\bin)
REM Get the input
SET /p PATH=
REM Prompt the user to enter the path to wxWidgets
ECHO Please enter the installation path of wxWidgets
ECHO (example, C:\wxWidgets-2.8.9)
REM Get the input
SET /p WX=
ECHO Executing... Go get a coffee, this may take a while ;)
REM Move into the WX directory
cd %WX%\build\msw
REM First we need to clean the source
@ECHO ON
%PATH%\mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release clean
REM Now compile it
%PATH%\mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release
ECHO Aaaaand... we're done. Did you enjoy your coffee? :)
ECHO Press any key to exit
PAUSE>NUL
Copy & Paste
|
|
|
Programming
Web Development
Reference Sheets
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
|