On 07/07/2011 04:04 AM, Nerijus Baliunas wrote:
> I am trying to compile poppler-0.16.7 on Fedora 15. mingw32-configure fails 
> to link libopenjpeg:
> checking for opj_cio_open in -lopenjpeg... no
> checking openjpeg.h usability... yes
> checking openjpeg.h presence... yes
> checking for openjpeg.h... yes
> 
> Why? But running mingw32-cmake instead of mingw32-configure enables 
> libopenjpeg support.

Probably a bug in poppler's configure script.


> Later it fails:
> In file included from 
> /usr/i686-pc-mingw32/sys-root/mingw/include/winnt.h:192:0,
>                  from 
> /usr/i686-pc-mingw32/sys-root/mingw/include/windef.h:253,
>                  from 
> /home/nerijus/rpmbuild/BUILD/poppler-0.16.7/poppler/poppler-config.h:83,
>                  from 
> /home/nerijus/rpmbuild/BUILD/poppler-0.16.7/poppler/Error.h:33,
>                  from 
> /home/nerijus/rpmbuild/BUILD/poppler-0.16.7/goo/JpegWriter.cc:17:
> /usr/i686-pc-mingw32/sys-root/mingw/include/basetsd.h:52:13: error: 
> conflicting declaration 'typedef int INT32'
> /usr/i686-pc-mingw32/sys-root/mingw/include/jmorecfg.h:164:14: error: 'INT32' 
> has a previous declaration as 'typedef long int INT32'
> 
> It is a known problem, I know wxWidgets have workaround for it. Which one 
> should I use?

That would be a bug in mingw32-openjpeg. Public openjpeg headers
shouldn't redefine types from WIN32 headers.

-- 
Kalev
_______________________________________________
mingw mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/mingw

Reply via email to