Free and open source motorsport sim - Engine source code https://www.speed-dreams.net/
Find a file
Xavier Del Campo Romero 880d53d88a
Find speed-dreams-data submodule by default
Now that speed-dreams-data is available as a submodule, this allows the
build system to choose it for in-tree builds. Therefore, CMake will
perform in the following order:

1. Do not search the speed-dreams-data package if SD_ASSUME_DATADIR is
   set.
2. Otherwise, do an in-tree build if the submodule has been updated.
3. Otherwise, search for the speed-dreams-data package on standard
   locations and CMAKE_PREFIX_PATH and/or CMAKE_FIND_ROOT_PATH.
4. Otherwise, return an error message.

SD_HAS_DATADIR was rendered redundant, so it has been removed. However,
SD_DATADIR_INSTALL_PREFIX was introduced because it would not equal
SD_DATADIR_ABS for in-tree builds, where an installed version of the
speed-dreams-data package is not required.

In-tree builds now allow to generate NSIS installers with both code and
data.
2025-01-15 06:36:59 +01:00
.forgejo/workflows Introduce w64-mingw32 workflows 2025-01-13 00:07:07 +01:00
cmake Find speed-dreams-data submodule by default 2025-01-15 06:36:59 +01:00
cpack Find speed-dreams-data submodule by default 2025-01-15 06:36:59 +01:00
doc download-manager/README.md: Update driver info 2024-12-31 10:42:07 +01:00
packaging Revamp Debian and NSIS packaging 2025-01-13 00:07:01 +01:00
speed-dreams-data@9749171cef Add speed-dreams-data as a submodule 2025-01-15 06:36:50 +01:00
src Find speed-dreams-data submodule by default 2025-01-15 06:36:59 +01:00
.gitignore Add .gitignore 2024-12-31 05:23:42 +01:00
.gitmodules Add speed-dreams-data as a submodule 2025-01-15 06:36:50 +01:00
CHANGES.txt Remove trailing newlines 2024-07-30 22:17:48 +00:00
CMakeLists.txt Find speed-dreams-data submodule by default 2025-01-15 06:36:59 +01:00
INSTALL.txt INSTALL.txt: Add new dependencies 2024-07-31 22:41:00 +00:00
LICENSE Rename COPYING.txt to LICENSE 2024-12-31 06:14:05 +01:00
README.md cmake: Get SD_DATADIR from speed-dreams-data package 2024-12-31 06:14:06 +01:00
TODO.txt String trailing whitespaces 2024-07-30 21:45:07 +00:00
unix64.cppcheck add cppcheck config for unix64 2024-06-10 16:34:31 +00:00
win64.cppcheck String trailing whitespaces 2024-07-30 21:45:07 +00:00

Speed Dreams

Speed Dreams is a free and open source motorsport simulator. Originally a fork of the TORCS project, it has evolved into a higher level of maturity, featuring realistic physics with tens of high-quality cars and tracks to choose from.

This repository only contains the engine source code. End users are expected to download the pre-built packages listed below.

The assets repository is located on https://forge.a-lec.org/speed-dreams/speed-dreams-data/

A collage of in-game screenshots

Pre-built packages

Speed Dreams binaries are available for the following platforms:

  • Debian/Ubuntu (TODO)
  • Microsoft Windows (TODO)

Building from source

Speed Dreams can be built from source using the conventional build process in CMake projects:

cmake -B build
cmake --build build/ # Optionally, add -j8 or any other number for faster builds

This assumes the speed-dreams-data package is already installed on a well-known location. If not, use the CMAKE_PREFIX_PATH variable to indicate CMake where to locate an installed version of the speed-dreams-data package:

cmake -B build -DCMAKE_PREFIX_PATH=<path-to-speed-dreams-data>

And then build the project as usual.

If the speed-dreams-data package is not found, the game should still be able to build, but it would not be able to run.

Dependencies

Debian/Ubuntu

sudo apt install git cmake build-essential libopenscenegraph-dev libcurl4-gnutls-dev libsdl2-dev libsdl2-mixer-dev librhash-dev libenet-dev libpng-dev libjpeg-dev zlib1g-dev libminizip-dev libopenal-dev libplib-dev libexpat1-dev libcjson-dev openjdk-17-jdk openjdk-17-jre

The version for the openjdk-* packages might change among distributions.

License

By default, Speed Dreams code is licensed under the GPLv2-or-later license, as specified by the LICENSE file, whereas non-functional data is licensed under the Free Art License by default.

However, some sections of the code and some other assets are distributed under various free (as in freedom) licenses. Please read their license files located in their respective directories for further reference.

Trademark disclaimer

Windows is a registered trademark of Microsoft Corporation.

Ubuntu is a registered trademark of Canonical Ltd.