Building wxFormBuilder From Source
Purpose
Instruct new users and developer on how to properly build the wxFormBuilder project. wxFormBuilder uses Premake as it's primary build system. Premake is a build script generator so you will notice that wxFormBuilder does not come with any build files only 'premake.lua' files. This is by design and you use Premake, for your platform, to generate the build files of your choice. There are a set of batch/shell scripts that you can run that will automatically generate makefiles and Code::Blocks projects.
REMEMBER: The way you get new additions and updates to the build files you need to run Premake. This is means that it is good practice to run Premake before starting to build or develop wxFormBuilder.
wxFormBuilder Build Steps
- Follow the guide here to build wxWidgets or get the wxPack.
- Get the source code from the Subversion repository. You can use the commandline
svnor use
TortoiseSVN:
Using TortoiseSVN, make a folder where you want to store the sources, right-click on the folder, and select "SVN Checkout...".
In the dialog that opens, enter:
Current Development:https://wxformbuilder.svn.sourceforge.net/svnroot/wxformbuilder/3.x/trunk
Version 3.0 Beta1:https://wxformbuilder.svn.sourceforge.net/svnroot/wxformbuilder/3.x/tags/beta1
press OK.
svn Commandline:
Current Development:svn co https://wxformbuilder.svn.sourceforge.net/svnroot/wxformbuilder/3.x/trunk wxformbuilder
Version 3.0 Beta1:svn co https://wxformbuilder.svn.sourceforge.net/svnroot/wxformbuilder/3.x/tags/beta1 wxformbuilder
- There are included batch/sh script that you can run to just simplify running and creating the build files. Just run it to create the necessary build files. You can skip the next step if you use those.
Windows:create_build_files.bat
Linux:>$bash create_build_files.sh
- To manually create the needed build files type:
Code::Blocks Projects and workspace:
Windows:premake\premake-win32.exe --target cb-gcc --with-wx-shared [--unicode]
Linux:premake/premake-linux --target cb-gcc --with-wx-shared [--unicode]
GNU makefiles:
Windows:premake\premake-win32.exe --target gnu --with-wx-shared [--unicode]
Linux:premake/premake-linux --target gnu --with-wx-shared [--unicode]
- Use the generated build files to build wxFormBuilder.
Code::Blocks:
Use the generatedwxFormBuilder.workspaceto build wxFormBuilder.
GNU makefiles type: (Assumes you have properly setup your system to build with gcc or MinGW)
Release:
make CONFIG=Release
Debug:
make
Includes
- wxFormBuilder
- wxFormBuilder SDK
- wxFormBuilder 3rd Party Controls
Notes
- Code::Blocks is a free cross-platform IDE and it can be found here:
http://codeblocks.org - Premake can be found here:
http://premake.sourceforge.net - Subversion is a great free cross-platform version control manager. It can be found here:
http://subversion.tigris.org