scp-fs2open / wxLauncher

wxLauncher
Other
26 stars 12 forks source link

wxLauncher: Multi-platform launcher for Freespace 2

Introduction

wxLauncher aims to give one unified answer to members of the Freespace 2 Open community looking for an easy way to control fs2_open on various platforms and to those looking for an easy way to find and get updates to their Freespace 2 MODs and TCs.

Compatibility

wxLauncher is built for the 3.6.9+ versions of fs2_open. While older versions might function, we don't officially support them. Use them at your own risk.

Obtaining wxLauncher

Precompiled binaries can be found on the project releases page

Find the build for your system and you're set.

Building from source

The wxLauncher requires the CMake build system for building. CMake is a cross-platform meta-build system; it generates the files that allow a platform's native build system to build the launcher. CMake supports VS2005 and newer, as well as Xcode, KDevelop, and of course autotools.

Requirements shortlist

Optional components

Detailed requirements

wxLauncher is built using CMake. Only version 2.8 or later has been tested (and the CMake file enforces this). CMake can be downloaded in binary form, from the CMake Home Page or if you run Linux, from your distro's package repository.

wxLauncher is a wxWidgets-based application. It can only be built with wxWidgets version 2.8.10 or higher. Version 0.10.0 has been tested with:

Python 2.7 or higher is required to build this project. This project also assumes that the python executable is in your PATH. Check your operating system's documentation for information on how to add Python to your PATH.

Markdown in Python is required in order to build the integrated help system.

The OpenAL Software Development Kit is an optional component needed to build this program. It can be downloaded from the OpenAL homepage. OpenAL support requires the preprocessor symbol USE_OPENAL=1. This symbol is set to 1 by default by CMake. You can pass -DUSE_OPENAL=0 to CMake to disable building with OpenAL support. See the compiler specific instructions for getting your compiler ready to build with OpenAL. Note that macOS ships with OpenAL pre-installed. wxLauncher should also work with the OpenALSoft library.

The Microsoft Windows SDK (formerly the Platform SDK) is required to build both this application and wxWidgets when on Windows. Note that only the Windows SDK for Windows Vista and Windows 7 have been tested with this application.

The Nullsoft Scriptable Install System (NSIS) is required on Windows to build the installer. The latest version at the time of writing is 2.46. Be sure to either install NSIS before running CMake or re-run CMake after installing NSIS. NSIS can be found on the NSIS homepage.

The offical wxLauncher releases for Windows are built with Microsoft's Visual Studio 2008 Express edition. Other Visual Studio versions should work, but are not routinely tested. Visual Studio Express editions can be downloaded and used for developing wxLauncher for free.

wxLauncher's source can be explored from the project's source page

To get the source, you'll need Git:

Once Git is installed, you can get a copy of the source by running the following command in a folder of your choice: git clone https://code.google.com/p/wxlauncher/

Building - Windows

Run CMake in your favourite way (GUI, or on the commandline ccmake (uses curses) or cmake).

CMake QT Gui

Assuming the GUI, select the CMakeLists.txt in the main wxLauncher source directory and set your output directory to where you want the native build tool to be placed, somewhere without spaces. Click configure until the Generate button Enables. The lines that are highligted red are new variables that CMake has found.

Building - Linux (has been tested on Ubuntu)

Command line

CMake selects the wrong python

If CMake selects the wrong version of python (should be version 2), you can set the version yourself by setting PYTHON_EXECUTABLE when you run CMake by adding "-DPYTHON_EXECUTABLE=</path/to/python2>" to your command line, for example "-DPYTHON_EXECUTABLE=/usr/bin/python2".

If you run into this problem, please post in this ticket http://code.google.com/p/wxlauncher/issues/detail?id=99 with your distro, OS version, and whether you're running 32- or 64-bit.

Building - macOS (tested on 10.11, El Capitan)

Extract the SDL2.framework and copy it to your /Users//Library/Frameworks folder. Create the Frameworks folder if it does not exist.

Important known issues on macOS:

Building - FreeBSD (tested on TrueOS Desktop, 22 Feb 2017)

Notes

Using wx30-gtk2 currently yields a compilation error (11 March 2017) TrueOS desktop comes with python2/python27, but no binary 'python'. Installing the python package seems to just create that symlink. Joystick support has not been tested. If you have a joystick working with FreeBSD please report test results.

License

See License.txt.