mrhdias / perl6-Imlib2

Perl 6 interface to the Imlib2 image library.
Artistic License 2.0
3 stars 8 forks source link

Does not compile under macOS #8

Open bbkr opened 7 years ago

bbkr commented 7 years ago

Hi

While trying to install under macOS 10.10.5 I get following error:

$ panda install Imlib2
==> Fetching Imlib2
==> Building Imlib2
clang -c  -fno-omit-frame-pointer -fno-optimize-sibling-calls -O3 -DNDEBUG -Wno-logical-op-parentheses -D_DARWIN_USE_64_BIT_INODE=1  -o Imlib2.o Imlib2.c
In file included from Imlib2.c:12:
/usr/local/include/Imlib2.h:26:10: fatal error: 'X11/Xlib.h' file not found
#include <X11/Xlib.h>
         ^
1 error generated.
make: *** [Imlib2.o] Error 1

Is it possible to remove custom lib compilation and rely on what system package installers provides? I tried to simply use imlib2 from mac brew (which is 1.4.7) and it worked perfectly fine. I assume same applies to Linux.

BTW: also there is no need to use LibraryMake to detect shared library extension. NativeCall now handles this without issues. Simple sub imlib_image_set_format( Str ) is native( 'Imlib2', v1) is export { * } is enough.