audetto / AppleWin

Apple II emulator for Linux
GNU General Public License v2.0
47 stars 12 forks source link

Some adaptions for Linux/Raspberry Pi OS #71

Closed Gemba closed 1 year ago

Gemba commented 1 year ago

Hi there. Thanks for the Linux adaptions and esp. for the libretro core.

The LR core works fine on the current RetroPie (based on Buster) with some adaptions, see full story there: https://retropie.org.uk/forum/post/284130

TL;DR:

  1. Workaround: static linking for stdc++ filesystem with GCC before v9 (C++17 Standard is supported but stdc++fs is marked experimental in GCC8):
    
    diff --git a/source/frontends/libretro/CMakeLists.txt b/source/frontends/libretro/CMakeLists.txt
    index 77c48a9f..3c1cce76 100644
    --- a/source/frontends/libretro/CMakeLists.txt
    +++ b/source/frontends/libretro/CMakeLists.txt
    @@ -41,7 +41,12 @@ target_include_directories(applewin_libretro PRIVATE
    libretro-common/include
    )

+set(is_gnu "$") +set(before_v9 "$<VERSION_LESS:$,9>") +set(static_stdcpp_fs "$<AND:${is_gnu},${before_v9}>") + target_link_libraries(applewin_libretro PRIVATE

  1. Minor: Update to raspbian.list.txt
    diff --git a/source/linux/raspbian.list.txt b/source/linux/raspbian.list.txt
    index 6feacc72..a40d8296 100644
    --- a/source/linux/raspbian.list.txt
    +++ b/source/linux/raspbian.list.txt
    @@ -13,3 +13,5 @@ libsdl2-dev
    libgles-dev
    libpcap-dev
    libslirp-dev
    +libminizip-dev
    +libyaml-dev

Maybe you can apply it in the mainline?

audetto commented 1 year ago

Sure. Do you want to open a PR?

Gemba commented 1 year ago

Please find accompanied PR.

Gemba commented 1 year ago

Thanks for merging.