GAMELASTER
Posts: 38
Joined: Sat Feb 14, 2015 8:05 pm

Re: Xash3D Engine on Raspberry Pi

Sun Mar 06, 2016 7:38 pm

I mean normal console in Raspberry Pi (no SSH, of course)
Oh, i dont mean FBA but FBO (crap)
https://github.com/ptitSeb/glshim#libgl_fb
Look this. But it is setted correctly (1), so I dont know why it dont work for me.

For you it is work good? You used a X server or no?

CockPitt
Posts: 109
Joined: Tue Jun 02, 2015 1:29 pm

Re: Xash3D Engine on Raspberry Pi

Sun Mar 06, 2016 7:46 pm

Yes I'm using an X server. Are you using wheezy or jessie? I have had similar problems with wheezy. Also what command are you using to launch the game?

GAMELASTER
Posts: 38
Joined: Sat Feb 14, 2015 8:05 pm

Re: Xash3D Engine on Raspberry Pi

Mon Mar 07, 2016 9:22 am

Im using RetroPie Jessie Image. It's not contains a X server, all games running as fullscreen FBO. Maybe for this I don't saw anything, but... Parameter is setted to draw in fullscreen mode at glshin

ptitSeb
Posts: 276
Joined: Tue May 19, 2015 2:49 pm

Re: Xash3D Engine on Raspberry Pi

Mon Mar 07, 2016 9:41 am

HI there, I don't a RPI , so cannot be of much help, but about the lack of X server, I think it will be an issue.
glshim use X for a few function (but you can try to activate the Android build, as this one doesn't use X). I'm not sure if Xash3D itself use X (for input mainly), maybe just SDL2.

GAMELASTER
Posts: 38
Joined: Sat Feb 14, 2015 8:05 pm

Re: Xash3D Engine on Raspberry Pi

Mon Mar 07, 2016 10:21 am

I know the PPSSPP running under SDL and it have this solved. I run the game at i see only console, no game :/

GAMELASTER
Posts: 38
Joined: Sat Feb 14, 2015 8:05 pm

Re: Xash3D Engine on Raspberry Pi

Mon Mar 07, 2016 6:43 pm

LIBGL_FB=1 LIBGL_BATCH=1 LD_LIBRARY_PATH=/opt/vc/lib:/home/pi/hl/SDL2_image-2.0.0/build/.libs:/home/pi/hl/SDL2-2.0.3/build/build/.libs:/home/pi/hl/glshim/lib/:. ./xash3d -console -debug

My launching options

GAMELASTER
Posts: 38
Joined: Sat Feb 14, 2015 8:05 pm

Re: Xash3D Engine on Raspberry Pi

Mon Mar 07, 2016 7:57 pm

Im sorry for spamming with posts, actually I know why its not working, in SDL2 is deleted a FrameBuffer support, only DirectFB, so I recompiled SDL2 with DirectFB, but still its not working good. Any ideas to make FrameBuffer Output working?

GAMELASTER
Posts: 38
Joined: Sat Feb 14, 2015 8:05 pm

Re: Xash3D Engine on Raspberry Pi

Fri Mar 11, 2016 10:10 am

Maybe I know how to run it, I will try that today, its needed to only run XVFB (X Virtual Framebuffer) before game and then it will be maybe works!

CockPitt
Posts: 109
Joined: Tue Jun 02, 2015 1:29 pm

Re: Xash3D Engine on Raspberry Pi

Sun Mar 13, 2016 4:44 pm

@GAMELASTER I'm curious if it worked?

Today I successfully launched Half-Life with the new OpenGL driver on my old screen (1920x1080). I skipped the glshim part and launched by typing:

Code: Select all

LIBGL_FB=1 LIBGL_BATCH=1 LD_LIBRARY_PATH=/opt/vc/lib:. ./xash3d -console -debug -nosound
I disabled sound because it caused even more issues than I had with this driver. Even though the fps are low (15-18 I guess, please note that the driver is still in progress) the framerate doesn't drop in intensive areas as far as I noticed, but I was only able to play half of the intro. I also noticed a decent performance boost on lower resolutions. But the game doesn't scale right and it crashes more often. Most crashes are kind of odd because it throws me back into the main menu but I'm not able to resume the game. It's now possilbe to alt+tab. The console in game still doesn't work but the terminal seems to be very chatty now. I also wanted to mention that the CPU load is at around 10-12% (25% with glshim). I think the driver relieves the CPU and puts the load on the GPU instead.
About the "crashes": I'm not able to play through the full intro every time it throws me back into the main menu at this part of the game: http://imgur.com/F8kbvul

Console says:

Code: Select all

pi@raspberrypi:~/Half-Life $ LIBGL_FB=1 LIBGL_BATCH=1 LD_LIBRARY_PATH=/opt/vc/lib:. ./xash3d -console -debug -nosound
[15:47:18] . is working directory now
=================================================================================
	 (build 3153) started at Mar13 2016 [15:47.18]
=================================================================================
[15:47:20] execing video.cfg
[15:47:20] execing opengl.cfg
[15:47:20] Set: Mode 20: 16x9 [1920x1080]
[15:47:20] Video: Gallium 0.4 on VC4
dlopen("./libxashmenu.so", RTLD_LAZY)=0x211a40, error=(null)
[15:47:21] AVI: Not supported
[15:47:21] UI_SetColors: colors.lst not found
[15:47:21] UI_LoadBmpButtons: btns_main.bmp not found
[15:47:21] Audio: Disabled
CL_Init, game = Half-Life
dlopen("./client.so", RTLD_LAZY)=0x2266e8, error=(null)
[15:47:21] joystick not found -- driver not present

[15:47:21] execing config.cfg
[15:47:21] execing valve.rc
[15:47:21] execing language.cfg
[15:47:21] execing autoexec.cfg
[15:47:21] execing violence.cfg
[15:47:21] execing config.cfg
CL_Init, game = Half-Life
dlopen("./hl.so", RTLD_LAZY)=0x31d658, error=(null)
[15:47:28] Dll loaded for mod Half-Life
[15:47:28] Server loaded
[15:47:28] Spawn Server: c0a0
[15:47:29] execing skill.cfg
[15:47:29] server: GAME SKILL LEVEL:1
[15:47:30] SV_LoadFromFile: 0 entities inhibited
[15:47:30] server: Dead end link trainstop27
[15:47:30] Game started
[15:47:30] Spooling demo header.
[15:47:32] level loaded at 3.45 sec
[15:47:33] server: Found walker1, but can't play!
[15:47:33] server: Found walker2, but can't play!
[15:47:33] loading: models/barney01.mdl
[15:47:34] server: Found walker1, but can't play!
[15:47:35] server: Done.
[15:47:40] loading: models/scientist01.mdl
[15:47:54] Saving game to save/quick.sav...
[15:47:56] loading: models/scientist02.mdl
[15:47:56] loading: models/scientist03.mdl
[15:48:03] loading: models/scientist05.mdl
[15:48:15] server: CHANGE LEVEL: c0a0a c0a0toa
[15:48:15] Spawn Server: c0a0a [c0a0toa]
[15:48:16] Loading game from save/c0a0a.hl1...
[15:48:16] ERROR: couldn't open.
[15:48:16] server: GAME SKILL LEVEL:1
[15:48:16] SV_LoadFromFile: 0 entities inhibited
[15:48:16] Loading game from save/c0a0.hl1...
[15:48:16] Transferring player (1)
[15:48:16] Merging changes for global: func_tracktrain
[15:48:16] Loading decals from c0a0
[15:48:16] Loading game from save/c0a0b.hl1...
[15:48:16] ERROR: couldn't open.
[15:48:16] Game started
[15:48:16] ^6Server restarted
[15:48:16] Spooling demo header.
[15:48:17] level loaded at 2.16 sec
[15:48:57] Saving game to save/quick.sav...
[15:49:07] server: CHANGE LEVEL: c0a0b c0a0tob
[15:49:07] Spawn Server: c0a0b [c0a0tob]
[15:49:08] Loading game from save/c0a0b.hl1...
[15:49:08] ERROR: couldn't open.
[15:49:08] server: GAME SKILL LEVEL:1
[15:49:08] SV_LoadFromFile: 0 entities inhibited
[15:49:08] Loading game from save/c0a0a.hl1...
[15:49:08] Transferring player (1)
[15:49:08] Merging changes for global: func_tracktrain
[15:49:08] Loading decals from c0a0a
[15:49:08] Loading game from save/c0a0c.hl1...
[15:49:08] ERROR: couldn't open.
[15:49:08] Game started
[15:49:08] ^6Server restarted
[15:49:08] Spooling demo header.
[15:49:10] level loaded at 3.12 sec
[15:49:52] loading: models/scientist05.mdl
[15:50:38] server: CHANGE LEVEL: c0a0c c0a0btoc
[15:50:38] Spawn Server: c0a0c [c0a0btoc]
[15:50:39] Loading game from save/c0a0c.hl1...
[15:50:39] ERROR: couldn't open.
[15:50:39] server: GAME SKILL LEVEL:1
[15:50:40] SV_LoadFromFile: 0 entities inhibited
[15:50:40] Loading game from save/c0a0d.hl1...
[15:50:40] ERROR: couldn't open.
[15:50:40] Loading game from save/c0a0b.hl1...
[15:50:40] Transferring player (1)
[15:50:40] Merging changes for global: func_tracktrain
[15:50:40] Transferring env_spark (380)
[15:50:40] Suppressing env_spark
[15:50:40] Transferring env_spark (381)
[15:50:40] Suppressing env_spark
[15:50:40] Loading decals from c0a0b
[15:50:40] Game started
[15:50:40] ^6Server restarted
[15:50:40] Spooling demo header.
[15:50:41] level loaded at 2.68 sec
[15:51:09] loading: models/scientist05.mdl
[15:51:21] Saving game to save/quick.sav...
[15:51:26] Server disconnected, reconnecting
[15:51:26] Last 32 messages parsed.
[15:51:26] 3684 0044 svc_event_reliable
[15:51:26] 3684 0064 svc_time
[15:51:26] 3684 0069 svc_addangle
[15:51:26] 3684 0072 svc_clientdata
[15:51:26] 3684 0085 svc_deltapacketentities
[15:51:26] 3685 0008 svc_event_reliable
[15:51:26] 3685 0026 svc_event_reliable
[15:51:26] 3685 0044 svc_event_reliable
[15:51:26] 3685 0064 svc_time
[15:51:26] 3685 0069 svc_addangle
[15:51:26] 3685 0072 svc_clientdata
[15:51:26] 3685 0085 svc_deltapacketentities
[15:51:26] 3686 0008 svc_event_reliable
[15:51:26] 3686 0026 svc_event_reliable
[15:51:26] 3686 0044 svc_event_reliable
[15:51:26] 3686 0064 svc_time
[15:51:26] 3686 0069 svc_addangle
[15:51:26] 3686 0072 svc_clientdata
[15:51:26] 3686 0085 svc_deltapacketentities
[15:51:26] 3687 0008 svc_sound
[15:51:26] 3687 0022 svc_sound
[15:51:26] 3687 0037 svc_event_reliable
[15:51:26] 3687 0055 svc_event_reliable
[15:51:26] 3687 0073 svc_event_reliable
[15:51:26] 3687 0093 svc_sound
[15:51:26] 3687 0107 svc_time
[15:51:26] 3687 0112 svc_addangle
[15:51:26] 3687 0115 svc_clientdata
[15:51:26] 3687 0134 svc_cdtrack
[15:51:26] 3687 0137 ???
[15:51:26] 3687 0138 svc_changing
[15:51:26] BAD:  139:svc_bad
[15:51:26] Host_Error: svc_bad
I think the performance could be improved with ccmake but I still wasn't able to use ccmake with hl.so and XashXT
But it seems like "ccmake Makefile.rpi" doesn't work. I'm pretty sure it worked before. Now it says the source is a file not a directory. http://imgur.com/8OyxHvI

ptitSeb
Posts: 276
Joined: Tue May 19, 2015 2:49 pm

Re: Xash3D Engine on Raspberry Pi

Mon Mar 14, 2016 11:25 am

@CockPitt: ccmake cannot be used on XashXT or hl.so because those are simple Makefile project, not CMakeList based ones. but just edit the Makefile.rpi to tune the CFLAGS like with ccmake.

The crashs you have are probably inside the driver (you can still try to get a backtrace with gdb), so not much I can do.

CockPitt
Posts: 109
Joined: Tue Jun 02, 2015 1:29 pm

Re: Xash3D Engine on Raspberry Pi

Tue Mar 15, 2016 3:46 pm

@ptitSeb
I formatted my sd-card again and rebuilt everything. Now I can clearly say it's not because of the driver, Half-Life keeps throwing me back into the main menu. The driver has never been enabled on this OS. The only thing I could imagine causing it is this command: "sudo ldconfig". I added it because often after compiling everything Half-Life wasn't able to start.
I'll post a backtrace of the error later.

CockPitt
Posts: 109
Joined: Tue Jun 02, 2015 1:29 pm

Re: Xash3D Engine on Raspberry Pi

Tue Mar 15, 2016 7:03 pm

When I tried to reproduce the error I experienced no throw backs at all. I played a bit around and noticed that it's the "-console" launch instruction is responsible for the issue. It has never been a problem before so I don't know why this happens. I'm not sure if a backtrace for this error even works because the game doesn't crash, I can load a save game or play new game etc.

ripednail
Posts: 9
Joined: Fri Feb 20, 2015 6:10 am

Re: Xash3D Engine on Raspberry Pi

Sun Mar 20, 2016 8:08 pm

:D
Last edited by ripednail on Sat Apr 01, 2017 7:01 am, edited 1 time in total.

super213
Posts: 50
Joined: Sat Jul 04, 2015 7:00 pm
Location: USA

Re: Xash3D Engine on Raspberry Pi

Sun Aug 14, 2016 6:37 pm

Any updates on this working succesfuly. maybe you should look at the android version it runs at 60 fps on my note 5 and never goes below 60 (my phones framerate is hardlocked at 60fps). take a look there.

iNC0GNi70
Posts: 5
Joined: Mon Oct 10, 2016 1:11 pm

Re: Xash3D Engine on Raspberry Pi

Wed Oct 12, 2016 8:49 pm

Yo dudes
I was wondering if anyone actually succeeded into making it run in a stable manner on a Raspberry.

CockPitt
Posts: 109
Joined: Tue Jun 02, 2015 1:29 pm

Re: Xash3D Engine on Raspberry Pi

Sat Oct 15, 2016 4:02 am

@super123
I remember it running pretty well on the Raspberry Pi, for it's graphical capabilities. I finished the campaign multiple times and most scenes ran at quite decent framerates (I can't provide fps numbers because the Frame counter doesn't work). Only the audio output was poor and full of stutters.
The bossfight is not very funny because of the low fps which vary between 5 and 10 I guess but pretty much every other scene is absolutely playable on my Pi.
However, I would really like to play around with Half-Life again, testing the performance with the advanced open GL-driver, but my installation guide doesn't seem work anymore, so I can't get it to launch.

@iNC0GNi70
I played through Half-Life a few times now. It runs pretty stable (about 1 or 2 crashes a run). The bossfight is not very funny because of the low fps which vary between 5 and 10 I guess but pretty much every other scene is absolutely playable on my Pi.

CockPitt
Posts: 109
Joined: Tue Jun 02, 2015 1:29 pm

Re: Xash3D Engine on Raspberry Pi

Sun Oct 16, 2016 9:20 am

Whenever I try to follow my guide, I get the same output at launch:

Code: Select all

i@raspberrypi:~/Half-Life $ LIBGL_FB=1 LIBGL_BATCH=1 LD_LIBRARY_PATH=/opt/vc/lib:/home/pi/glshim/lib:. ./xash3d -console -debug
[09:16:40] . is working directory now
================================================================================
	 (build 3224) started at Oct16 2016 [09:16.40]
================================================================================

================================================================================
	 (build 3224) fallback to dedicated mode
 at Oct16 2016 [09:16.43]
================================================================================
[09:16:43] . is working directory now
================================================================================
	 (build 3224) started at Oct16 2016 [09:16.43]
================================================================================
dlopen("dlls/hl_i386.so", RTLD_LAZY)=(nil), error=dlls/hl_i386.so: cannot open shared object file: No such file or directory
dlopen("dlls/hl_i386.so", RTLD_LAZY)=(nil), error=hl_i386.so: cannot open shared object file: No such file or directory
dlopen("dlls/hl_i386.so", RTLD_LAZY)=(nil), error=(null)
dlopen("dlls/hl_i386.so", RTLD_LAZY)=(nil), error=hl_i386.so: cannot open shared object file: No such file or directory
[09:16:45] ^3Warning:^7 loading library dlls/hl_i386.so: valve/dlls/hl_i386.so: cannot open shared object file: No such file or directory
[09:16:45] execing config.cfg
[09:16:45] execing server.cfg
[09:16:45] Please add "defaultmap" cvar with default map name to your server.cfg!
[09:16:45] Server IP address: 127.0.1.1:27015
That's what the console says, but no window shows up. Any ideas?

ptitSeb
Posts: 276
Joined: Tue May 19, 2015 2:49 pm

Re: Xash3D Engine on Raspberry Pi

Mon Oct 17, 2016 8:35 am

I think you didn't built xash3d with the correct flags, as it look for i386 libs.

CockPitt
Posts: 109
Joined: Tue Jun 02, 2015 1:29 pm

Re: Xash3D Engine on Raspberry Pi

Mon Oct 17, 2016 9:51 am

These are the instructions I'm following to build xash3d:

Code: Select all

cd ~
git clone https://github.com/ptitSeb/xash3d
git clone https://github.com/ptitSeb/halflife
cp -a halflife/. xash3d/hlsdk/
cd xash3d
cmake . -DRPI=ON -DXASH_SDL=ON -DXASH_VGUI=OFF -DHL_SDK_DIR=hlsdk/ -DCMAKE_C_FLAGS="-mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon -funsafe-math-optimizations" -DCMAKE_CXX_FLAGS="-mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon -funsafe-math-optimizations"
make -j4
cp engine/libxash.so /home/pi/Half-Life
cp mainui/libxashmenu.so /home/pi/Half-Life
cp game_launch/xash3d /home/pi/Half-Life
The "make -j4" command seems to fail at [83%]:

Code: Select all

pi@raspberrypi:~/xash3d $ cmake . -DRPI=ON -DXASH_SDL=ON -DXASH_VGUI=OFF -DHL_SDK_DIR=hlsdk/ -DCMAKE_C_FLAGS="-mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon -funsafe-math-optimizations" -DCMAKE_CXX_FLAGS="-mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon -funsafe-math-optimizations"

-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
<FindSDL2.cmake>
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
</FindSDL2.cmake>
-- Found SDL2: /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.so;-lpthread  
<FindSDL2.cmake>
</FindSDL2.cmake>
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/xash3d

pi@raspberrypi:~/xash3d $ make -j4

Scanning dependencies of target xash3d
Scanning dependencies of target xashmenu
Scanning dependencies of target xash
[  0%] Building C object game_launch/CMakeFiles/xash3d.dir/xash.c.o
[  1%] [  2%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_configuration.cpp.o
Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_creategame.cpp.o
[  2%] [  3%] Linking C executable xash3d
Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_loadgame.cpp.o
Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_saveload.cpp.o
[  3%] Building C object engine/CMakeFiles/xash.dir/common/sys_win.c.o
[  4%] Building C object engine/CMakeFiles/xash.dir/common/pm_trace.c.o
[  5%] [  5%] Built target xash3d
Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_vidmodes.cpp.o
[  6%] Building C object engine/CMakeFiles/xash.dir/common/cmd.c.o
[  6%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_savegame.cpp.o
[  6%] Building C object engine/CMakeFiles/xash.dir/common/random.c.o
[  7%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_customgame.cpp.o
[  8%] [  9%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_vidoptions.cpp.o
Building C object engine/CMakeFiles/xash.dir/common/input_evdevkey.c.o
[ 10%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_btns.cpp.o
[ 11%] [ 11%] Building C object engine/CMakeFiles/xash.dir/common/sdl/events.c.o
Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_main.cpp.o
[ 12%] [ 12%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_touchbuttons.cpp.o
Building C object engine/CMakeFiles/xash.dir/common/touch.c.o
[ 13%] [ 14%] Building C object engine/CMakeFiles/xash.dir/common/net_buffer.c.o
Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_advcontrols.cpp.o
[ 15%] Building C object engine/CMakeFiles/xash.dir/common/network.c.o
[ 15%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_gameoptions.cpp.o
[ 16%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_touchoptions.cpp.o
[ 17%] [ 17%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_newgame.cpp.o
Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_controls.cpp.o
[ 18%] Building CXX object mainui/CMakeFiles/xashmenu.dir/udll_int.cpp.o
[ 19%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_multiplayer.cpp.o
[ 19%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_video.cpp.o
[ 19%] Building C object engine/CMakeFiles/xash.dir/common/con_utils.c.o
[ 20%] Building C object engine/CMakeFiles/xash.dir/common/gamma.c.o
[ 21%] [ 22%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_langame.cpp.o
Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_credits.cpp.o
[ 23%] Building C object engine/CMakeFiles/xash.dir/common/crclib.c.o
[ 25%] [ 25%] [ 25%] [ 25%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_internetgames.cpp.o
Building C object engine/CMakeFiles/xash.dir/common/model.c.o
Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_filedialog.cpp.o
Building C object engine/CMakeFiles/xash.dir/common/launcher.c.o
[ 26%] Building C object engine/CMakeFiles/xash.dir/common/net_chan.c.o
[ 27%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_strings.cpp.o
[ 27%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_playersetup.cpp.o
[ 27%] [ 28%] [ 29%] Building C object engine/CMakeFiles/xash.dir/common/console.c.o
Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_touch.cpp.o
Building CXX object mainui/CMakeFiles/xashmenu.dir/basemenu.cpp.o
[ 29%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_audio.cpp.o
[ 30%] [ 31%] Building C object engine/CMakeFiles/xash.dir/common/input.c.o
Building CXX object mainui/CMakeFiles/xashmenu.dir/utils.cpp.o
[ 32%] Building CXX object mainui/CMakeFiles/xashmenu.dir/menu_touchedit.cpp.o
[ 33%] [ 34%] Building C object engine/CMakeFiles/xash.dir/common/build.c.o
Building CXX object mainui/CMakeFiles/xashmenu.dir/ui_title_anim.cpp.o
[ 34%] Building C object engine/CMakeFiles/xash.dir/common/mod_studio.c.o
[ 35%] Building C object engine/CMakeFiles/xash.dir/common/host.c.o
[ 36%] Building C object engine/CMakeFiles/xash.dir/common/titles.c.o
Linking CXX shared library libxashmenu.so
[ 36%] Built target xashmenu
[ 36%] [ 37%] Building C object engine/CMakeFiles/xash.dir/common/infostring.c.o
Building C object engine/CMakeFiles/xash.dir/common/matrixlib.c.o
[ 38%] Building C object engine/CMakeFiles/xash.dir/common/hpak.c.o
[ 39%] Building C object engine/CMakeFiles/xash.dir/common/avikit.c.o
[ 39%] Building C object engine/CMakeFiles/xash.dir/common/crtlib.c.o
[ 40%] [ 41%] Building C object engine/CMakeFiles/xash.dir/common/net_encode.c.o
Building C object engine/CMakeFiles/xash.dir/common/mathlib.c.o
[ 41%] Building C object engine/CMakeFiles/xash.dir/common/zone.c.o
[ 42%] Building C object engine/CMakeFiles/xash.dir/common/pm_surface.c.o
[ 43%] Building C object engine/CMakeFiles/xash.dir/common/cvar.c.o
[ 43%] Building C object engine/CMakeFiles/xash.dir/common/soundlib/snd_main.c.o
[ 44%] Building C object engine/CMakeFiles/xash.dir/common/soundlib/libmpg/tabinit.c.o
[ 45%] Building C object engine/CMakeFiles/xash.dir/common/soundlib/libmpg/interface.c.o
[ 45%] Building C object engine/CMakeFiles/xash.dir/common/soundlib/libmpg/layer2.c.o
[ 46%] Building C object engine/CMakeFiles/xash.dir/common/soundlib/libmpg/decode_i386.c.o
[ 47%] Building C object engine/CMakeFiles/xash.dir/common/soundlib/libmpg/dct64_i386.c.o
[ 48%] [ 48%] [ 49%] [ 49%] Building C object engine/CMakeFiles/xash.dir/common/soundlib/snd_wav.c.o
Building C object engine/CMakeFiles/xash.dir/common/soundlib/libmpg/common.c.o
Building C object engine/CMakeFiles/xash.dir/common/soundlib/libmpg/layer3.c.o
Building C object engine/CMakeFiles/xash.dir/common/soundlib/snd_mp3.c.o
[ 50%] Building C object engine/CMakeFiles/xash.dir/common/soundlib/snd_utils.c.o
[ 51%] [ 51%] [ 52%] Building C object engine/CMakeFiles/xash.dir/common/imagelib/img_quant.c.o
Building C object engine/CMakeFiles/xash.dir/common/imagelib/img_main.c.o
Building C object engine/CMakeFiles/xash.dir/common/imagelib/img_bmp.c.o
[ 53%] Building C object engine/CMakeFiles/xash.dir/common/imagelib/img_dds.c.o
[ 53%] Building C object engine/CMakeFiles/xash.dir/common/imagelib/img_wad.c.o
[ 54%] [ 55%] [ 56%] Building C object engine/CMakeFiles/xash.dir/common/imagelib/img_utils.c.o
Building C object engine/CMakeFiles/xash.dir/common/filesystem.c.o
Building C object engine/CMakeFiles/xash.dir/common/imagelib/img_tga.c.o
[ 56%] Building C object engine/CMakeFiles/xash.dir/common/net_huff.c.o
[ 57%] Building C object engine/CMakeFiles/xash.dir/common/sys_con.c.o
[ 58%] [ 58%] Building C object engine/CMakeFiles/xash.dir/common/library.c.o
Building C object engine/CMakeFiles/xash.dir/common/keys.c.o
[ 59%] Building C object engine/CMakeFiles/xash.dir/common/world.c.o
[ 60%] Building C object engine/CMakeFiles/xash.dir/common/common.c.o
[ 60%] Building C object engine/CMakeFiles/xash.dir/platform/android/android.c.o
[ 61%] Building C object engine/CMakeFiles/xash.dir/server/sv_main.c.o
[ 62%] Building C object engine/CMakeFiles/xash.dir/server/sv_client.c.o
[ 62%] Building C object engine/CMakeFiles/xash.dir/server/sv_custom.c.o
[ 63%] [ 64%] Building C object engine/CMakeFiles/xash.dir/server/sv_cmds.c.o
Building C object engine/CMakeFiles/xash.dir/server/sv_log.c.o
[ 64%] Building C object engine/CMakeFiles/xash.dir/server/sv_pmove.c.o
[ 65%] Building C object engine/CMakeFiles/xash.dir/server/sv_frame.c.o
[ 66%] [ 66%] Building C object engine/CMakeFiles/xash.dir/server/sv_move.c.o
Building C object engine/CMakeFiles/xash.dir/server/sv_phys.c.o
[ 67%] [ 68%] Building C object engine/CMakeFiles/xash.dir/server/sv_save.c.o
Building C object engine/CMakeFiles/xash.dir/server/sv_game.c.o
[ 68%] Building C object engine/CMakeFiles/xash.dir/server/sv_world.c.o
[ 69%] Building C object engine/CMakeFiles/xash.dir/server/sv_init.c.o
[ 70%] Building C object engine/CMakeFiles/xash.dir/client/cl_parse.c.o
[ 70%] Building C object engine/CMakeFiles/xash.dir/client/cl_video.c.o
[ 71%] Building C object engine/CMakeFiles/xash.dir/client/s_vox.c.o
[ 72%] Building C object engine/CMakeFiles/xash.dir/client/gl_decals.c.o
[ 73%] Building C object engine/CMakeFiles/xash.dir/client/cl_scrn.c.o
[ 73%] Building C object engine/CMakeFiles/xash.dir/client/gl_vidnt.c.o
[ 74%] [ 75%] Building C object engine/CMakeFiles/xash.dir/client/cl_menu.c.o
Building C object engine/CMakeFiles/xash.dir/client/s_dsp.c.o
[ 75%] Building C object engine/CMakeFiles/xash.dir/client/s_mix.c.o
[ 76%] [ 77%] Building C object engine/CMakeFiles/xash.dir/client/s_stream.c.o
Building C object engine/CMakeFiles/xash.dir/client/gl_rmisc.c.o
[ 77%] Building C object engine/CMakeFiles/xash.dir/client/vgui/vgui_draw.c.o
[ 78%] Building C object engine/CMakeFiles/xash.dir/client/cl_frame.c.o
[ 79%] [ 79%] Building C object engine/CMakeFiles/xash.dir/client/cl_game.c.o
Building C object engine/CMakeFiles/xash.dir/client/gl_backend.c.o
[ 80%] Building C object engine/CMakeFiles/xash.dir/client/s_load.c.o
[ 81%] Building C object engine/CMakeFiles/xash.dir/client/gl_refrag.c.o
[ 81%] Building C object engine/CMakeFiles/xash.dir/client/gl_rpart.c.o
[ 82%] [ 83%] Building C object engine/CMakeFiles/xash.dir/client/gl_vidnt_common.c.o
Building C object engine/CMakeFiles/xash.dir/client/gl_warp.c.o
/home/pi/xash3d/engine/client/gl_warp.c: In function ‘EmitWaterPolys’:
/home/pi/xash3d/engine/client/gl_warp.c:610:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  for(glpoly_t *p2 = polys; p2; p2 = p2->next )
  ^
/home/pi/xash3d/engine/client/gl_warp.c:610:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
/home/pi/xash3d/engine/client/gl_warp.c: In function ‘EmitSkyPolys’:
/home/pi/xash3d/engine/client/gl_warp.c:704:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  for(glpoly_t* p2 = fa->polys; p2; p2 = p2->next )
  ^
engine/CMakeFiles/xash.dir/build.make:2101: recipe for target 'engine/CMakeFiles/xash.dir/client/gl_warp.c.o' failed
make[2]: *** [engine/CMakeFiles/xash.dir/client/gl_warp.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 83%] Building C object engine/CMakeFiles/xash.dir/client/gl_studio.c.o
CMakeFiles/Makefile2:125: recipe for target 'engine/CMakeFiles/xash.dir/all' failed
make[1]: *** [engine/CMakeFiles/xash.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
pi@raspberrypi:~/xash3d $ 

ptitSeb
Posts: 276
Joined: Tue May 19, 2015 2:49 pm

Re: Xash3D Engine on Raspberry Pi

Mon Oct 17, 2016 12:02 pm

Mmm, ok, try to add "-std=c99" the the -DCMAKE_C_FLAGS="...". I'll fix my github sources later.

ptitSeb
Posts: 276
Joined: Tue May 19, 2015 2:49 pm

Re: Xash3D Engine on Raspberry Pi

Mon Oct 17, 2016 12:07 pm

Anyway, I have (I guess) fixed my github sources, you can "git pull" and "make -j4" again @CockPitt

CockPitt
Posts: 109
Joined: Tue Jun 02, 2015 1:29 pm

Re: Xash3D Engine on Raspberry Pi

Mon Oct 17, 2016 3:58 pm

Building xash3d works now, but the console output at launch of the game hasn't changed.

I'll attach some pictures of ccmake, so you can check if the flags are set correctly:
http://imgur.com/a/t8qom

ptitSeb
Posts: 276
Joined: Tue May 19, 2015 2:49 pm

Re: Xash3D Engine on Raspberry Pi

Mon Oct 17, 2016 4:14 pm

It's still looking for the wrong libs?
I have to double-check the code...

ptitSeb
Posts: 276
Joined: Tue May 19, 2015 2:49 pm

Re: Xash3D Engine on Raspberry Pi

Mon Oct 17, 2016 5:03 pm

@CockPitt : I think that hl_386.so reference comes from in your data files. You should try 'grep "hl_386.so" valve/* -rn' to locate the file. That text file is created bu xash3d, and you probably tried it on an x86 version? Try to remove that text file, xash3d will recreate a new one.

CockPitt
Posts: 109
Joined: Tue Jun 02, 2015 1:29 pm

Re: Xash3D Engine on Raspberry Pi

Mon Oct 17, 2016 6:56 pm

Code: Select all

pi@raspberrypi:~/Half-Life $ grep "hl_i386.so" valve/* -rn

valve/gameinfo.txt:13:gamedll_linux		"dlls/hl_i386.so"
valve/liblist.gam:9:gamedll_linux "dlls/hl_i386.so"
As far as I understand "liblist.gam" creates "gameinfo.txt".
Removing "gameinfo.txt" didn't change much. At launch the file is being recreated. But it still contains "dlls/hl_i386.so" so the output is still the same.
I had a look at "liblist.gam". It looks like this:

Code: Select all

// Valve Game Info file
//  These are key/value pairs.  Certain mods will use different settings.
//
game "Half-Life"
startmap "c0a0"
trainmap "t0a0"
mpentity "info_player_deathmatch"
gamedll "dlls\hl.dll"
gamedll_linux "dlls\hl_i386.so"
secure "1"
type "singleplayer_only"
I changed "dlls\hl_i386.so" to "hl.so" and the output looks different:

Code: Select all

pi@raspberrypi:~/Half-Life $ LIBGL_FB=1 LIBGL_BATCH=1 LD_LIBRARY_PATH=/opt/vc/lib:/home/pi/glshim/lib:. ./xash3d -console -debug

[18:39:56] . is working directory now
================================================================================
	 (build 3224) started at Oct17 2016 [18:39.56]
================================================================================
[18:39:56] Convert valve/liblist.gam to valve/gameinfo.txt

================================================================================
	 (build 3224) fallback to dedicated mode
 at Oct17 2016 [18:39.58]
================================================================================
[18:39:58] . is working directory now
================================================================================
	 (build 3224) started at Oct17 2016 [18:39.58]
================================================================================
dlopen("hl.so", RTLD_LAZY)=0x139538, error=(null)
dlopen("hl.so", RTLD_LAZY)=0x139538, error=(null)
[18:40:00] Dll loaded for mod Half-Life
[18:40:00] execing skill.cfg
[18:40:00] execing config.cfg
[18:40:00] execing server.cfg
[18:40:00] Please add "defaultmap" cvar with default map name to your server.cfg!
[18:40:00] Server IP address: 127.0.1.1:27015
Did this fix anything? The game still doesn't launch.

Return to “Gaming”