audetto/AppleWin

Some adaptions for Linux/Raspberry Pi OS

Closed this issue · 3 comments

Gemba commented

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 "$<CXX_COMPILER_ID:GNU>")
+set(before_v9 "$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9>")
+set(static_stdcpp_fs "$<AND:${is_gnu},${before_v9}>")
+
 target_link_libraries(applewin_libretro PRIVATE
+  $<${static_stdcpp_fs}:stdc++fs>
   appleii
   common2
   windows
  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?

Sure.
Do you want to open a PR?

Gemba commented

Please find accompanied PR.

Gemba commented

Thanks for merging.