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

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
taigaIV

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

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
taigaIV

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

Post 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 ?
Post Reply