On Thu, 7 Jul 2011 04:04:08 +0300 Nerijus Baliunas nerijus@users.sourceforge.net 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?
config.log: configure:19021: checking for opj_cio_open in -lopenjpeg configure:19046: i686-pc-mingw32-g++ -o conftest.exe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields conftest.cpp -lopenjpeg >&5 /tmp/cc08LQZR.o: In function `main': /home/nerijus/rpmbuild/BUILD/poppler-0.16.7/conftest.cpp:41: undefined reference to `_opj_cio_open' collect2: ld returned 1 exit status configure:19046: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "poppler" | #define PACKAGE_TARNAME "poppler" | #define PACKAGE_VERSION "0.16.7" | #define PACKAGE_STRING "poppler 0.16.7" | #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=poppler" | #define PACKAGE_URL "" | #define PACKAGE "poppler" | #define VERSION "0.16.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define LT_OBJDIR ".libs/" | #define OPI_SUPPORT 1 | #define MULTITHREADED 1 | #define TEXTOUT_WORD_LIST 1 | #define HAVE_PTHREAD 1 | #define ENABLE_RELOCATABLE 1 | #define POPPLER_DATADIR "/usr/i686-pc-mingw32/sys-root/mingw/share/poppler" | #define HAVE_DIRENT_H 1 | #define HAVE_GETTIMEOFDAY 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char opj_cio_open (); | int | main () | { | return opj_cio_open (); | ; | return 0; | } configure:19055: result: no configure:19065: checking openjpeg.h usability
But running mingw32-cmake instead of mingw32-configure enables libopenjpeg support.
But I still like to use mingw32-configure, because it enables glib support which I need. "ccmake ." has WITH_GLIB ON, but after running mingw32-cmake at the end it writes: glib wrapper: no
Regards, Nerijus