Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d2432c9
Inital port of libav
djdiskmachine Oct 17, 2025
5e8eda6
Add legacy support
djdiskmachine Oct 18, 2025
b325f83
Fix build errors for most platforms
djdiskmachine Oct 18, 2025
9a87db7
Fix no return value in Run
djdiskmachine Oct 18, 2025
580f348
Swap garlicplus toolchain
djdiskmachine Oct 19, 2025
e4b878a
Add Win32
djdiskmachine Oct 19, 2025
287099f
Bump project number
djdiskmachine Oct 19, 2025
fd49f8c
FFMPEG deps for Win32
djdiskmachine Oct 19, 2025
adbb530
vcpkg installation ffmpeg
djdiskmachine Oct 19, 2025
680586c
libav install fix
djdiskmachine Oct 19, 2025
f5d2bf8
Update miyoo toolchain & add back ffmpeg
djdiskmachine Oct 23, 2025
96b6b54
Merge branch '1.5.0-candidate' into libav_experiment
djdiskmachine Oct 23, 2025
b0b8325
Fix includes for miyoo
djdiskmachine Oct 24, 2025
a1f451f
Fix check.ym
djdiskmachine Oct 24, 2025
8cfb07f
Add FFMPEG_LEGACY_API to Makefile.MIYOO
djdiskmachine Oct 24, 2025
c8cc287
vs2008->vs2019
djdiskmachine Oct 24, 2025
eb02d73
Logging and redundancy removal in LibavProcessor.c
djdiskmachine Oct 31, 2025
a7b496c
Fix unallocated crash, segmentation fault
djdiskmachine Dec 21, 2025
194b4a6
Merge branch '1.6.0-candidate' into libav_experiment
djdiskmachine Apr 15, 2026
e0c34ff
Package libav deps with GARLIC
djdiskmachine Apr 17, 2026
1140f87
Fix deps path
djdiskmachine Apr 17, 2026
cbfa1f7
Fix check job
djdiskmachine Apr 17, 2026
cfdad49
Grab .so files from the right place
djdiskmachine Apr 17, 2026
4ca754a
Copy symlinks as well
djdiskmachine Apr 17, 2026
1f93efb
Don't copyu
djdiskmachine Apr 17, 2026
05b7a12
LD_PRELOAD instead of copy
djdiskmachine Apr 17, 2026
6226a53
Preserve symlinks without relative paths
djdiskmachine Apr 18, 2026
12ddf01
Remove GARLIC ffmpeg support
djdiskmachine Apr 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install Pillow
choco install -y directx-sdk zip --no-progress --yes
choco install -y directx-sdk zip ffmpeg-shared --no-progress --yes
shell: powershell

- name: Download and Extract VCE9 release
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
- name: Install required libraries
run: |
sudo apt update
sudo apt install -y make pkgconf libsdl2-dev libasound2-plugins libjack-dev python3-pillow
sudo apt install -y make pkgconf libsdl2-dev libasound2-plugins libjack-dev python3-pillow libavcodec-dev libavformat-dev libavfilter-dev libavutil-dev libswresample-dev

- name: Build X64
working-directory: projects
Expand Down Expand Up @@ -326,9 +326,13 @@ jobs:
wget -qO ./debian-archive-keyring.deb "$BASE$LATEST"
dpkg -i ./debian-archive-keyring.deb

apt update && apt install -y python3 python3-pillow
apt update && apt install -y python3 python3-pillow
cd projects
make PLATFORM=GARLIC
# copy libav deps to the .zip
echo copy files from usr/lib to lib
mkdir lib && find /opt/miyoo -name "*libav*so*" -exec cp -P {} lib/ \;
ls -la lib
'
sudo chmod -R 777 ./workspace/projects
sudo chown -R root:root ./workspace/projects
Expand Down Expand Up @@ -366,7 +370,7 @@ jobs:
- name: Install Garlic Plus toolchain
run: |
sudo apt update && sudo apt install -y python3-pillow
wget -O /tmp/rg35xxplus-toolchain.tar.xz https://github.com/simotek/union-rg35xxplus-toolchain/releases/download/20240830/rg35xxplus-toolchain.tar.xz
wget -O /tmp/rg35xxplus-toolchain.tar.xz https://github.com/djdiskmachine/union-rg35xxplus-toolchain/releases/download/1.1/rg35xxplus-toolchain.tar.gz
mkdir /opt/rg35xxplus-toolchain
tar -xvf /tmp/rg35xxplus-toolchain.tar.xz -C /opt/rg35xxplus-toolchain --strip-components=1

Expand Down Expand Up @@ -449,6 +453,7 @@ jobs:
wget https://www.libsdl.org/release/SDL2-2.0.14.dmg
hdiutil attach SDL2-2.0.14.dmg
sudo cp -R /Volumes/SDL2/SDL2.framework /Library/Frameworks/
brew install ffmpeg

- name: Build Xcode project
run: |
Expand Down
24 changes: 17 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ jobs:
uses: actions/checkout@v4.1.7

- name: Install build deps
run: choco install -y directx-sdk zip --no-progress --yes
run: choco install -y directx-sdk zip ffmpeg-shared --no-progress --yes
shell: powershell

- name: Install FFmpeg development libraries
run: vcpkg install ffmpeg[avcodec,avformat,avfilter]:x86-windows-static
shell: cmd

- name: Download and Extract VCE9 release
run: |
Expand Down Expand Up @@ -115,7 +119,7 @@ jobs:
run: |
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y make pkgconf gcc-multilib g++-multilib libsdl1.2-dev:i386 libasound2-plugins:i386 libjack-dev:i386 python3-pillow
sudo apt install -y make pkgconf gcc-multilib g++-multilib libsdl1.2-dev:i386 libasound2-plugins:i386 libjack-dev:i386 python3-pillow libavcodec-dev:i386 libavformat-dev:i386 libavfilter-dev:i386 libavutil-dev:i386 libswresample-dev:i386

- name: Build DEB
working-directory: projects
Expand Down Expand Up @@ -148,7 +152,7 @@ jobs:
run: |
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y make pkgconf gcc-multilib g++-multilib libsdl2-dev:i386 libasound2-plugins:i386 libjack-dev:i386 python3-pillow
sudo apt install -y make pkgconf gcc-multilib g++-multilib libsdl2-dev:i386 libasound2-plugins:i386 libjack-dev:i386 python3-pillow libavcodec-dev:i386 libavformat-dev:i386 libavfilter-dev:i386 libavutil-dev:i386 libswresample-dev:i386

- name: Build X86
working-directory: projects
Expand Down Expand Up @@ -262,9 +266,13 @@ jobs:
wget -qO ./debian-archive-keyring.deb "$BASE$LATEST"
dpkg -i ./debian-archive-keyring.deb

apt update && apt install -y python3 python3-pillow
apt update && apt install -y python3 python3-pillow
cd projects
make PLATFORM=GARLIC
# copy libav deps to the .zip
echo copy files from usr/lib to lib
mkdir lib && find /opt/miyoo -name "*libav*so*" -exec cp -P {} lib/ \;
ls -la lib
'
sudo chmod -R 777 ./workspace/projects
sudo chown -R root:root ./workspace/projects
Expand Down Expand Up @@ -296,7 +304,7 @@ jobs:
- name: Install Garlic Plus toolchain
run: |
sudo apt update && sudo apt install -y python3-pillow
wget -O /tmp/rg35xxplus-toolchain.tar.xz https://github.com/simotek/union-rg35xxplus-toolchain/releases/download/20240830/rg35xxplus-toolchain.tar.xz
wget -O /tmp/rg35xxplus-toolchain.tar.xz https://github.com/djdiskmachine/union-rg35xxplus-toolchain/releases/download/1.1/rg35xxplus-toolchain.tar.gz
mkdir /opt/rg35xxplus-toolchain
tar -xvf /tmp/rg35xxplus-toolchain.tar.xz -C /opt/rg35xxplus-toolchain --strip-components=1

Expand Down Expand Up @@ -366,7 +374,7 @@ jobs:
- name: Install Miyoo Mini toolchain
run: |
sudo apt update && sudo apt install -y python3-pillow
wget -O /tmp/miyoomini-toolchain.tar.xz https://github.com/djdiskmachine/miyoomini-toolchain-buildroot/releases/download/1.0.0/miyoomini-toolchain.tar.xz
wget -O /tmp/miyoomini-toolchain.tar.xz https://github.com/djdiskmachine/miyoomini-toolchain-buildroot/releases/download/1.1/miyoomini-toolchain.tar.xz
mkdir /opt/miyoomini-toolchain
tar -xvf /tmp/miyoomini-toolchain.tar.xz -C /opt/miyoomini-toolchain --strip-components=1

Expand Down Expand Up @@ -402,7 +410,8 @@ jobs:
- name: Install required libraries
run: |
sudo apt update
sudo apt install -y make pkgconf libsdl2-dev libasound2-plugins libjack-dev python3-pillow
sudo apt install -y make pkgconf libsdl2-dev libasound2-plugins libjack-dev python3-pillow libavcodec-dev libavformat-dev libavfilter-dev libavutil-dev libswresample-dev


- name: Build X64
working-directory: projects
Expand Down Expand Up @@ -437,6 +446,7 @@ jobs:
wget https://www.libsdl.org/release/SDL2-2.0.14.dmg
hdiutil attach SDL2-2.0.14.dmg
sudo cp -R /Volumes/SDL2/SDL2.framework /Library/Frameworks/
brew install ffmpeg

- name: Build Xcode project
run: |
Expand Down
39 changes: 21 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,26 @@ Recommended reading to get you started:

## Features per platform

| Platform | MIDI_Possible | MIDI_enabled | Soundfonts | Note |
|-------------|---------------|--------------|------------|--------------------------------------|
| PSP | NO | NO | YES | [See notes](projects/resources/PSP/INSTALL_HOW_TO.txt) |
| DEB | YES | YES | YES | |
| X64 | YES | YES | MAYBE | |
| X86 | YES | YES | YES | |
| STEAM | YES | YES | MAYBE | |
| MIYOO | NO | NO | YES | Port by [Nine-H](https://ninethehacker.xyz) |
| W32 | YES | YES | YES | Built in VS2008 with love |
| RASPI | YES | YES | YES | Versatile platform |
| CHIP | YES | YES | YES | [See notes](projects/resources/CHIP/INSTALL_HOW_TO.txt) |
| BITTBOY | MAYBE | NO | YES | |
| GARLIC | MAYBE | NO | YES | Port by [Simotek](http://simotek.net)|
| GARLICPLUS | MAYBE | NO | YES | Port by [Simotek](http://simotek.net)|
| RG35XXPLUS | MAYBE | NO | YES | Port by [Simotek](http://simotek.net)|
| MACOS | YES | YES | MAYBE | Port by [clsource](https://genserver.social/clsource) |

| Platform | MIDI_Possible | MIDI_enabled | Soundfonts | PrintFX | Note |
|-------------|---------------|--------------|------------|---------|--------------------------------------|
| PSP | NO | NO | YES | NO | [See notes](projects/resources/PSP/INSTALL_HOW_TO.txt) |
| DEB | YES | YES | YES | YES | |
| X64 | YES | YES | MAYBE | YES | |
| X86 | YES | YES | YES | YES | |
| STEAM | YES | YES | MAYBE | YES | |
| MIYOO | NO | NO | YES | NO | Port by [Nine-H](https://ninethehacker.xyz) |
| W32 | YES | YES | YES | YES | Built in VS2008 with love |
| RASPI | YES | YES | YES | YES | Versatile platform |
| CHIP | YES | YES | YES | YES | [See notes](projects/resources/CHIP/INSTALL_HOW_TO.txt) |
| BITTBOY | MAYBE | NO | YES | YES | |
| PORTMASTER | MAYBE | NO | YES | YES | |
| GARLIC | MAYBE | NO | YES | NO | Port by [Simotek](http://simotek.net)|
| GARLICPLUS | MAYBE | NO | YES | YES | Port by [Simotek](http://simotek.net)|
| RG35XXPLUS | MAYBE | NO | YES | NO | Port by [Simotek](http://simotek.net)|
| MACOS | YES | YES | MAYBE | NO | Port by [clsource](https://genserver.social/clsource) |


* **Soundfont library is now ported for 64bit OS**
* **MIDI functionality __greatly__ depends on kernel support, please feature request your favourite OS maintainer =)**
* **Install ffmpeg by following install instructions for your platform [here](https://www.ffmpeg.org/download.html)**
* **PrintFX requires full ffmpeg. If marked as TBA, it requires a redesign using [libav](https://trac.ffmpeg.org/wiki/Using%20libav*)**
* **PrintFX requires toolchain support of ffmpeg libs, for all targets marked maybe contact the maintainer of your consoles toolchain**
11 changes: 9 additions & 2 deletions projects/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ COMMONFILES := \
char.o n_assert.o fixed.o wildcard.o \
SyncMaster.o TablePlayback.o Player.o \
Table.o TableView.o\
InstrumentBank.o WavFileWriter.o WavFile.o MidiInstrument.o Filters.o SampleVariable.o SampleInstrument.o SamplePool.o CommandList.o FxPrinter.o\
InstrumentBank.o WavFileWriter.o WavFile.o MidiInstrument.o Filters.o \
SampleVariable.o SampleInstrument.o SamplePool.o CommandList.o FxPrinter.o\
PersistencyService.o Persistent.o \
Observable.o SingletonRegistry.o \
Audio.o AudioMixer.o AudioOutDriver.o AudioDriver.o \
Expand All @@ -274,6 +275,12 @@ COMMONFILES := \
HexBuffers.o lz.o \
tinyxmlparser.o tinyxml.o tinyxmlerror.o tinystr.o Tiny2NosStub.o

ifneq ($(FFMPEG_ENABLED), 0)
ifneq ($(strip $(FFMPEG_LIBS)),)
COMMONFILES += LibavProcessor.o
endif
endif

#---------------------------------------------------------------------------------
# Linux
#---------------------------------------------------------------------------------
Expand Down Expand Up @@ -512,7 +519,7 @@ export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
#---------------------------------------------------------------------------------

$(BUILD):
python3 ../sources/Resources/mkfont.py ../sources/Resources/$(FONT) ../sources/Resources/font.h
# python3 ../sources/Resources/mkfont.py ../sources/Resources/$(FONT) ../sources/Resources/font.h
@[ -d $@ ] || mkdir -p $@
@make --no-print-directory -C $(BUILD) -f $(PWD)/Makefile

Expand Down
11 changes: 8 additions & 3 deletions projects/Makefile.BITTBOY
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-include $(PWD)/rules_base

STRIP = $(CROSS_COMPILE)strip

DEFINES := \
Expand All @@ -8,6 +9,8 @@ DEFINES := \
-DHAVE_STDINT_H \
-D_NDEBUG \
-D__LINUX_ALSA__ \
-DFFMPEG_ENABLED \
-DFFMPEG_LEGACY_API \
-D_NO_JACK_

DEVKIT=/opt/arm-buildroot-linux-musleabi_sdk-buildroot
Expand All @@ -19,15 +22,17 @@ SDL_CFLAGS := $(shell $(SYSROOT)/usr/bin/sdl-config --cflags)
SDL_LIBS := $(shell $(SYSROOT)/usr/bin/sdl-config --libs)
SDL_BASE = $(DEVKIT)/arm-buildroot-linux-musleabi/sysroot/usr/bin/

-include $(PWD)/rules_libav

TOOLPATH=$(DEVKIT)/usr/bin
PREFIX := arm-linux-

OPT_FLAGS = -O3 -Ofast
INCLUDES = -I$(PWD)/../sources -Iinclude $(SDL_CFLAGS)
INCLUDES = -I$(PWD)/../sources -Iinclude $(SDL_CFLAGS) $(FFMPEG_CFLAGS)
CFLAGS := $(DEFINES) $(INCLUDES) $(OPT_FLAGS) $(SDL_CFLAGS) -Wall -DRS97
CXXFLAGS:= $(CFLAGS) -std=gnu++03
LIBS := $(SDL_LIBS) -lSDL -lSDL_mixer -lasound -lpthread
LIBDIRS := $(DEKVIT)/usr/lib
LIBS := $(SDL_LIBS) -lSDL -lSDL_mixer -lasound -lpthread $(FFMPEG_LIBS)
LIBDIRS := $(SYSROOT)/usr/lib
OUTPUT = ../lgpt-bittboy
EXTENSION:= elf

Expand Down
6 changes: 4 additions & 2 deletions projects/Makefile.GARLIC
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ SYSROOT := $(shell $(CROSS_COMPILE)gcc --print-sysroot)
SDL_CFLAGS := $(shell $(SYSROOT)/usr/bin/sdl-config --cflags)
SDL_LIBS := $(shell $(SYSROOT)/usr/bin/sdl-config --libs)

-include $(PWD)/rules_libav

# optimization
OPT_FLAGS = -O3 -Ofast -fdata-sections -fdata-sections -fno-common -fno-PIC -flto -marm -mtune=cortex-a53 -mfpu=neon-vfpv4 -mfloat-abi=hard
PREFIX := arm-linux-gnueabihf-
INCLUDES:= -Iinclude $(SDL_CFLAGS) -I$(PWD)/../sources
CFLAGS := $(DEFINES) $(INCLUDES) $(OPT_FLAGS) -Wall
CXXFLAGS:= $(CFLAGS) -std=gnu++03
LIBS := $(SDL_LIBS) -lpthread
LIBDIRS := $(DEKVIT)/usr/lib
LIBDIRS += $(DEKVIT)/usr/include
LIBDIRS := $(DEVKIT)/usr/lib
LIBDIRS += $(DEVKIT)/usr/include
OUTPUT := ../lgpt-garlic
EXTENSION:= elf

Expand Down
20 changes: 17 additions & 3 deletions projects/Makefile.GARLICPLUS
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ DEFINES := \
-DCPP_MEMORY \
-D_NDEBUG \
-DHAVE_STDINT_H \
-D_NO_JACK_
-D_NO_JACK_ \
-DFFMPEG_ENABLED \
-DFFMPEG_LEGACY_API


# compiled using the https://github.com/shauninman/union-rg35xxplus-toolchain

Expand All @@ -23,13 +26,24 @@ SYSROOT := $(shell $(CROSS_COMPILE)gcc --print-sysroot)
SDL_CFLAGS := $(shell $(SYSROOT)/usr/bin/sdl-config --cflags)
SDL_LIBS := $(shell $(SYSROOT)/usr/bin/sdl-config --libs)

FFMPEG_INCL= libavformat \
libavfilter \
libavcodec \
libavutil \

FFMPEG_CFLAGS := $(shell $(DEVKIT)/usr/bin/pkg-config --cflags $(FFMPEG_INCL))
FFMPEG_LIBS := $(shell $(DEVKIT)/usr/bin/pkg-config --libs $(FFMPEG_INCL))

$(info FFMPEG_CFLAGS: $(FFMPEG_CFLAGS))
$(info FFMPEG_LIBS: $(FFMPEG_LIBS))

# optimization
OPT_FLAGS = -O3 -Ofast -fdata-sections -fdata-sections -fno-common -fno-PIC -flto -marm -mtune=cortex-a53 -mfpu=neon-vfpv4 -mfloat-abi=hard
PREFIX := arm-linux-gnueabihf-
INCLUDES = -Iinclude $(SDL_CFLAGS) -I$(PWD)/../sources
INCLUDES = -Iinclude $(SDL_CFLAGS) $(FFMPEG_CFLAGS) -I$(PWD)/../sources
CFLAGS := $(DEFINES) $(INCLUDES) $(OPT_FLAGS) -Wall
CXXFLAGS:= $(CFLAGS) -std=gnu++03
LIBS := -lSDL -lpthread
LIBS := -lSDL -lpthread $(FFMPEG_LIBS)
LIBDIRS := $(DEKVIT)/usr/lib
LIBDIRS += $(DEKVIT)/usr/include
OUTPUT = ../lgpt-garlicplus
Expand Down
22 changes: 17 additions & 5 deletions projects/Makefile.MIYOO
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ DEFINES := \
-DCPP_MEMORY \
-DHAVE_STDINT_H \
-D_NDEBUG \
-DFFMPEG_ENABLED \
-DFFMPEG_LEGACY_API \
-D_NO_JACK_

DEVKIT = /opt/miyoomini-toolchain/
Expand All @@ -18,18 +20,28 @@ SYSROOT := $(shell $(CROSS_COMPILE)gcc --print-sysroot)
SDL_CFLAGS := $(shell $(SYSROOT)/usr/bin/sdl-config --cflags)
SDL_LIBS := $(shell $(SYSROOT)/usr/bin/sdl-config --libs)

INCLUDES = -Iinclude $(SDL_CFLAGS) -I$(PWD)/../sources
OPT_FLAGS = -O3 -Ofast -fdata-sections -fdata-sections -fno-common -fno-PIC -flto -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -march=armv7ve+simd
LIBAV_PATH := arm-linux-gnueabihf/libc/usr/include
FFMPEG_CFLAGS := -I$(DEVKIT)/$(LIBAV_PATH)/libavformat \
-I$(DEVKIT)/$(LIBAV_PATH)/libavfilter \
-I$(DEVKIT)/$(LIBAV_PATH)/libavcodec \
-I$(DEVKIT)/$(LIBAV_PATH)/libavutil \

FFMPEG_LIBS := -lavformat -lavfilter -lavcodec -lavutil

$(info FFMPEG_CFLAGS: $(FFMPEG_CFLAGS))
$(info FFMPEG_LIBS: $(FFMPEG_LIBS))

INCLUDES = -Iinclude $(SDL_CFLAGS) $(FFMPEG_CFLAGS) -I$(PWD)/../sources
OPT_FLAGS = -O3 -Ofast -fdata-sections -fdata-sections -fno-common -fno-PIC -flto -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -march=armv7ve+simd

TOOLPATH=$(DEVKIT)/usr/bin
PREFIX := arm-linux-gnueabihf-

CFLAGS := $(DEFINES) $(INCLUDES) $(SDL_CFLAGS) $(OPT_FLAGS) -Wall
CXXFLAGS:= $(CFLAGS) -std=gnu++03
LIBS := -lSDL -lSDL_mixer -lpthread $(SDL_LIBS)
LIBDIRS := $(DEKVIT)/usr/lib
LIBDIRS += $(DEKVIT)/usr/include
LIBS := -lSDL -lSDL_mixer -lpthread $(SDL_LIBS) $(FFMPEG_LIBS)
LIBDIRS := $(DEVKIT)/usr/lib
LIBDIRS += $(DEVKIT)/usr/include
OUTPUT = ../lgpt-miyoo
EXTENSION:= elf

Expand Down
16 changes: 14 additions & 2 deletions projects/Makefile.RG35XXPLUS
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,23 @@ TOOLPATH=$(DEVKIT)/usr/bin
SDL_CFLAGS := -I/$(SYSROOT)/include -D_REENTRANT
SDL_LIBS := -lSDL2

FFMPEG_INCL= libavformat \
libavfilter \
libavcodec \
libavutil \

LIBAV_PATH := aarch64-linux-gnu/include
FFMPEG_CFLAGS := -I$(DEVKIT)/$(LIBAV_PATH)/libavformat -I$(DEVKIT)/$(LIBAV_PATH)/libavfilter -I$(DEVKIT)/$(LIBAV_PATH)/libavcodec -I$(SYSROOT)/$(LIBAV_PATH)/libavutil
FFMPEG_LIBS := -lavformat -lavfilter -lavcodec -lavutil

$(info FFMPEG_CFLAGS: $(FFMPEG_CFLAGS))
$(info FFMPEG_LIBS: $(FFMPEG_LIBS))

OPT_FLAGS = -O3 -mlittle-endian -mabi=lp64 -march=armv8-a+crypto+crc -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -dumpbase
INCLUDES = -Iinclude $(SDL_CFLAGS) -I$(DEVKIT)/$(TRIPLET)/include -I$(DEVKIT)/$(TRIPLET)/include/c++/11/ -I$(PWD)/../sources
INCLUDES = -Iinclude $(SDL_CFLAGS) $(FFMPEG_CFLAGS) -I$(DEVKIT)/$(TRIPLET)/include -I$(DEVKIT)/$(TRIPLET)/include/c++/11/ -I$(PWD)/../sources
CFLAGS := $(DEFINES) $(INCLUDES) $(OPT_FLAGS) -Wall
CXXFLAGS:= $(CFLAGS) -std=gnu++03
LIBS := -Wl,-rpath-link,$(DEVKIT)/$(TRIPLET)/lib -Wl,-rpath-link,$(DEVKIT)/$(TRIPLET)/lib/pulseaudio $(SDL_LIBS) -lpthread
LIBS := -Wl,-rpath-link,$(DEVKIT)/$(TRIPLET)/lib -Wl,-rpath-link,$(DEVKIT)/$(TRIPLET)/lib/pulseaudio $(SDL_LIBS) $(FFMPEG_LIBS) -lpthread
OUTPUT = ../lgpt-rg35xxplus
EXTENSION:= elf

Expand Down
5 changes: 3 additions & 2 deletions projects/Makefile.X64
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-include $(PWD)/rules_base
-include $(PWD)/rules_libav

# config
DEFINES := \
Expand All @@ -24,10 +25,10 @@ SDL_LIBS := $(shell pkg-config sdl2 --libs)
OPT_FLAGS := -O3
#For debugging
OPT_FLAGS := -g
INCLUDES := $(ALSA_CFLAGS) $(JACK_CFLAGS) $(SDL_CFLAGS) -I$(PWD)/../sources
INCLUDES := $(ALSA_CFLAGS) $(JACK_CFLAGS) $(SDL_CFLAGS) $(FFMPEG_CFLAGS) -I$(PWD)/../sources
CFLAGS := $(OPT_FLAGS) $(DEFINES) $(INCLUDES) -Wall
CXXFLAGS := $(CFLAGS) -std=gnu++11
LIBS := $(ALSA_LIBS) $(JACK_LIBS) $(SDL_LIBS)
LIBS := $(ALSA_LIBS) $(JACK_LIBS) $(SDL_LIBS) $(FFMPEG_LIBS)
OUTPUT := ../lgpt
EXTENSION := x64

Expand Down
Loading
Loading