Hello everyone,
after seeing this video
and getting exicted plus im on vacation of my job, I have tried to build xash3d from the source code multiple times in two powerbooks (g4 12" and g4 15") running Tiger and failed, the most recent one was failed when it reached 100% of the build during" Linking C shared library "libxash.dylib"
I installed brew and tried to avoid macports (xcode 2.5 required anyways).
here what I have done at thhis point
-get sld2 from Alex_free https://github.com/alex-free/panther_sdl2 (2.0.3)
-install some brews "brew install gcc6 git binutils"
-An "archived" version of the Build and running from archive.org https://web.archive.org/web/20200905061636/https://github.com/FWGS/xash3d/wiki/Building-and-running
-get hlsdk dev : git clone https://github.com/FWGS/vgui-dev hlsdk/
-get xash3d source codes:
https://github.com/FWGS/xash3d/archive/refs/tags/v0.18.zip does not work, https://github.com/FWGS/xash3d/archive/refs/tags/v0.19.2.zip does not work, https://github.com/FWGS/xash3d/archive/refs/tags/v0.19.1.zip does not work,
https://github.com/FWGS/xash3d/archive/refs/tags/v0.19.zip This one works but:
I had to define the architecture in xashfloder/engine/common/build.c:
elif defined mips || defined(LITTLE_ENDIAN)
archname = "mips";
#elif defined __EMSCRIPTEN__
archname = "javascript";
Then on another file Sequence.h I have fixed:
typedef unsigned char byte to typedef unsigned char Byte and then modified the Byte function in every usage on the header file (only two times appeard so not a big concern).
After that I had customized the cmake file (VGUI will not work for PPC) following the "archived" version of the Build and running:
cmake -DHL_SDK_DIR=../hlsdk -DXASH_SDL=yes -DXASH_VGUI=no ../ && make
Output:
[ 23%] Linking C shared library libxash.dylib
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: can't locate file for: -lX11
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: file: -lX11 is not an object file (not allowed in a library)
aaand failed at 23%, so I tuned it a bit more..
cmake -DHL_SDK_DIR=../hlsdk -DXASH_SDL=yes -DXASH_VGUI=no -DCMAKE_C_FLAGS="-I/usr/X11R6/include -L/usr/X11R6/lib" -DCMAKE_OSX_ARCHITECTURES=ppc ../ && make -j4
![r/PowerPC - Trying to build xash3d on 10.4 Tiger (PPC) r/PowerPC - Trying to build xash3d on 10.4 Tiger (PPC)]()
![r/PowerPC - Trying to build xash3d on 10.4 Tiger (PPC) r/PowerPC - Trying to build xash3d on 10.4 Tiger (PPC)]()
and Failed at 100%... Both G4s failed at 100%
I tried to deep dive more and gave up eventually, because I didn't have much idea on the specific error..
Any idea how to clean that error during compilation? maybe it is the GCC Version or something releated to it..
Thank you!
after seeing this video
I installed brew and tried to avoid macports (xcode 2.5 required anyways).
here what I have done at thhis point
-get sld2 from Alex_free https://github.com/alex-free/panther_sdl2 (2.0.3)
-install some brews "brew install gcc6 git binutils"
-An "archived" version of the Build and running from archive.org https://web.archive.org/web/20200905061636/https://github.com/FWGS/xash3d/wiki/Building-and-running
-get hlsdk dev : git clone https://github.com/FWGS/vgui-dev hlsdk/
-get xash3d source codes:
https://github.com/FWGS/xash3d/archive/refs/tags/v0.18.zip does not work, https://github.com/FWGS/xash3d/archive/refs/tags/v0.19.2.zip does not work, https://github.com/FWGS/xash3d/archive/refs/tags/v0.19.1.zip does not work,
https://github.com/FWGS/xash3d/archive/refs/tags/v0.19.zip This one works but:
I had to define the architecture in xashfloder/engine/common/build.c:
elif defined mips || defined(LITTLE_ENDIAN)
archname = "mips";
#elif defined __EMSCRIPTEN__
archname = "javascript";
Then on another file Sequence.h I have fixed:
typedef unsigned char byte to typedef unsigned char Byte and then modified the Byte function in every usage on the header file (only two times appeard so not a big concern).
After that I had customized the cmake file (VGUI will not work for PPC) following the "archived" version of the Build and running:
cmake -DHL_SDK_DIR=../hlsdk -DXASH_SDL=yes -DXASH_VGUI=no ../ && make
Output:
[ 23%] Linking C shared library libxash.dylib
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: can't locate file for: -lX11
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: file: -lX11 is not an object file (not allowed in a library)
aaand failed at 23%, so I tuned it a bit more..
cmake -DHL_SDK_DIR=../hlsdk -DXASH_SDL=yes -DXASH_VGUI=no -DCMAKE_C_FLAGS="-I/usr/X11R6/include -L/usr/X11R6/lib" -DCMAKE_OSX_ARCHITECTURES=ppc ../ && make -j4


and Failed at 100%... Both G4s failed at 100%
I tried to deep dive more and gave up eventually, because I didn't have much idea on the specific error..
Any idea how to clean that error during compilation? maybe it is the GCC Version or something releated to it..
Thank you!