Closed mittorn closed 6 years ago
Which branch? 0.19.x?
Yes
Can't compile
git status
On branch 0.19.x
Your branch is up-to-date with 'origin/0.19.x'.
nothing to commit, working tree clean
make -f Makefile.linux XASH_DEDICATED=1
Makefile.linux:149: *** recipe commences before first target. Stop.
Use CMake. Makefiles is deprecated now.
cmake . -DXASH_DEDICATED=1
cmake -DHL_SDK_DIR=../../hlsdk-xash3d -DXASH_DEDICATED=1 -DCMAKE_C_FLAGS="-
m32" -DCMAKE_CXX_FLAGS="-m32" -DCMAKE_EXE_LINKER_FLAGS="-m32" ../ && make
CMake Error at CMakeLists.txt:86 (message):
Xash3D doesn't work with 64 bit systems well and there is almost no games
compiled for 64-bit. Please, set CMake to build for 32 system. If you
still want 64bit build, pass -DXASH_64BIT=1 to CMake
Ok, I needed to remove and recreate my build directory to make it work
Do I need both generated executable and libxash.so?
Cmake still does not work on 64bit??? a1batross, do not try to mislead people, it I'd just my mistake in makefile
Updated makefile, should work now
Now trying with Makefile I got another error
cc -g -O2 -march=native -fno-omit-frame-pointer -ggdb -funsigned-char -Wall -Wextra -Wsign-compare -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-variable -m32 -I/usr/include/SDL2 -Icommon -I../common -I. -I../pm_shared -Iclient -Iserver -Iclient/vgui -Icommon/sdl -DUSE_SELECT -DCOLORIZE_CONSOLE -DDEBUGNAN -DXASH_FORCEINLINE -DGDB_BREAK -DXASH_FASTSTR -DXASH_DEDICATED -DSINGLE_BINARY -c "common/imagelib/img_tga.c" -o "obj/common/imagelib/img_tga.o" -Wno-unused-result -fvisibility=hidden
ifeq (,1)
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
Makefile.linux:150: recipe for target 'xash' failed
Upd: works after the another commit. Will change my server when there will be no people playing.
Cmake works just fine on 64bit so long as you pass -DXASH_64BIT=1
, like it shows in @FreeSlave's paste of the last CMake error...
That being said, as xash3d DOES work on 64-bit systems with halflife, perhaps that warning and error path without -DXASH_64BIT=1 should go away?
It should not go away. In most cases one wants to build 32-bit version, since Half-Life and mods are 32-bit.
@mittorn did work so the half-life mod does indeed work on 64bit. I run it on a system where running 32bit on 64bit is simply not an option, so I promise it works ;)
I know it can be compiled for 64-bit. But original hl is 32-bit. And most mods are 32-bit only. So for now it's better to leave this option for people who know what they are doing.
FreeSlave, if you want to build with cmake, check options .travis.yml in 0.19.x, it seems to work on 64bit system
@mittorn it's ok as is. I just needed to recreate build directory.
We need to test dedicated servers before release. Try update dedicated server, but backup latest version.