Page 1 of 1

How can i compile (or get) a windows version supporting djvu

Posted: 2008-08-10T09:44:06-07:00
by taigaIV
Hi,

I must use imagemagick under windows. Goal is to transform djvu files into png. I've made some test under linux, everything work fine. Now i must move to windows and i get problems with djvu support.

I first downloaded the binary version witch dosen't support djvu files.
So i decided to download sources and activate support. i also downloaded djvulibre. I'm unable to activate it correctly and build exe. Can someone explain how to do this.

Thanks,

Mathieu

Re: How can i compile (or get) a windows version supporting djvu

Posted: 2008-08-10T10:20:16-07:00
by magick
The simplest solution is to build libdjvu under Windows and include it as a dependency to the ImageMagick project. Also edit magick-config.h and define MAGICKCORE_DJVU_DELEGATE.

A better solution is to create a djvu folder with the library source in the ImageMagick-6.4.2 folder and create a configure djvu folder in the ImageMagick-6.4.2\VisualMagick folder (model it after one of the other delegate folders such as jpeg or png). Now run the configure program and it will create a ImageMagick build project that includes djvu support. If you get all this working, post a URL to your modifications here so we can include it in future versions of the ImageMagick releases.

Another option is to build ImageMagick and djvu under Cygwin or MinGW.

Re: How can i compile (or get) a windows version supporting djvu

Posted: 2008-08-13T04:59:46-07:00
by taigaIV
Thanks for your answer.

I finally decided to compile it under cygwin. By the way, i was'nt able to compile last djvulibre version (3.5.20) under cygwin, 3.5.17 compiled perfectly. After performing conversion he segfault, but i get my file.

I'm not sure i well understood second proposition. Do you mean incorporating libdjvu sources in imagemagick and modify code and builder to use it ?