Recent Changes - Search:

ZGameEditor

Documentation

Community

Edit sidebar

Generate files for Linux and OS X

Generate files for Linux and OS X

(:selectlang:)
This "HOW TO" describes how to make your own ZGameEditor projects run under Linux and Mac OS X (Intel x86).

1. Start ZGameEditor

2. Open your project or one of the sample projects.

3. Choose to generate a binary for the target platform:

4. Copy the generated binary to the target platform.

Platform requirements:

  • OpenGL must be installed
  • SDL must be installed

Also note that on Linux you must check 2 things: first of all, the file must be executable. You can set the file executable from a shell terminal with the command "chmod 755 your_file_name", or from a filemanager application. Plus, the engine looks for a lib called "libGL.so". You might have some other libs like "libGL.so.1" or "libGL.so.1.2" installed in your "usr/lib" folder. If this is the case, you can create a system link using the command "ln -s usr/lib/libGL.so.1 usr/lib/libGL.so". Root privileges are needed.

Current limitations:

  • Built-in font not supported, use bitmapped fonts instead
  • Binaries are quite large and cannot be compressed with UPX

Screens:

WolfAndBart-application running on Ubuntu Linux

ShaderDemo-application running on Mac OS X

Questo "HowTo" descrive come far sì che i tuoi progetti creati con ZGameEditor funzionino anche sotto Linux e MacOs X.

1. Apri ZGameEditor

2. Apri il progetto.

3. Scegli di generare un file binario per la piattaforma specifica:

4. Copia il file generato sulla piattaforma specificata.

Requisiti per la piattaforma target:

  • OpenGL deve essere presente
  • Le librerie SDL devono essere installate

Inoltre sotto Linux devono essere controllati due requisiti: il primo è che il file sia eseguibile. Puoi settare questa opzione da un terminale attraverso il comando "chmod 755 your_file_name", o da un qualunque filemanager. Inoltre, il gioco richiede la presenza di una libreria (installata insieme alle OpenGL) chiamata "libGL.so". Può darsi che tu abbia installate altre librerie come ad esempio "libGL.so.1" o "libGL.so.1.2" presenti nella cartella "usr/lib". In questo caso, puoi creare un system link usando il comando "ln -s usr/lib/libGL.so.1 usr/lib/libGL.so". Per tale operazione sono necessari i privilegi di root.

Limitazioni attuali:

  • Il font predefinito non è disponibile, è necessario usare i font da bitmap
  • Gli eseguibii sono di dimensione maggiore (> 200 kb) e non possono essere compressi con UPX

Screenshots:

WolfAndBart-application sotto Ubuntu Linux

ShaderDemo-application in esecuzione su Mac OS X

Edit - History - Print - Recent Changes - Search
Page last modified on February 23, 2010, at 01:23 pm