Setup your msvc6 enviroment, unpack SDL2 to xash3d folder and do: cd (xash3d)\engineĪll mods that ported to android may be build to linux using Android.mk with microndk:Ĭlone microndk repo somewhere, change xash3d_config to preffered configuration (change arch to x86 This is legacy configuration, but MSVC6 seems to generate more stable and more effective code There is a solution for VS2017 in msvc/ dir in the root directory of repository. See other possible build configurations in our wiki: ] Manual build (without CMake) Building on Windows Modern Visual Studio
#Xash3d half life mods 64 Bit#
If you really know WHY you need 64 bit build of Xash3D FWGS, pass -DXASH_64BIT=yes to cmake.
NOTE: Xash3D FWGS itself supports 64-bit build, but due to it's useless, it's not allowed by default. You can download SDL2 development files at official site. For example: -G "Visual Studio 15 2017" -DSDL2_PATH="c:\projects\sdl2\" NOTE: On Windows you need to pass additional keys to target specific version of Visual Studio and set SDL2 path. On 64 bit systems: cmake -DHL_SDK_DIR=./hlsdk -DXASH_SDL=yes -DXASH_VGUI=yes -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" -DCMAKE_EXE_LINKER_FLAGS="-m32". On 32 bit systems: cmake -DHL_SDK_DIR=./hlsdk -DXASH_SDL=yes -DXASH_VGUI=yes. Implying VGUI headers and library is cloned into hlsdk you should be able to build Xash3D as: mkdir -p build OR you can use vgui-dev repository with just ripped off VGUI headers and library. NOTE: VGUI is exists only for Linux/MacOSX/Windows and only for x86.ĭisable it by -DXASH_VGUI=no if you are targetting non-supported architecture.Ĭlone Xash3D repository using git: git clone -recursive Ĭlone Half Life 1 SDK with git: git clone hlsdk/ If you want to enable VGUI support, you need part of Half-Life 1 SDK to build vgui_support library.