drfrag666 / gzdoom

GZDoom adds an OpenGL renderer to the ZDoom source port.
http://gzdoom.drdteam.org
GNU General Public License v3.0
74 stars 17 forks source link

Compiling on RG351P handled (aarm64) #16

Closed XargonWan closed 3 years ago

XargonWan commented 3 years ago

Greetings, I compiled lzdoom for RG351P handled device (RK3326 chipset), I moved all the needed libraries, wad, pk3 and config, but I have this strange behavior:

351ELEC:~/roms/ports/gzdoom # LD_LIBRARY_PATH=/storage/roms/ports/gzdoom/lib:/usr/lib ./gzdoom -config "/storage/roms/gamedata/gzdoom/gzdoom.ini" -iwad "/storage/roms/doom/iwads/plutonia.wad"
librga:RGA_GET_VERSION:4.00,4.000000
ctx=0x5596509e70,ctx->rgaFd=3
Rga built version:version:+2017-09-28 10:12:42
GZDoom g4.6pre-79-g9bd07e5c8 - 2021-01-31 14:47:33 +0200 - SDL version
Compiled on Feb  1 2021

OS: 351ELEC (Official - 351ELEC IS FREE AND NOT FOR SALE!) 1.0.10, Linux 4.4.189 on aarch64
M_LoadDefaults: Load system defaults.

Cannot find a game IWAD (doom.wad, doom2.wad, heretic.wad, etc.).
Did you install GZDoom properly? You can do either of the following:

1. Place one or more of these wads in ~/.config/gzdoom/.
2. Edit your ~/.config/gzdoom/gzdoom.ini and add the directories of your
iwads to the list beneath [IWADSearch.Directories]
free(): double free detected in tcache 2
Aborted

What is the "free(): double free detected in tcache 2" linea meaning that prevents the program to start? Thanks in advance.

XargonWan commented 3 years ago

I tried to compile a debug build:

(gdb) set environment LD_LIBRARY_PATH=/storage/roms/ports/gzdoom/lib:/usr/lib
(gdb) file gzdoom
Load new symbol table from "gzdoom"? (y or n) y
Reading symbols from gzdoom...(no debugging symbols found)...done.
(gdb) run
Starting program: /storage/roms/ports/gzdoom/gzdoom -config "/storage/roms/gamedata/gzdoom/gzdoom.ini" -iwad "/storage/roms/doom/iwads/plutonia.wad"
warning: Unable to determine the number of hardware watchpoints available.
warning: Unable to determine the number of hardware breakpoints available.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
librga:RGA_GET_VERSION:4.00,4.000000
ctx=0x5596bd6e70,ctx->rgaFd=3
Rga built version:version:+2017-09-28 10:12:42
[New Thread 0x7f871b20d0 (LWP 11544)]
GZDoom g4.6pre-79-g9bd07e5c8 - 2021-01-31 14:47:33 +0200 - SDL version
Compiled on Feb  1 2021

Thread 2 "gzdoom" received signal SIG33, Real-time event 33.
[Switching to Thread 0x7f871b20d0 (LWP 11544)]
futex_wait_cancelable (private=0, expected=0,
    futex_word=0x556f706130 <renderPool+272>)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
88      ../sysdeps/unix/sysv/linux/futex-internal.h: No such file or directory.
(gdb) /futex-internal.h: No such file or directory.
drfrag666 commented 3 years ago

That's not lzdoom, it's gzdoom. Post the issue there. Which branch from my repo are you compiling?

XargonWan commented 3 years ago

That's not lzdoom, it's gzdoom. Post the issue there. Which branch from my repo are you compiling?

Thankyou for replying, I followed this paragraph: https://github.com/drfrag666/gzdoom#how-to-build-lzdoom

Step1: https://zdoom.org/wiki/Compile_GZDoom_on_Linux#Debian.2FUbuntu Step2: from Create gzdoom_build directory to Download FMOD Step3: Latest stable version Step4: Compiling

XargonWan commented 3 years ago

Comes out that the linked wiki is refering to gzdoom installation and it points there, so I did everything from the lzdoom soruces this stime (latest stable release, https://github.com/drfrag666/gzdoom/releases/tag/3.87c). However now I got this issue:

*** Fatal Error ***
librga:RGA_GET_VERSION:4.00,4.000000
ctx=0x558c3cde70,ctx->rgaFd=4
Rga built version:version:+2017-09-28 10:12:42
Address not mapped to object (signal 11)
Address: 0x74532e00000016

My launch command is:

LD_LIBRARY_PATH=/storage/roms/ports/lzdoom/lib:/usr/lib /storage/roms/ports/lzdoom/lzdoom "+fullscreen 1" +"snd_mididevice -3" +"vid_vsync 1" -width 480 -height 320 -config "/storage/roms/gamedata/lzdoom/lzdoom.ini" -iwad "/storage/roms/doom/iwads/plutonia.wad"

but I tried all the non opengl related parameters here:

 local params=("+fullscreen 1")
    local launcher_prefix="DOOMWADDIR=$romdir/ports/doom"

    if isPlatform "mesa" || isPlatform "gl"; then
        params+=("+vid_renderer 1")
    elif isPlatform "gles"; then
        params+=("+vid_renderer 0")
    fi

    # FluidSynth is too memory/CPU intensive
    if isPlatform "arm"; then
        params+=("+'snd_mididevice -3'")
    fi

    if isPlatform "kms"; then
        params+=("+vid_vsync 1" "-width %XRES%" "-height %YRES%")
    fi

How can I fix this?

logfile: https://we.tl/t-bx4niNncUj

drfrag666 commented 3 years ago

I'm not sure but seems either that resolution is not supported by your graphics card or may be LZDoom doesn't even work with kms, i can't remember. I don't use arm or even linux right now. You could try posting in the forum: https://forum.zdoom.org/viewforum.php?f=50