Moved build instructions to seperate file

Dieser Commit ist enthalten in:
Reinder Feenstra 2023-02-06 19:41:30 +01:00
Ursprung b6379bf5f8
Commit 5dd9fed9b1
2 geänderte Dateien mit 96 neuen und 48 gelöschten Zeilen

94
BUILDING.md Normale Datei
Datei anzeigen

@ -0,0 +1,94 @@
# Traintastic - Build instructions
For generic project information, see [README.md](README.md).
## Build Traintastic client
### Requirements
- C++ compiler: MSVC, MinGW, GCC or clang.
- CMake 3.9+
- Qt 5.12+ or Qt 6
### Common
Create a build directory:
- From the project root go into the client directory: `cd client`
- Create a build directory: `cmake -E make_directory build`
- Go into the created build directory: `cd build`
### Windows (VS2019, MSVC)
In the *build* directory:
- Configure CMake: `cmake ../ -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release`
- Build traintastic-client: `cmake --build . --config Release`
### Windows (MinGW)
*TODO*
### Linux
In the *build* directory:
- Configure CMake: `cmake ../ -DCMAKE_BUILD_TYPE=Release`
- Build traintastic-client: `cmake --build . --config Release`
### macOS
In the *build* directory:
- Configure CMake: `cmake ../ -DCMAKE_BUILD_TYPE=Release -DQt5_DIR=/path/to/Qt/5.15.2/clang_64/lib/cmake/Qt5`
- Build traintastic-client: `cmake --build . --config Release`
## Building Traintastic server
### Requirements
- C++ compiler: MinGW, GCC or Clang (MSVC doesn't work yet)
- CMake 3.9+
- boost (Linux only)
- liblua5.3 (non Windows only)
- libarchive (non Windows only)
- libsystemd (Linux only)
### Common
Create a build directory:
- From the project root go into the server directory: `cd server`
- Create a build directory: `cmake -E make_directory build`
- Go into the created build directory: `cd build`
### Windows (VS2019, clang)
In the *build* directory:
- Configure CMake: `cmake ../ -G "Visual Studio 16 2019" -A x64 -T ClangCL -DCMAKE_BUILD_TYPE=Release`
- Build traintastic-server: `cmake --build . --config Release --target traintastic-server`
### Windows (MinGW)
*TODO*
### Linux
In the *build* directory:
- Configure CMake: `cmake ../ -DCMAKE_BUILD_TYPE=Release`
- Build traintastic-server: `cmake --build . --config Release --target traintastic-server`
### macOS
In the *build* directory:
- Configure CMake: `cmake ../ -DCMAKE_BUILD_TYPE=Release`
- Build traintastic-server: `cmake --build . --config Release --target traintastic-server`
## Build Traintastic manual
### Requirements
- Python 3.6+ (older versions untested)
- cmarkgfm (`pip3 install cmarkgfm`)
### All platforms
- From the project root go into the manual directory: `cd manual`
- Run the build script: `python3 builddoc.py html-single-page --output-dir build`

Datei anzeigen

@ -18,56 +18,10 @@ The project goal is to develop open source software that can control everything
## Build Traintastic from source
*This section is only for developers, if your just want to use it [download Traintastic](https://traintastic.org/download).*
*Only for developers, if your just want to use it [download Traintastic](https://traintastic.org/download).*
See [BUILDING.md](BUILDING.md).
### Requirements:
- Client:
- C++ compiler: MSVC, GCC or Clang
- Visual Studio 16 2019 (Windows only)
- CMake 3.9+
- Qt 5.15+
- Server:
- C++ compiler: GCC or Clang (MSVC doesn't work yet)
- Visual Studio 16 2019 (Windows only)
- CMake
- liblua5.3 (Linux only)
- Manual:
- Python 3.6+ (older versions untested)
- cmarkgfm (`pip3 install cmarkgfm`)
Note: When cloning the source from git, git-lfs is required.
### Build Traintastic client
- From the project root go into the client directory: `cd client`
- Create a build directory: `cmake -E make_directory build`
- Go into the created build directory: `cd build`
- Run CMake:
- Windows: `cmake ../ -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release`
- Linux: `cmake ../ -DCMAKE_BUILD_TYPE=Release`
- macOS: `cmake ../ -DCMAKE_BUILD_TYPE=Release -DQt5_DIR=/path/to/Qt/5.15.2/clang_64/lib/cmake/Qt5`
- Build traintastic-client: `cmake --build . --config Release`
### Build Traintastic server
- From the project root go into the server directory: `cd server`
- Create a build directory: `cmake -E make_directory build`
- Go into the created build directory: `cd build`
- Configure CMake:
- Windows: `cmake ../ -G "Visual Studio 16 2019" -A x64 -T ClangCL -DCMAKE_BUILD_TYPE=Release`
- Linux: `cmake ../ -DCMAKE_BUILD_TYPE=Release`
- macOS: `cmake ../ -DCMAKE_BUILD_TYPE=Release`
- Build traintastic-server: `cmake --build . --config Release --target traintastic-server`
### Build Traintastic manual
1. From the project root go into the manual directory: `cd manual`
2. Run the build script: `python3 builddoc.py html-single-page --output-dir build`
## Contributors