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
  • 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

Reply
  • 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

Children