KES777 / sdl

3 stars 1 forks source link

not a array ref or scalar: CODE(0x55c5bc6e67b8) at lib/SDL2/Pixels.pm line 511 #3

Open hakonhagland opened 3 years ago

hakonhagland commented 3 years ago

I am trying to run the test script ffi.pl, but it aborts with an error message:

$ git clone  git@github.com:KES777/sdl.git
$ cd sdl
$ perl --version | head -2
This is perl 5, version 30, subversion 2 (v5.30.2) built for x86_64-linux-thread-multi
$ cpanm Carton
# NOTE: commented out two lines in cpanfile for SDL and SDLx::App
$ carton
$ perl -I /home/hakon/test/sdl/local/lib/perl5/ -I./lib ffi.pl
not a array ref or scalar: CODE(0x55c5bc6e67b8) at lib/SDL2/Pixels.pm line 511.
KES777 commented 3 years ago

Sorry, I forgot about this. Copy FFi/Platypus/Type/Enum.pm from local/lib/perl5 into lib and patch it: https://github.com/PerlFFI/FFI-Platypus-Type-Enum/issues/11

KES777 commented 3 years ago

hm... strange. actually this repo have patched version