[GAMES] Xash3D Engine for Half-Life (libGL)

User avatar
meveric
Posts: 10563
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 19 times
Been thanked: 162 times
Contact:

Re: [GAMES] Xash3D Engine for Half-Life (libGL)

Unread post by meveric » Fri Nov 22, 2019 3:11 pm

from the xash3d folder you only get:
xash3d, libxash.so, and libxashmenu.so

from the halflife folder in the subfolder dlls you can build hl.so and hl_bs.so

from XashXT you can build in the client folder:
client.so and bsclient.so
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

shanti
Posts: 75
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 11 times
Been thanked: 9 times
Contact:

Re: [GAMES] Xash3D Engine for Half-Life (libGL)

Unread post by shanti » Sat Nov 23, 2019 3:36 am

Thanks! I am closer I think, but still have a bunch of errors, I can see Android.mk on the XashXT folder and I get a "No Target" error when I try to run make on that file, Makefile.pandora and Makefile.rpi also error out, on the hlsdk/dlls folder I see a Android.mk and gives the same error, and a Makefile but it seems its for the i386 version of "hl.so" After modifying the Makefile I can get somewhere but it then errors out, so I am still not sure how to compile those two.

I am sure I am missing something, but I think its way out of my league, so I will just leave it as is unless someone has any other suggestions

Thanks for the patience meveric

User avatar
meveric
Posts: 10563
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 19 times
Been thanked: 162 times
Contact:

Re: [GAMES] Xash3D Engine for Half-Life (libGL)

Unread post by meveric » Sat Nov 23, 2019 4:17 am

Android.mk is a the name suggest for ANDROID and won't help you at all.
Take makefile.pandora or makefile.rpi as a template and adjust it for your ODROID shouldn't be very hard.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

shanti
Posts: 75
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 11 times
Been thanked: 9 times
Contact:

Re: [GAMES] Xash3D Engine for Half-Life (libGL)

Unread post by shanti » Sat Nov 23, 2019 4:23 am

Yeah updated the Makefile.rpi mostly adapted the paths and commands, but it still errors out while compiling

Code: Select all

/ammohistory.cpp:109:35: error: 'min' was not declared in this scope
also

Code: Select all

/client/ammo.cpp:861:11: note: suggested alternative: 'fmax'
  a = (int)max( MIN_ALPHA, m_fFade );
           ^~~
           fmax
make: *** [/XashXT-8f9377490a936c4e6e7a75643437ae47d987b7d6/client/Makefile.rpi:92: /XashXT-8f9377490a936c4e6e7a75643437ae47d987b7d6/client/ammo.o] Error 1
along many similar errors

User avatar
meveric
Posts: 10563
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 19 times
Been thanked: 162 times
Contact:

Re: [GAMES] Xash3D Engine for Half-Life (libGL)

Unread post by meveric » Sat Nov 23, 2019 4:30 am

yes I was affraid of that... this depends on the OS and environment you're trying to compile it on.
This patch should help:

Code: Select all

diff --git a/dlls/apache.cpp b/dlls/apache.cpp
index 693184a..ddac4d7 100644
--- a/dlls/apache.cpp
+++ b/dlls/apache.cpp
@@ -22,6 +22,9 @@
 #include "nodes.h"
 #include "effects.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 extern DLL_GLOBAL int          g_iSkillLevel;
 
 #define SF_WAITFORTRIGGER      (0x04 | 0x40) // UNDONE: Fix!
diff --git a/dlls/client.cpp b/dlls/client.cpp
index a0380aa..600b5ac 100755
--- a/dlls/client.cpp
+++ b/dlls/client.cpp
@@ -65,6 +65,9 @@ extern cvar_t allow_spectators;
 extern int g_teamplay;
 #endif
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 void LinkUserMessages( void );
 
 /*
diff --git a/dlls/combat.cpp b/dlls/combat.cpp
index 5acd32b..b0424a7 100644
--- a/dlls/combat.cpp
+++ b/dlls/combat.cpp
@@ -40,6 +40,9 @@ extern entvars_t *g_pevLastInflictor;
 #define        HUMAN_GIB_COUNT                 6
 #define ALIEN_GIB_COUNT                        4
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 
 // HACKHACK -- The gib velocity equations don't work
 void CGib :: LimitVelocity( void )
diff --git a/dlls/effects.cpp b/dlls/effects.cpp
index 4eaf74e..f8b5b0a 100755
--- a/dlls/effects.cpp
+++ b/dlls/effects.cpp
@@ -27,6 +27,8 @@
 
 #define SF_FUNNEL_REVERSE                      1 // funnel effect repels particles instead of attracting them.
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
 
 // Lightning target, just alias landmark
 LINK_ENTITY_TO_CLASS( info_target, CPointEntity );
@@ -2397,4 +2399,4 @@ void CEnvWarpBall::Think( void )
        }
        if ( pev->spawnflags & SF_REMOVE_ON_FIRE ) UTIL_Remove( this );
 } 
-#endif
\ No newline at end of file
+#endif
diff --git a/dlls/hassassin.cpp b/dlls/hassassin.cpp
index 0ab2591..cbbf904 100644
--- a/dlls/hassassin.cpp
+++ b/dlls/hassassin.cpp
@@ -28,6 +28,9 @@
 #include       "soundent.h"
 #include       "game.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 extern DLL_GLOBAL int  g_iSkillLevel;
 
 //=========================================================
@@ -1012,4 +1015,4 @@ Schedule_t* CHAssassin :: GetScheduleOfType ( int Type )
        return CBaseMonster :: GetScheduleOfType( Type );
 }
 
-#endif
\ No newline at end of file
+#endif
diff --git a/dlls/items.cpp b/dlls/items.cpp
index 7082b6b..27d1202 100755
--- a/dlls/items.cpp
+++ b/dlls/items.cpp
@@ -29,6 +29,9 @@
 #include "items.h"
 #include "gamerules.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 extern int gmsgItemPickup;
 
 class CWorldItem : public CBaseEntity
diff --git a/dlls/maprules.cpp b/dlls/maprules.cpp
index c57905a..795d20a 100644
--- a/dlls/maprules.cpp
+++ b/dlls/maprules.cpp
@@ -30,6 +30,9 @@
 #include "cbase.h"
 #include "player.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 class CRuleEntity : public CBaseEntity
 {
 public:
diff --git a/dlls/monsters.cpp b/dlls/monsters.cpp
index 7395c45..5829edb 100644
--- a/dlls/monsters.cpp
+++ b/dlls/monsters.cpp
@@ -36,6 +36,8 @@
 
 #define MONSTER_CUT_CORNER_DIST                8 // 8 means the monster's bounding box is contained without the box of the node in WC
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
 
 Vector VecBModelOrigin( entvars_t* pevBModel );
 
diff --git a/dlls/multiplay_gamerules.cpp b/dlls/multiplay_gamerules.cpp
index 9362067..2704ad0 100644
--- a/dlls/multiplay_gamerules.cpp
+++ b/dlls/multiplay_gamerules.cpp
@@ -28,6 +28,9 @@
 #include       "voice_gamemgr.h"
 #include       "hltv.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 #if !defined ( _WIN32 )
 #include <ctype.h>
 #endif
diff --git a/dlls/nihilanth.cpp b/dlls/nihilanth.cpp
index 6c0a500..e93b9a7 100644
--- a/dlls/nihilanth.cpp
+++ b/dlls/nihilanth.cpp
@@ -25,6 +25,9 @@
 #define N_SCALE                15
 #define N_SPHERES      20
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 class CNihilanth : public CBaseMonster
 {
 public:
diff --git a/dlls/nodes.cpp b/dlls/nodes.cpp
index 69ccae5..0ba8890 100644
--- a/dlls/nodes.cpp
+++ b/dlls/nodes.cpp
@@ -24,6 +24,9 @@
 #include       "animation.h"
 #include       "doors.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 #if !defined ( _WIN32 )
 #include <sys/stat.h>
 #include <sys/types.h>
diff --git a/dlls/player.cpp b/dlls/player.cpp
index 0904807..d65e8b1 100644
--- a/dlls/player.cpp
+++ b/dlls/player.cpp
@@ -37,6 +37,9 @@
 #include "pm_shared.h"
 #include "hltv.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 // #define DUCKFIX
 
 extern DLL_GLOBAL ULONG                g_ulModelIndexPlayer;
diff --git a/dlls/sound.cpp b/dlls/sound.cpp
index 92a4c55..f41cd9c 100644
--- a/dlls/sound.cpp
+++ b/dlls/sound.cpp
@@ -28,6 +28,8 @@
 #include <ctype.h>
 #endif
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
 
 static char *memfgets( byte *pMemFile, int fileSize, int &filePos, char *pBuffer, int bufferSize );
 
diff --git a/dlls/talkmonster.cpp b/dlls/talkmonster.cpp
index 47011aa..fb3a8cc 100755
--- a/dlls/talkmonster.cpp
+++ b/dlls/talkmonster.cpp
@@ -23,6 +23,9 @@
 #include       "soundent.h"
 #include       "animation.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 //=========================================================
 // Talking monster base class
 // Used for scientists and barneys
diff --git a/dlls/turret.cpp b/dlls/turret.cpp
index 45afa75..393c1a0 100644
--- a/dlls/turret.cpp
+++ b/dlls/turret.cpp
@@ -41,6 +41,9 @@ extern Vector VecBModelOrigin( entvars_t* pevBModel );
 #define TURRET_MAXSPIN 5               // seconds turret barrel will spin w/o a target
 #define TURRET_MACHINE_VOLUME  0.5
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 typedef enum
 {
        TURRET_ANIM_NONE = 0,
diff --git a/dlls/util.cpp b/dlls/util.cpp
index bf58678..756bfa2 100644
--- a/dlls/util.cpp
+++ b/dlls/util.cpp
@@ -31,6 +31,9 @@
 #include "weapons.h"
 #include "gamerules.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 float UTIL_WeaponTimeBase( void )
 {
 #if defined( CLIENT_WEAPONS )
diff --git a/dlls/weapons.cpp b/dlls/weapons.cpp
index f136374..7319573 100644
--- a/dlls/weapons.cpp
+++ b/dlls/weapons.cpp
@@ -34,6 +34,8 @@
 extern CGraph  WorldGraph;
 extern int gEvilImpulse101;
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
 
 #define NOT_USED 255
 
diff --git a/dmc/dlls/client.cpp b/dmc/dlls/client.cpp
index a248f37..cfd18f9 100644
--- a/dmc/dlls/client.cpp
+++ b/dmc/dlls/client.cpp
@@ -37,6 +37,9 @@
 #include "usercmd.h"
 #include "netadr.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 #if !defined ( _WIN32 )
 #include <ctype.h> // isspace,isprint
 #endif
diff --git a/dmc/dlls/combat.cpp b/dmc/dlls/combat.cpp
index 53e3dab..3922a50 100644
--- a/dmc/dlls/combat.cpp
+++ b/dmc/dlls/combat.cpp
@@ -31,6 +31,9 @@
 #include "func_break.h"
 #include "player.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 extern DLL_GLOBAL Vector               g_vecAttackDir;
 extern DLL_GLOBAL int                  g_iSkillLevel;
 
diff --git a/dmc/dlls/effects.cpp b/dmc/dlls/effects.cpp
index 7c02b40..4c2b06c 100644
--- a/dmc/dlls/effects.cpp
+++ b/dmc/dlls/effects.cpp
@@ -27,6 +27,9 @@
 
 #define SF_FUNNEL_REVERSE                      1 // funnel effect repels particles instead of attracting them.
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 
 // Lightning target, just alias landmark
 LINK_ENTITY_TO_CLASS( info_target, CPointEntity );
diff --git a/dmc/dlls/maprules.cpp b/dmc/dlls/maprules.cpp
index f6d1334..a383042 100644
--- a/dmc/dlls/maprules.cpp
+++ b/dmc/dlls/maprules.cpp
@@ -30,6 +30,9 @@
 #include "cbase.h"
 #include "player.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 class CRuleEntity : public CBaseEntity
 {
 public:
diff --git a/dmc/dlls/multiplay_gamerules.cpp b/dmc/dlls/multiplay_gamerules.cpp
index cae23d1..91f9498 100644
--- a/dmc/dlls/multiplay_gamerules.cpp
+++ b/dmc/dlls/multiplay_gamerules.cpp
@@ -30,6 +30,9 @@
 #include <ctype.h>
 #endif
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 #define INTERMISSION_TIME              60
 
 #if defined( THREEWAVE )
diff --git a/dmc/dlls/nodes.cpp b/dmc/dlls/nodes.cpp
index b2bd199..3f8fd70 100644
--- a/dmc/dlls/nodes.cpp
+++ b/dmc/dlls/nodes.cpp
@@ -39,6 +39,9 @@
 #define        MAX_NODE_INITIAL_LINKS  128
 #define        MAX_NODES               1024
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 extern DLL_GLOBAL edict_t              *g_pBodyQueueHead;
 
 Vector VecBModelOrigin( entvars_t* pevBModel );
diff --git a/dmc/dlls/player.cpp b/dmc/dlls/player.cpp
index 58b0d80..9621ce6 100644
--- a/dmc/dlls/player.cpp
+++ b/dmc/dlls/player.cpp
@@ -34,6 +34,9 @@
 #include "gamerules.h"
 #include "quake_gun.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 // #define DUCKFIX
 
 extern bool g_bHaveMOTD;
diff --git a/dmc/dlls/sound.cpp b/dmc/dlls/sound.cpp
index 5d2790e..76c54be 100644
--- a/dmc/dlls/sound.cpp
+++ b/dmc/dlls/sound.cpp
@@ -27,6 +27,9 @@
 #include <ctype.h>
 #endif
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 static char *memfgets( byte *pMemFile, int fileSize, int &filePos, char *pBuffer, int bufferSize );
 
 
diff --git a/dmc/dlls/util.cpp b/dmc/dlls/util.cpp
index 4a1d347..7508355 100644
--- a/dmc/dlls/util.cpp
+++ b/dmc/dlls/util.cpp
@@ -31,6 +31,9 @@
 #include "weapons.h"
 #include "gamerules.h"
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
+
 /*
 =====================
 UTIL_WeaponTimeBase
diff --git a/dmc/dlls/weapons.cpp b/dmc/dlls/weapons.cpp
index 13ff03f..ab5a3df 100644
--- a/dmc/dlls/weapons.cpp
+++ b/dmc/dlls/weapons.cpp
@@ -34,6 +34,8 @@
 extern CGraph  WorldGraph;
 extern int gEvilImpulse101;
 
+#define min(a, b)  (((a) < (b)) ? (a) : (b))
+#define max(a, b)  (((a) > (b)) ? (a) : (b))
 
 #define NOT_USED 255
 

There are probably better ways to do this, but it should work.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

shanti
Posts: 75
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 11 times
Been thanked: 9 times
Contact:

Re: [GAMES] Xash3D Engine for Half-Life (libGL)

Unread post by shanti » Sat Nov 23, 2019 4:49 am

Is this patch applied on the https://github.com/ptitSeb/halflife repo? because if it is, then it fails

Let me explain fresh because I think I am getting really confused lol.

I am using these 3 repos

https://github.com/ptitSeb/xash3d
https://github.com/ptitSeb/halflife (although xash3d already links to this in the hlsdk folder)
https://github.com/ptitSeb/XashXT

building xash3d works fine with

Code: Select all

-DXASH_X11=ON -DXASH_SDL=ON -DRPI=ON -DXASH_GLES=ON -DHL_SDK_DIR=./hlsdk
But only the xash3d .so files are compiled

Trying to build the XashXT or halflife results in the errors I gave for max and so on, but your patch does not apply on the repo, (although I think I could probably manually add the definition and test it. )

Again, greatly appreciate the help!

shanti
Posts: 75
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 11 times
Been thanked: 9 times
Contact:

Re: [GAMES] Xash3D Engine for Half-Life (libGL)

Unread post by shanti » Sat Nov 23, 2019 5:00 am

Applying manually your patch fixed XashXT ow, to try the halflife sdk :)

shanti
Posts: 75
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 11 times
Been thanked: 9 times
Contact:

Re: [GAMES] Xash3D Engine for Half-Life (libGL)

Unread post by shanti » Sat Nov 23, 2019 6:40 am

meveric wrote:
Sat Nov 23, 2019 4:30 am
There are probably better ways to do this, but it should work.
I applied these lines to the files that gave me the error and now compilation finished correctly :) Thank you so much for your help! now all I need is test the result.

shanti
Posts: 75
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 11 times
Been thanked: 9 times
Contact:

Re: [GAMES] Xash3D Engine for Half-Life (libGL)

Unread post by shanti » Sat Nov 23, 2019 8:35 am

I spoke too soon :/

Any idea how to deal with this error?

Code: Select all

/xash3d-1d61bbdce5e2db75a3435920cf4cefeca0a07c46/hlsdk/pm_shared/obj/pm_shared.o
/xash3d-1d61bbdce5e2db75a3435920cf4cefeca0a07c46/hlsdk/dlls/client.cpp:598: error: undefined reference to 'CBasePlayer::Observer_FindNextPlayer(bool)'
/xash3d-1d61bbdce5e2db75a3435920cf4cefeca0a07c46/hlsdk/dlls/client.cpp:587: error: undefined reference to 'CBasePlayer::Observer_SetMode(int)'
/xash3d-1d61bbdce5e2db75a3435920cf4cefeca0a07c46/hlsdk/dlls/player.cpp:1887: error: undefined reference to 'CBasePlayer::Observer_HandleButtons()'
/xash3d-1d61bbdce5e2db75a3435920cf4cefeca0a07c46/hlsdk/dlls/player.cpp:1888: error: undefined reference to 'CBasePlayer::Observer_CheckTarget()'
/xash3d-1d61bbdce5e2db75a3435920cf4cefeca0a07c46/hlsdk/dlls/player.cpp:1889: error: undefined reference to 'CBasePlayer::Observer_CheckProperties()'
/xash3d-1d61bbdce5e2db75a3435920cf4cefeca0a07c46/hlsdk/dlls/player.cpp:1487: error: undefined reference to 'CBasePlayer::Observer_SetMode(int)'
/xash3d-1d61bbdce5e2db75a3435920cf4cefeca0a07c46/hlsdk/dlls/obj/cbase.o:cbase.cpp:gFunctionTable: error: undefined reference to 'PM_Move'
/xash3d-1d61bbdce5e2db75a3435920cf4cefeca0a07c46/hlsdk/dlls/obj/cbase.o:cbase.cpp:gFunctionTable: error: undefined reference to 'PM_Init'
/xash3d-1d61bbdce5e2db75a3435920cf4cefeca0a07c46/hlsdk/dlls/obj/cbase.o:cbase.cpp:gFunctionTable: error: undefined reference to 'PM_FindTextureType'
collect2: error: ld returned 1 exit status
make: *** [/xash3d-1d61bbdce5e2db75a3435920cf4cefeca0a07c46/hlsdk/dlls/Makefile:192: hl_arm.so] Error 1

User avatar
meveric
Posts: 10563
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 19 times
Been thanked: 162 times
Contact:

Re: [GAMES] Xash3D Engine for Half-Life (libGL)

Unread post by meveric » Sat Nov 23, 2019 8:39 am

you're using the wrong Makefile... as I said, use the makefile.rpi as a template NOT the "Makefile".
The only thing you need to adjust is the: LOCAL_CFLAGS as here are definitions for the Board itself, like what CPU parameters it should use.
Don't mess with the "Makefile".
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

shanti
Posts: 75
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 11 times
Been thanked: 9 times
Contact:

Re: [GAMES] Xash3D Engine for Half-Life (libGL)

Unread post by shanti » Sat Nov 23, 2019 9:32 am

Damn it! for some reason I got caught up with the subfolder hlsdk which I assumed was the same as the halflife repo for some reason!

Post Reply

Return to “Games and Emulators”

Who is online

Users browsing this forum: No registered users and 2 guests