Recently due to code changes the Speed Dreams code can be built for Windows using Open Source software on this propietary OS. For this we will use MinGW as well as other tools.
I have to say that I have been able to build the code for both 32-bit and 64-bit builds on Windows, but for this I had to install the corresponding versions of the tools according to their architecture. As for the operating system version, I have used Windows 10 Home 64bit for both.
After installing these tools we will go to Edit System Environment Variables in Windows, and in “Path” (in system variables), we will add the path to where MinGW "bin" folder has been installed by clicking on “New” (by default on "C:\Users[username]\mingw32\bin"). Note that the rest of the tools we have installed have already done so.
Now let's download the latest code available in trunk:
For this we are going to use SVN Tortoise. First we will create the folder where we are going to download Speed Dreams source code. I have done it for example in “C:\SD”, but you can do it wherever you want.
Now simply navigate into that folder and right-click on it, then select “SVN Checkout”, and enter the address of the current Sourceforge repository (https://svn.code.sf.net/p/speed-dreams/code/trunk) and click "OK". Now it will start a rather long process that will download all the Speed Dreams code, so wait until it finishes and says something like “Completed: At revision: [number]”.
Building the necessary 3rdParty dependencies
The next step is necessary so that we have all the necessary libraries to build Speed Dreams. To do this, inside the directory where we just downloaded the code (in my case in C:SD) we click the right mouse button and select “Open Git bash here”. A window will open where we will write the necessary commands to build SpeedDreams. Note: To paste the commands in this window we should not use Ctrl+V, but Shift+Ins.
First we go to navigate to 3rdParty source: cd packaging/3rdParty-devel/ Then we will configure it: cmake -B build -G "MinGW Makefiles"
Finally we will build the Speed Dreams libraries and dependencies with : cmake --build build/ -j[X] X is the number of threads we are going to use. If we have a 6-core processor we can use -j6, for example.
This process will take a while to complete, so if we want, we can go for a coffee...
Building the game
In this step we will build the game itself, and for this we navigate back to the root of the folder where the code is in the git bash window that we have opened before (In this case it is cd ../..). Then we will continue with the following:
We will start by configuring the building process: cmake -B build -G "MinGW Makefiles" -DCMAKE_PREFIX_PATH=$(pwd)/packaging/3rdParty-devel/build/3rdParty -DCMAKE_INSTALL_PREFIX=/c/[PathToWhereWeWantToInstall] -DCMAKE_BUILD_TYPE=Debug
We will now build Speed Dreams: cmake --build build -j[X]
After a while the game will have been built, and we will be able to access its executable by going to "../build/bin" , where it will be "speed-dreams-2.exe" as well as trackeditor and other development tools.
Finally, if you want to install the game in a specified folder (during the configuration) you can do it using this command: cmake --install build
... and that's all. Greetings!
Last edit: leillo1975 2024-10-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Recently due to code changes the Speed Dreams code can be built for Windows using Open Source software on this propietary OS. For this we will use MinGW as well as other tools.
I have to say that I have been able to build the code for both 32-bit and 64-bit builds on Windows, but for this I had to install the corresponding versions of the tools according to their architecture. As for the operating system version, I have used Windows 10 Home 64bit for both.
The tools we need are the following:
SVN Tortoise : https://tortoisesvn.net/downloads.html (I had to use 64bits because I'm using a 64bits Windows version. This tool will probably not be needed once the migration to git has taken place. )
MinGW: https://github.com/Vuniverse0/mingwInstaller (During the installation you will be asked if you want to use 32 or 64 bits.)
Java OpenJDK: https://www.openlogic.com/openjdk-downloads (for 32 bit last version is 8)
CMake: https://cmake.org/download/#latest
Git https://git-scm.com/downloads
After installing these tools we will go to Edit System Environment Variables in Windows, and in “Path” (in system variables), we will add the path to where MinGW "bin" folder has been installed by clicking on “New” (by default on "C:\Users[username]\mingw32\bin"). Note that the rest of the tools we have installed have already done so.
Now let's download the latest code available in trunk:
For this we are going to use SVN Tortoise. First we will create the folder where we are going to download Speed Dreams source code. I have done it for example in “C:\SD”, but you can do it wherever you want.
Now simply navigate into that folder and right-click on it, then select “SVN Checkout”, and enter the address of the current Sourceforge repository (https://svn.code.sf.net/p/speed-dreams/code/trunk) and click "OK". Now it will start a rather long process that will download all the Speed Dreams code, so wait until it finishes and says something like “Completed: At revision: [number]”.
Building the necessary 3rdParty dependencies
The next step is necessary so that we have all the necessary libraries to build Speed Dreams. To do this, inside the directory where we just downloaded the code (in my case in C:SD) we click the right mouse button and select “Open Git bash here”. A window will open where we will write the necessary commands to build SpeedDreams. Note: To paste the commands in this window we should not use Ctrl+V, but Shift+Ins.
First we go to navigate to 3rdParty source:
cd packaging/3rdParty-devel/Then we will configure it:
cmake -B build -G "MinGW Makefiles"Finally we will build the Speed Dreams libraries and dependencies with :
cmake --build build/ -j[X]X is the number of threads we are going to use. If we have a 6-core processor we can use -j6, for example.This process will take a while to complete, so if we want, we can go for a coffee...
Building the game
In this step we will build the game itself, and for this we navigate back to the root of the folder where the code is in the git bash window that we have opened before (In this case it is
cd ../..). Then we will continue with the following:We will start by configuring the building process:
cmake -B build -G "MinGW Makefiles" -DCMAKE_PREFIX_PATH=$(pwd)/packaging/3rdParty-devel/build/3rdParty -DCMAKE_INSTALL_PREFIX=/c/[PathToWhereWeWantToInstall] -DCMAKE_BUILD_TYPE=DebugWe will now build Speed Dreams:
cmake --build build -j[X]After a while the game will have been built, and we will be able to access its executable by going to "../build/bin" , where it will be "speed-dreams-2.exe" as well as trackeditor and other development tools.
Finally, if you want to install the game in a specified folder (during the configuration) you can do it using this command:
cmake --install build... and that's all. Greetings!
Last edit: leillo1975 2024-10-28
cmake -B build -G "MinGW Makefiles"produces this output:Last edit: jeb.jr 2025-01-29
Hi @jeb-jr, please take into account that the project was migrated from SourceForge to Forgejo 1 month ago.
Please refer to https://forge.a-lec.org/speed-dreams for more information.