From 39af05eeb45b55ea7acc18ba94b8894a822b6107 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 27 Jun 2019 22:47:04 +1000 Subject: [PATCH] Add details on how to fix unpatched web client and 'windows SDK not found' --- misc/compile-fixes.md | 99 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 misc/compile-fixes.md diff --git a/misc/compile-fixes.md b/misc/compile-fixes.md new file mode 100644 index 000000000..5bcaf6cfd --- /dev/null +++ b/misc/compile-fixes.md @@ -0,0 +1,99 @@ +Visual studio unsupported platform toolset +--------------------- +To fix the ```Error MSB8036 The Windows SDK version 5.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution"``` +* Right click **ClassiCube** project (it's under the *Solution 'ClassiCube'* in the *Solution Explorer* pane) +* Click **Properties** +* Make sure you are in **General** tab under **Configuration Properties** +* You should see a dropdown named **Platform Toolset**. Click on it. +* Change it to one of the toolsets in the list that pops up. +* Click **OK**. You should be able to compile now + +![image](https://user-images.githubusercontent.com/6509348/60266950-727e4780-992c-11e9-98fb-85eb34959e93.png) + +Common compilation errors +--------------------- +#### Undefined reference to 'clock_gettime' +Add ```-lrt``` when compiling. Occurs when using glibc versions before 2.17. + +#### fatal error: execinfo.h: No such file or directory +Install ```libexecinfo``` package. Occurs when using musl. + +#### Undefined reference to 'backtrace' +Add ```-lexecinfo``` when compiling. Occurs when using musl. + +#### Undefined reference to 'getcontext' +Occurs when using musl. Change +```C +getcontext(&ctx); +Logger_AbortCommon(result, raw_msg, &ctx); +``` +to +```C +Logger_AbortCommon(result, raw_msg, NULL); +``` + +Webclient patches +--------------------- +#### Starting game **Error 00000002 when setting current directory** +This is caused by IndexedDB not being initialised, which also means saved maps are lost when the tab is closed. + +Due to how IndexedDB works, you must load and initialise it before the game starts. Change: + +``` +