android - Ghostscript Unable to open the initial device -


i have cross-compiled ghostscript 9.18 android. when run it, ( have tested gs , gs -sdevice=pdfwrite test.ps -soutputfile=test.pdf, test.ps valid postscript file), have error:

**** unable open initial device, quitting. unrecoverable error: unknownerror in .special_op

i have configure ./configure --prefix=/data/local/tmp --build=x86_64-linux-gnu --host=i686-linux-android --with-system-libtiff

gs --help return:

artifex ghostscript 9.18 (2015-10-05) copyright (c) 2015 artifex software, inc.  rights reserved. usage: gs [switches] [file1.ps file2.ps ...] used switches: (you can use # in place of =)  -dnopause           no pause after page   | -q       quiet, fewer messages  -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch resolution  -sdevice=<devname>  select device         | -dbatch  exit after last file  -soutputfile=<file> select output file: - stdout, |command pipe,                                      embed %d or %ld page # input formats: postscript postscriptlevel1 postscriptlevel2 postscriptlevel3 pdf default output device: bbox available devices:    ap3250 appledmp atx23 atx24 atx38 bbox bit bitcmyk bitrgb bitrgbtags    bj10e bj200 bjc600 bjc800 bmp16 bmp16m bmp256 bmp32b bmpgray bmpmono    bmpsep1 bmpsep8 ccr cdeskjet cdj500 cdj550 cdjcolor cdjmono cfax cif    cljet5 cljet5c cljet5pr coslw2p coslwxl cp50 declj250 deskjet devicen    dfaxhigh dfaxlow dj505j djet500 djet500c dnj650c eps2write eps9high    eps9mid epson epsonc escp faxg3 faxg32d faxg4 fpng fs600 gprf hl7x0    ibmpro ijs imagen inferno ink_cov inkcov itk24i itk38 iwhi iwlo iwlq    jbig2 jetp3852 jpeg jpegcmyk jpeggray laserjet lbp8 lips3 lj250 lj3100sw    lj4dith lj4dithp lj5gray lj5mono ljet2p ljet3 ljet3d ljet4 ljet4d    ljet4pjl ljetplus lp2563 lp8000 lq850 lxm5700m m8510 mgr4 mgr8 mgrgray2    mgrgray4 mgrgray8 mgrmono miff24 necp6 nullpage oce9050 oki182 okiibm    paintjet pam pamcmyk32 pamcmyk4 pbm pbmraw pcx16 pcx24b pcx256 pcx2up    pcxcmyk pcxgray pcxmono pdfwrite pgm pgmraw pgnm pgnmraw photoex picty180    pj pjetxl pjxl pjxl300 pkm pkmraw pksm pksmraw plan plan9bm planc plang    plank planm plib plibc plibg plibk plibm png16 png16m png256 png48    pngalpha pnggray pngmono pnm pnmraw ppm ppmraw ps2write psdcmyk psdcmykog    psdrgb pxlcolor pxlmono r4081 rinkj sgirgb sj48 spotcmyk st800 stcolor   sunhmono t4693d2 t4693d4 t4693d8 tek4696 tiff12nc tiff24nc tiff32nc   tiff48nc tiff64nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray tifflzw   tiffpack tiffscaled tiffscaled24 tiffscaled32 tiffscaled4 tiffscaled8   tiffsep tiffsep1 txtwrite uniprint xcf xpswrite search path:    %rom%resource/init/ : %rom%lib/ :    /data/local/tmp/share/ghostscript/9.18/resource/init :    /data/local/tmp/share/ghostscript/9.18/lib :    /data/local/tmp/share/ghostscript/9.18/resource/font :    /data/local/tmp/share/ghostscript/fonts :    /data/local/tmp/share/fonts/default/ghostscript :    /data/local/tmp/share/fonts/default/type1 :    /data/local/tmp/share/fonts/default/truetype :    /usr/lib/dps/outline/base : /usr/openwin/lib/x11/fonts/type1 :    /usr/openwin/lib/x11/fonts/truetype ghostscript using fontconfig search font files initialization files compiled executable. more information, see /data/local/tmp/share/ghostscript/9.18/doc/use.htm. please report bugs bugs.ghostscript.com.` 

any idea fix problem ? thanks

well problem says, cannot open default device. haven't given command line using, i'm having guess why be.

most default device not valid on platform. i'm going assume built on linux distribution (because of build lines) , suspect default device x device, isn't going work on android.

at least you'll need build without x think, , don't know gs build system enough advise on that. try irc #ghostscript channel on irc.freenode.net , ask chrisl there.

other that, gs --help , quote says. amongst other things should tell default device is.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -