This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Mali gpu texture compression for Linux

Note: This was originally posted on 14th January 2013 at http://forums.arm.com

The complete output is: WARNING: Error compressing ("/home/../carpetHalved_atlas.png"): "Error: Could not convert input image /home/../carpetHalved_atlas.png to .ppm"  The png is the same one as used in Mali SDK for android. It does not work with any combination of settings, or other png files.
As I don't see any other useful error info, I don't really know which is the reason for it. On a windows system it seems to work. It fails on an Ubuntu 12.04.

Could you help me with it?
Thank you,
Bogdan
Parents
  • Note: This was originally posted on 14th January 2013 at http://forums.arm.com

    I was trying both command line and GUI, with same result. Also, now I tried changing path of convert to Image Magick utility in my system (/usr/bin/convert), with same result. Can I break the command in several subcommands? Which should be the parameters to convert?
    Regards,
    Bogdan
Reply
  • Note: This was originally posted on 14th January 2013 at http://forums.arm.com

    I was trying both command line and GUI, with same result. Also, now I tried changing path of convert to Image Magick utility in my system (/usr/bin/convert), with same result. Can I break the command in several subcommands? Which should be the parameters to convert?
    Regards,
    Bogdan
Children
  • Hello,

    Just wanted to say I still experience the very same issue under linux 14.04, I've check the convert path, it looks okay.

    I use a png file, and I tried that very same png under windows with mali texture compression tool and it works properly.

    Please let me know if I can help you investigate the issue.

    Thx

    Damien

  • Hi sistr,

    The reason for this is the version of imagemagick that comes bundled with the Mali Texture Compression Tool is an older version that is dependent upon libtiff4.  This is not available on Ubuntu 14.04, only libtiff5.  You can check if this is the problem by manually running the included convert binary from Mali_Texture_Compression_Tool_v4.2.0.445f5f1_Linux_x64/bin, such as ./convert <pic>.png <pic>.ppm and it should give you an error saying that libtiff.so.4 cannot be found.

    There are a number of fixes that you can use.

    First, install imagemagick using sudo apt-get install imagemagick; this should also pull in libtiff5 as a dependency if not already installed.  Then remove convert from Mali_Texture_Compression_Tool_v4.2.0.445f5f1_Linux_x64/bin and providing the installed convert binary is available in the path, Mali Texture Compression tool will fall back to use this.  Alternatively you can also change the binary to use for convert under tools > preferences, and change the ImageMagick convert executable path to /usr/bin/convert.

    Alternatively, just install libtiff5, and symlink libtiff.so.4 to point to libtiff.so which will in turn point to the latest version installed on your system, in my case libtiff.so.5.2.0.

    I have tested and these all work for me having seen the same issue you described.

    Hope this Helps,

    Rich

  • Hello Rich,

    Thank you very much for the crystal clear explanation.

    As soon as I get 20 minutes free I'll check your solution and let you know.

    Have a nice day,

    Damien

    On Mon Nov 17 2014 at 15:23:50 ARM Connected Community Admin <

  • Hello,

    Just wanted to confirm that the fix partially works.

    I can now enconde an image in ETC2.0 without issue (after installing imagemagick and removing the convert binary in bin folder, as explained above).

    But once compressed, I can't open the generated pkm in the software, it warn about an error during the opening of the file:

    Cannot load the image image.:xxxxxx.pkm

    But still, it's great to be able to compress the image on linux.

    Thank you for your support.

    Damien