How to build the PureBasic OpenSource Projects.
Currently, the only supported toolchain is that for the Windows OS (this will change soon), therefore these instructions only cover building the PureBasic IDE for Windows.
That said, you can try to compile on Linux/OSX as the makefile contains all the required info to do so.
For more detailed information, see also the following pages on the project Wiki:
The build scripts require some Unix utilities from the GnuWin project to be present on the system.
ChrisRfr has kindly prepared an ad hoc package with all the required tools:
Download the Zip archive, unpack it and add it to your PATH (full instructions inside the Zip file).
The project contains some C source code which requires Visual Studio to compile. The recommended version is VS 2013, which is also available as Community Edition for free:
You could also try using a more recent version, but we use the 2013 version here.
We use an old SDK version (7.0) but a newer version might also work.
Create a copy of the Window-x64.cmd
or Window-x86.cmd
script and edit it:
- Set
PUREBASIC_HOME
to a working PureBasic installation. - Check all the other paths to see if they match your local system.
- Double-click on
Window-x64.cmd
. - Go to the
PureBasicIDE
directory. - Type:
make
.
If all is setup correctly, it should compile all the dependencies and the IDE.
A Build
directory will be created with all temporary files in it.
Once you have successfully launched the make
once, you can then use
PureBasic to open the "PureBasic IDE.pbp
" project file and
run it from PureBasic itself (be sure to adjust the constants in 'Compilers Options.../Contants')
- The
#BUILD_DIRECTORY
constant must point to theBuild/x64/ide/
folder created before by the execution ofmake
.
Don't hesitate to drop a word to improve this build guide, as right now it's very slim!
Have fun hacking,