It is currently Wed Nov 11, 2026 11:33 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: gmic for cpp lib on android
PostPosted: Sun Aug 09, 2015 4:08 am  (#1) 
Offline
GimpChat Member

Joined: May 27, 2015
Posts: 12
GIMP Version: 2.8.14
Operating System: Linux
OS Version: android 4.2
GIMP Experience: New User



I compile gmic for android, through ndk. I got such error
in function (in file gmic.cpp)
const CImg<char>& gmic::get_default_commands()

this got exception

std::fprintf(cimg::output(),
"[gmic] %s*** Warning *** Could not uncompress G'MIC standard library, ignoring it.%s\n",
cimg::t_red,cimg::t_normal);

the value of size_data_gmic_def is 857164.
is it because android could not allocate enough memory for app ?


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: gmic for cpp lib on android
PostPosted: Sun Aug 09, 2015 5:39 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
To explain it quickly :

- Most of the G'MIC commands are defined in file 'gmic_def.gmic', and this file is converted as a compressed char* buffer before being included in the G'MIC code (all in file 'gmic_def.h').
- At startup, G'MIC tries then to uncompress this buffer to get the definition of all custom commands. If it fails, only native commands will be available (so not many commands).
- To allow G'MIC uncompress this buffer, you need to link your code with the 'zlib' library, and define macro 'cimg_use_zlib' when compiling.


Top
 Post subject: Re: gmic for cpp lib on android
PostPosted: Sun Aug 09, 2015 5:43 am  (#3) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8502
Location: On the other side of your screen
GMIC can also be used online.
:ninja David

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.8 and GMIC-Qt 4.0.2 OS :- Windows 10 Home 64


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group