It is currently Thu Apr 25, 2024 3:47 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: gmic ndk to android command not found
PostPosted: Sat Aug 01, 2015 2:24 pm  (#1) 
Offline
GimpChat Member

Joined: May 27, 2015
Posts: 12
I compiled gmic for android, ndk, jni.
But the sample interface gmic_use_lib.cpp, for android jni interface,
I got following exception;
exception error in "/storage/sdcard0/test.bmp -cartoon 0,0,100 -output[-1] /storage/sdcard0/result.bmp " unkown command or file cartoon
which means it did't recognize the gmic command. But the same code for linux works right.


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 ndk to android command not found
PostPosted: Sat Aug 01, 2015 2:29 pm  (#2) 
Offline
GimpChat Member

Joined: May 27, 2015
Posts: 12
what unbelieveable thing is ,
the linux verion lib for gmic , libgmic.so ,file size is 4.9 M.
but the android version, I got a shared lib which size less than 3M


Top
 Post subject: Re: gmic ndk to android command not found
PostPosted: Sat Aug 01, 2015 2:43 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
-cartoon is defined in the gmic_def.gmic file
it is not a built-in function (implemented in the .cpp)


Top
 Post subject: Re: gmic ndk to android command not found
PostPosted: Sun Aug 02, 2015 2:59 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jul 02, 2013
Posts: 54
Try to download cli_update165x.gmic and call gmic with
-m cli_update165x.gmic ...
possibly your build does not find the default gmic file!


Top
 Post subject: Re: gmic ndk to android command not found
PostPosted: Sun Aug 02, 2015 10:00 am  (#5) 
Offline
GimpChat Member

Joined: May 27, 2015
Posts: 12
jontait2 wrote:
-cartoon is defined in the gmic_def.gmic file
it is not a built-in function (implemented in the .cpp)



This sounds part reasonable.
On linux platform, I could run the sample which compiled with gmic_use_lib.cpp & gmic.cpp, with libgmic.so and sample (executable file). This is ok.
The same code does't work for android.
so , I don't believe this is not a built-in function.


Top
 Post subject: Re: gmic ndk to android command not found
PostPosted: Sun Aug 02, 2015 10:03 am  (#6) 
Offline
GimpChat Member

Joined: May 27, 2015
Posts: 12
karo03de wrote:
Try to download cli_update165x.gmic and call gmic with
-m cli_update165x.gmic ...
possibly your build does not find the default gmic file!



how to declare the compile command to build the gmic file in, and let the source code find the gmic file?


Top
 Post subject: Re: gmic ndk to android command not found
PostPosted: Sun Aug 02, 2015 10:17 am  (#7) 
Offline
GimpChat Member

Joined: May 27, 2015
Posts: 12
jontait2 wrote:
-cartoon is defined in the gmic_def.gmic file
it is not a built-in function (implemented in the .cpp)


according to the docs here
http://gmic.eu/
The file "gmic_def.h" is generated from "gmic_def.gmic" (see Makefile target "def:") which ensures the standard commands compatible with that release are available.

The gmic_def.gmic convert to gmic_def.h, It has been compile into the lib? Is that wrong?


Top
 Post subject: Re: gmic ndk to android command not found
PostPosted: Wed Aug 05, 2015 7:59 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jul 02, 2013
Posts: 54
inabluemoon wrote:
karo03de wrote:
Try to download cli_update165x.gmic and call gmic with
-m cli_update165x.gmic ...
possibly your build does not find the default gmic file!



how to declare the compile command to build the gmic file in, and let the source code find the gmic file?


I am quite sure that gmic custom functions are not build in during compile time, even not in the library. Try to call in your build "-echo $_path_rc" to find where gmic files (and others) are expected!


Top
 Post subject: Re: gmic ndk to android command not found
PostPosted: Wed Aug 05, 2015 10:24 pm  (#9) 
Offline
GimpChat Member

Joined: May 27, 2015
Posts: 12
karo03de wrote:
inabluemoon wrote:
karo03de wrote:
Try to download cli_update165x.gmic and call gmic with
-m cli_update165x.gmic ...
possibly your build does not find the default gmic file!



how to declare the compile command to build the gmic file in, and let the source code find the gmic file?


I am quite sure that gmic custom functions are not build in during compile time, even not in the library. Try to call in your build "-echo $_path_rc" to find where gmic files (and others) are expected!



thanks, you are quite a nice man.
I would tell the git page for gmic4android if I have done this


Top
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts GIMP on Android

2

No new posts Android xcf reader?

2

No new posts Attachment(s) HELP - SEARCH AND RUN A COMMAND

6

No new posts How do you run GIMP from the command line?

1

No new posts Attachment(s) G'MIC> Pattern> Strip command line?

2



* Login  



Powered by phpBB3 © phpBB Group