Skip to content

Latest commit

 

History

History
112 lines (62 loc) · 4.31 KB

BUILD.md

File metadata and controls

112 lines (62 loc) · 4.31 KB

Build Instructions

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:

1. Get the GNU Dependencies

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).

2. Install VisualStudio C++ 2013 Community Edition

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.

3. Install the Windows Platform SDK

We use an old SDK version (7.0) but a newer version might also work.

4. Tune the launch script

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.

5. Launch the makefile

  • 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 the Build/x64/ide/ folder created before by the execution of make.

Don't hesitate to drop a word to improve this build guide, as right now it's very slim!

Have fun hacking,

The Fantaisie Software Team