How i can compile under Devuan Ascii?

Hi there, again i am trying to compile Retroarch from git.

Well this time i need to specify SDL2 root dir is =/usr/local becuase the system version is too old for this release, and if i try to uninstall from synaptic, that want to broke all my system, becuase of that i had compile manually and install the latest version of SDL2 + image + ttf inside /usr/local

Because for another proyects like “solarus” engine for be build sucessfully.

#Get the source code & update it

cd /media/Compartido/Liñux/cdf/git
git clone https://github.com/libretro/RetroArch retroarch
cd retroarch
git pull
./fetch-submodules.sh

#Configure & Try make & Install

./configure \
--disable-systemd \
--enable-ffmpeg \
--enable-steam \
--prefix=/usr ; \
export {C,CXX}FLAGS='-O2 -fPIC -march=native -mtune=native -pipe' ; \
export OPTFLAGS='-O2 -fPIC -march=native -mtune=native -pipe' ; \
make

#SDL2 Fail :

make: *** No hay ninguna regla para construir el objetivo '/usr/include/SDL2/SDL_sensor.h', necesario para 'obj-unix/release/input/input_keymaps.o'.  Alto.

And well this is searching in /usr/include, and not inside /usr/local/include

cat /usr/include/SDL2/SDL_sensor.h
cat: /usr/include/SDL2/SDL_sensor.h: No existe el fichero o el directorio

cat /usr/local/include/SDL2/SDL_sensor.h
/*
  Simple DirectMedia Layer
  Copyright (C) 1997-2019 Sam Lantinga <[email protected]>

… rest of the output

why the configure not had options like cmake i need use something like :

sdl2dir=/usr/local

well thanks for any help can you give me

Well i don’t remeber which thing i do to SDL2 read the right path but in Devuan i had error on ffmpeg like on Slackware 14.2

make
CC deps/miniupnpc/minisoap.c
CC record/drivers/record_ffmpeg.c
CC cores/libretro-ffmpeg/ffmpeg_core.c
cores/libretro-ffmpeg/ffmpeg_core.c: In function ‘decode_thread’:
cores/libretro-ffmpeg/ffmpeg_core.c:1667:20: error: ‘AVCodecContext {aka struct AVCodecContext}’ has no member named ‘hw_device_ctx’; did you mean ‘hw_frames_ctx’?
    if (vctx && vctx->hw_device_ctx)
                    ^~
cores/libretro-ffmpeg/ffmpeg_core.c:1668:28: error: ‘AVCodecContext {aka struct AVCodecContext}’ has no member named ‘hw_device_ctx’; did you mean ‘hw_frames_ctx’?
       av_buffer_unref(&vctx->hw_device_ctx);
                            ^~
Makefile:211: fallo en las instrucciones para el objetivo 'obj-unix/release/cores/libretro-ffmpeg/ffmpeg_core.o'
make: *** [obj-unix/release/cores/libretro-ffmpeg/ffmpeg_core.o] Error 1

building stuff with dynamic ffmpeg in linux is almost always problematic. I would just --disable-ffmpeg for now unless you absolutely need it for some reason.

i want ffmpeg support for record gameplays, because had better compression instead of use SimpleScreenRecorder. to record directly opengl and better flow / fps

Look this happen if i record using SSR (This was with retroarch 1.7.8) -> https://www.mediafire.com/file/0w92nprxvbns3fu/SSR_-_RetroArch_Contra.mp4/file

And this happend if i record directly from RetroArch (1.7.8 in this case) -> https://www.mediafire.com/file/o8rryt9g5lz2d4v/Contra_(J)_[T+Spa_Djt]-190913-174213.mkv/file

What about OBS? I know some people have had good luck with it.

Well the actual git version v1.8.4 can compile fine with ffmpeg :smiley: Sadly the first thing i try to record “Akumajou Dracula X : Moonlight in Nocture” aka “Castlevania : Symphony Of The Night”, Sega Saturn Version

When i try record Sega Saturn Game :

./retroarch
[libx264 @ 0x5629781aca00] width not divisible by 2 (1043x782)
Violación de segmento

xD LOOL!

Nintendo Entrtaimnt System :

./retroarch
[libx264 @ 0x56428fb23ae0] using SAR=1/1
[libx264 @ 0x56428fb23ae0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
[libx264 @ 0x56428fb23ae0] profile High, level 3.2
[libx264 @ 0x56428fb23ae0] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:-1:-1 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.15 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
[matroska @ 0x56428f436e60] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[matroska @ 0x56428f436e60] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.

Nintendo Family Computer Disk System :

 ./retroarch

 [libx264 @ 0x56428df9ab80] width not divisible by 2 (1021x782)
 Violación de segmento

 [libx264 @ 0x561188fa7460] width not divisible by 2 (953x782)
 Violación de segmento

and well core & game depend this errors xD, well but i am happy i can record directly from retroach :smiley: