http://qs321.pair.com?node_id=11125915


in reply to Cannot save all image formats after compiled to exe

There might be some lazy loaded modules in the Imager or Imager::QRCode modules.

What happens when you explicitly load all modules under the Imager namespace? This can be done with the -M flag, for example:

pp -x -M Imager:: -o imager.exe imager.pl

After running that on my machine I end up with several extra pm files under the Imager dir in the packed executable.

I have not tried testing if it works, though.

Replies are listed 'Best First'.
Re^2: Cannot save all image formats after compiled to exe
by CKEQvc (Novice) on Dec 29, 2020 at 10:05 UTC

    It works!

    Thank you very much!

    So, I missed -M Imager:: in my pp option.

    Thank you all...