mkxp-z / mkxp-z

Open-source cross-platform player for (some) RPG Maker XP / VX / VX Ace games. A very heavily modified fork of mkxp. RGSS on steroids with a stupid name.
https://github.com/mkxp-z/mkxp-z/wiki
GNU General Public License v2.0
140 stars 39 forks source link

Custom ruby path doesn't work #187

Open Speak2Erase opened 1 month ago

Speak2Erase commented 1 month ago

The mri_includes option isn't enough to include all the header files of ruby, ruby puts its ruby/config.h in a separate folder (x86_64-linux on my machine) image

Mai-Lapyst commented 6 days ago

Same problem here, I found that applying a little static patch does the trick:

--- binding/meson.build.orig    2024-06-20 12:34:32.256226102 +0200
+++ binding/meson.build 2024-06-20 12:38:36.263635664 +0200
@@ -9,6 +9,7 @@
     global_dependencies += dependency('ruby-' + ver)
 else
     global_args += ('-I' + get_option('mri_includes'))
+    global_args += ('-I' + get_option('mri_includes') + '/x86_64-linux')
     global_dependencies += compilers['cpp'].find_library(get_option('mri_library'), dirs: get_option('mri_libpath'))
 endif

Ofc, this needs to have a more permanent solution than this dirty workaround...