mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Merge pull request #4 from DwifteJB/main
fix: builds & add compile instructions to README
This commit is contained in:
commit
794e042dea
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -437,3 +437,7 @@ Minecraft.Client/Saves/
|
||||||
# Visual Studio Per-User Config
|
# Visual Studio Per-User Config
|
||||||
*.user
|
*.user
|
||||||
/out
|
/out
|
||||||
|
|
||||||
|
# IDE files
|
||||||
|
.idea/
|
||||||
|
.kate-swp
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
#include "ChatScreen.h"
|
#include "ChatScreen.h"
|
||||||
#include "ClientConnection.h"
|
#include "ClientConnection.h"
|
||||||
#include "Font.h"
|
#include "Font.h"
|
||||||
#include "MultiplayerLocalPlayer.h"
|
#include "MultiPlayerLocalPlayer.h"
|
||||||
#include "../Minecraft.World/SharedConstants.h"
|
#include "../Minecraft.World/SharedConstants.h"
|
||||||
#include "../Minecraft.World/StringHelpers.h"
|
#include "../Minecraft.World/StringHelpers.h"
|
||||||
#include "../Minecraft.World/ChatPacket.h"
|
#include "../Minecraft.World/ChatPacket.h"
|
||||||
|
|
|
||||||
13
README.md
13
README.md
|
|
@ -109,6 +109,19 @@ cmake -S . -B build -G "Visual Studio 17 2022" -A x64
|
||||||
cmake --build build --config Debug --target MinecraftClient
|
cmake --build build --config Debug --target MinecraftClient
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### CMake (Linux Cross-compilation)
|
||||||
|
|
||||||
|
MinecraftConsoles does not support Linux but can cross-compile a Windows build from Linux.
|
||||||
|
|
||||||
|
You will need a Windows x64 MSVC SDK. You can get one from [msvc-wine](https://github.com/mstorsjo/msvc-wine).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake .. -B . -G Ninja -DWINDOWS_SDK_PATH=<windows msvc sdk location> -DCMAKE_TOOLCHAIN_FILE=../cmake/LinuxCrosscompile.cmake -DCMAKE_BUILD_TYPE=Debug
|
||||||
|
ninja
|
||||||
|
wine MinecraftClient.exe
|
||||||
|
```
|
||||||
|
|
||||||
For more information, see [COMPILE.md](COMPILE.md).
|
For more information, see [COMPILE.md](COMPILE.md).
|
||||||
|
|
||||||
## Known Issues
|
## Known Issues
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue