It is currently Thu Aug 13, 2026 7:44 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: could gmic be able compiled in android jni?
PostPosted: Tue Jun 16, 2015 9:04 am  (#1) 
Offline
GimpChat Member

Joined: May 27, 2015
Posts: 12
I'm trying to use gmic's filter in android. I compile it on ubuntu , ndk, gmic version:1.6.2.0
errors:
/gmic.cpp:1976:23: error: 'l' was not declared in this scope
cimg_forY(selection,l) if (selection[l]==ind) return true;
gmic.cpp:1990:23: error: 'cimg' has not been declared
std::FILE *file = cimg::fopen(filename,"r");
.... many others.
Is it portable to android?


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: could gmic be able compiled in android jni?
PostPosted: Tue Jun 16, 2015 1:21 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12830
Maybe not, but there is a web based version of g'mic that you can try to run on your android. :)

https://gmicol.greyc.fr/

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: could gmic be able compiled in android jni?
PostPosted: Wed Jun 17, 2015 12:52 am  (#3) 
Offline
GimpChat Member

Joined: May 27, 2015
Posts: 12
lylejk wrote:
Maybe not, but there is a web based version of g'mic that you can try to run on your android. :)

/



you mean gmic is not portable on android ?
I believe that gmic could run on android...the question I meet, must be some dependence lib which missing.
online gmic is hard to use, it depends on good network


Top
 Post subject: Re: could gmic be able compiled in android jni?
PostPosted: Wed Jun 17, 2015 2:53 am  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Your error above doesn't look like an error due to the Android port. It looks like a syntax error but if we assume that this code compiles correctly somewhere else, this could be due to slight differences in C++ standards used. You may have to try some compiler options to make it check for a specific level of the standard.

On the other hand, Android is for machines with a small CPU, not really the kind of machines to run heavy image processing. Your app may win the "fastest battery drain" contest.

_________________
Image


Top
 Post subject: Re: could gmic be able compiled in android jni?
PostPosted: Thu Jun 18, 2015 12:47 am  (#5) 
Offline
GimpChat Member

Joined: May 27, 2015
Posts: 12
ofnuts wrote:
Your error above doesn't look like an error due to the Android port. It looks like a syntax error but if we assume that this code compiles correctly somewhere else, this could be due to slight differences in C++ standards used. You may have to try some compiler options to make it check for a specific level of the standard.

On the other hand, Android is for machines with a small CPU, not really the kind of machines to run heavy image processing. Your app may win the "fastest battery drain" contest.


I looked into the detail of that question. It's something related with compiler, of course due to android(not pure linux).
but portable to android makes sense.


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group