Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Imlib2 (Read 604 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Imlib2

Reply #15
I got the FIX

specifically, adding 'sub dl_load_flags { 1 }' to Image/Imlib2.pm


Re: Imlib2

Reply #16
On 3/30/25 8:04 AM, Ian B wrote:
> Couple of things you could try, modify the Image::Imlib2 module, to have
>  sub dl_load_flags { 0x102 }     just before the "boostrap" line...
> so it would look like (remember to save original)
> ..
> $VERSION = '2.03';
> sub dl_load_flags { 0x102 };
> bootstrap Image::Imlib2 $VERSION;
> ...

EXCELLENT - I did this as a fix
 20 );
 21 $VERSION = '2.03';
 22
 23 sub dl_load_flags { 1 };
 24
 25 bootstrap Image::Imlib2 $VERSION;
 26
 27 Image::Imlib2->set_cache_size(0);
 28

It works now!

Summary - the  Package needs to be updated to work with pkg-config

Build.PL
  4 # We need to find imlib2-config
  5 my $CONFIG = "pkg-config";
  6
 21
 22 my $libs = `$CONFIG --libs imlib2`;
 23 my $cflags = "-DX_DISPLAY_MISSING " . `$CONFIG imlib2 --cflags`;
 24

edit

./.cpan/build/Image-Imlib2-2.03-0/lib/Image/Imlib2.pm
 20 );
 21 $VERSION = '2.03';
 22
 23 sub dl_load_flags { 1 };
 24
 25 bootstrap Image::Imlib2 $VERSION;
 26
 27 Image::Iml

in the package...maybe update version to 2.03.1

 

 
Artix forum uses a single cookie to remember youOK