Compiling

From OHRRPGCE-Wiki
(Redirected from Compiling in Linux)
Jump to: navigation, search

Contents

[edit] Windows & Linux

On Windows you will need to install Windows compiling requirements

On Linux, you will need the Linux library requirements (which you probably all already have).

After you have installed FreeBasic, a C/C++ compiler, Python, and SCons, you can just run scons to compile Game and Custom. Type scons --help for information about compile options and compiling the other utilities.

The 'SConscript' script assumes GCC is used, and may have to be edited for a different compiler, especially a non-Unix compiler.

[edit] Mac OS X

Compiling for Mac is still considered experimental. A full article on the subject is here: Compiling in Mac OS X

[edit] FreeBSD

Compiling on FreeBSD is highly experimental, but is identical to compiling on Linux (including library requirements?). You need the highly experimental (and increasingly stale) FreeBSD build of FreeBASIC. This has not been tested in several years.

[edit] DOS

DOS has not been supported for years, but here are instructions for ancient versions: Compiling the DOS version.

[edit] Utilities

scons hspeak requires Euphoria 4.0+ from http://openeuphoria.org/

Run scons unlump relump to produce the utilities for packing and unpacking the Lump Format used by .rpg files.

There are numerous other utilities and test programs. See scons --help.

[edit] gfx_directx

gfx_directx.dll is provided precompiled in the SVN respository, but it is not updated every time that the source is.

To compile, you will need Visual C++ and the DirectX SDK. After installing the SDK, the DXSDK_DIR environmental variable should be correctly set.

After that, run scons gfx_directx.dll. This will overwrite the precompiled dll.

If you are using Visual C++ 2008 or earlier, you are probably missing stdint.h. Download a suitable header, eg. this one, and place it in the gfx_directx directory.

If you want to compile from within the IDE instead of using scons, read gfx_directx/readme.txt (in that case you'll probably need to add the DirectX SDK header directory to the include path.)

Via either method, the resultant .dll does not have any nonstandard dependencies.

[edit] GCC emitter

See Compiling with -gen gcc

Back to Source...

Personal tools