From: deb <ot...@hu...> - 2013-01-25 07:22:07
|
>Do not use the original AT&T code. It is obsolete and unsupported. >You should use the GSDJVU code that is derived from the AT&T code >and comes as a single file named gdevdjvu.c. Porting this should >be straightforward. You just need to add the contents of gsdjvu.mak >to contrib.mak and add the djvu device to DEVICE_DEVS16 Ah... right. I was wondering how MinGW did compile having all these "problems", but I should have read build script more closely instead assuming that att archive was used as a patch. Thanks for your reply, I wouldn't have made it otherwise :) So building this on Windows, is even more straitforward. And worth noting is that PDF is now accepted as input (unlike MinGW build) thus conversion process is much faster. Do you think you can include some of this info in your project readme? Here is complete diff with patched GhostScript, assuming user copied gdevdjvu.c in GS base folder: ============================================================================ C:\temp>diff -r c:\src\ghostscript-9.06 c:\src\gsdjvu\ghostscript-9.06 diff -r c:\src\ghostscript-9.06/base/contrib.mak c:\src\gsdjvu\ghostscript-9.06/base/contrib.mak 862a863,875 > ### ---------------- DjVu files ---------------- ### > > djvu_=$(GLOBJ)gdevdjvu.$(OBJ) > > $(DD)djvumask.dev : $(djvu_) > $(SETDEV) $(DD)djvumask $(djvu_) > > $(DD)djvusep.dev : $(djvu_) > $(SETDEV) $(DD)djvusep $(djvu_) > > $(GLOBJ)gdevdjvu.$(OBJ) : $(GLSRC)gdevdjvu.c $(GLGEN)arch.h > $(GLCC) $(GLO_)gdevdjvu.$(OBJ) $(C_) $(GLSRC)gdevdjvu.c \ > -DGS_VERSION=$(GS_VERSION) \ No newline at end of file diff -r c:\src\ghostscript-9.06/base/gdevdjvu.c c:\src\gsdjvu\ghostscript-9.06/base/gdevdjvu.c 84d83 < #include "gserror.h" diff -r c:\src\ghostscript-9.06/psi/msvc.mak c:\src\gsdjvu\ghostscript-9.06/psi/msvc.mak 947c947 < DEVICE_DEVS16=$(DD)bbox.dev $(DD)cups.dev $(DD)plib.dev $(DD)plibg.dev $(DD)plibm.dev $(DD)plibc.dev $(DD)plibk.dev $( DD)plan.dev $(DD)plang.dev $(DD)planm.dev $(DD)planc.dev $(DD)plank.dev --- > DEVICE_DEVS16=$(DD)bbox.dev $(DD)djvumask.dev $(DD)djvusep.dev $(DD)cups.dev $(DD)plib.dev $(DD)plibg.dev $(DD)plibm.d ev $(DD)plibc.dev $(DD)plibk.dev $(DD)plan.dev $(DD)plang.dev $(DD)planm.dev $(DD)planc.dev $(DD)plank.dev ============================================================================ I also assumed ps2utf8.ps is not needed with recent GS, and "-dProvideUnicode -dExtractText" is recommended instead? Cheers |