I was hoping to search mailling list archives, but http://sourceforge.net/mailarchive/forum.php?forum=podofo-users gets a 404 error.
My situation: I'm cross-compiling podofo to mingw-64, and had some trouble getting libjpeg to compile properly. Since it's supposed to be optional, I tried removing the jpeg lib from the CMAKE_FIND_ROOT_PATH dirs. >From the build dir, running > cat ~/.cmake/Toolchain-mingw32.cmake SET(CMAKE_SYSTEM_NAME Windows) SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc) SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++) SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres) SET(CMAKE_INSTALL_PREFIX /home/wayne/.cmake) SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32 /home/wayne/.cmake) SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) then > cmake -D-DCMAKE_TOOLCHAIN_FILE=~/.cmake/Toolchain-mingw32.cmake .. gives: -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/i686-w64-mingw32-gcc -- Check for working C compiler: /usr/bin/i686-w64-mingw32-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/i686-w64-mingw32-g++ -- Check for working CXX compiler: /usr/bin/i686-w64-mingw32-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done WANT_LIB64 unset; assuming normal library directory names Will install libraries to /usr/local/lib -- Looking for strings.h -- Looking for strings.h - found -- Looking for arpa/inet.h -- Looking for arpa/inet.h - not found -- Looking for winsock2.h -- Looking for winsock2.h - found -- Looking for mem.h -- Looking for mem.h - found -- Looking for ctype.h -- Looking for ctype.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for BaseTsd.h -- Looking for BaseTsd.h - not found -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian Using gcc specific compiler options -- Found ZLIB: /home/wayne/.cmake/bin/libzlib.dll Found zlib headers in /home/wayne/.cmake/include, library at /home/wayne/.cmake/bin/libzlib.dll -- Found LIBCRYPTO: /home/wayne/.cmake/lib/libcrypto.a Found OpenSSL's libCrypto headers in /home/wayne/.cmake/include, library at /home/wayne/.cmake/lib/libcrypto.a -- Could NOT find LIBIDN (missing: LIBIDN_LIBRARY LIBIDN_INCLUDE_DIR) Libidn not found. AES-256 Encryption support will be disabled -- Could NOT find LIBJPEG (missing: LIBJPEG_LIBRARY LIBJPEG_INCLUDE_DIR) libjpeg not found: Library LIBJPEG_LIBRARY_RELEASE-NOTFOUND, headers LIBJPEG_INCLUDE_DIR-NOTFOUND Libjpeg not found. JPEG support will be disabled -- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) Libtiff not found. TIFF support will be disabled CMake Warning (dev) at /usr/share/cmake-2.8/Modules/FindPNG.cmake:33 (find_package): File /usr/share/cmake-2.8/Modules/FindPNG.cmake includes /home/wayne/src/podofo/cmake/modules/FindZLIB.cmake (found via CMAKE_MODULE_PATH) which shadows /usr/share/cmake-2.8/Modules/FindZLIB.cmake. This may cause errors later on . Policy CMP0017 is not set: Prefer files from the CMake module directory when including from there. Run "cmake --help-policy CMP0017" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): CMakeLists.txt:349 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it. -- Found PNG: /home/wayne/.cmake/lib/libpng.a Found LibPng headers in /home/wayne/.cmake/include;/home/wayne/.cmake/include, library at /home/wayne/.cmake/lib/libpng.a;/home/wayne/.cmake/bin/libzlib.dll -- Found cppunit: -lcppunit -ldl Found cppunit. Unit tests will be built. -- Found OpenSSL: /home/wayne/.cmake/lib/libssl.a Found freetype library at /home/wayne/.cmake/lib/libfreetype.a, headers /home/wayne/.cmake/include/freetype2;/home/wayne/.cmake/include -- Could NOT find Fontconfig (missing: FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR) -- Could NOT find Lua50 (missing: LUA_LIBRARIES LUA_INCLUDE_DIR) -- Could NOT find Lua (missing: LUA_LIBRARIES LUA_INCLUDE_DIR) Lua not found - PoDoFoImpose and PoDoFoColor will be built without Lua support Building multithreaded version of PoDoFo. -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - not found. -- Found Threads: TRUE Building static PoDoFo library CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: LIBJPEG_LIBRARY_RELEASE linked by target "podofo_static" in directory /home/wayne/src/podofo/src linked by target "ContentParser" in directory /home/wayne/src/podofo/test/ContentParser linked by target "ContentParser" in directory /home/wayne/src/podofo/test/ContentParser linked by target "CreationTest" in directory /home/wayne/src/podofo/test/CreationTest linked by target "CreationTest" in directory /home/wayne/src/podofo/test/CreationTest linked by target "DeviceTest" in directory /home/wayne/src/podofo/test/DeviceTest linked by target "DeviceTest" in directory /home/wayne/src/podofo/test/DeviceTest linked by target "FilterTest" in directory /home/wayne/src/podofo/test/FilterTest linked by target "FilterTest" in directory /home/wayne/src/podofo/test/FilterTest linked by target "FormTest" in directory /home/wayne/src/podofo/test/FormTest linked by target "FormTest" in directory /home/wayne/src/podofo/test/FormTest linked by target "ObjectParserTest" in directory /home/wayne/src/podofo/test/ObjectParserTest linked by target "ObjectParserTest" in directory /home/wayne/src/podofo/test/ObjectParserTest linked by target "ParserTest" in directory /home/wayne/src/podofo/test/ParserTest linked by target "SignatureTest" in directory /home/wayne/src/podofo/test/SignatureTest linked by target "SignatureTest" in directory /home/wayne/src/podofo/test/SignatureTest linked by target "TokenizerTest" in directory /home/wayne/src/podofo/test/TokenizerTest linked by target "TokenizerTest" in directory /home/wayne/src/podofo/test/TokenizerTest linked by target "VariantTest" in directory /home/wayne/src/podofo/test/VariantTest linked by target "VariantTest" in directory /home/wayne/src/podofo/test/VariantTest linked by target "WatermarkTest" in directory /home/wayne/src/podofo/test/WatermarkTest linked by target "WatermarkTest" in directory /home/wayne/src/podofo/test/WatermarkTest linked by target "podofo-test" in directory /home/wayne/src/podofo/test/unit linked by target "podofo-test" in directory /home/wayne/src/podofo/test/unit linked by target "podofobox" in directory /home/wayne/src/podofo/tools/podofobox linked by target "podofocolor" in directory /home/wayne/src/podofo/tools/podofocolor linked by target "podofocountpages" in directory /home/wayne/src/podofo/tools/podofocountpages linked by target "podofocrop" in directory /home/wayne/src/podofo/tools/podofocrop linked by target "podofoencrypt" in directory /home/wayne/src/podofo/tools/podofoencrypt linked by target "podofogc" in directory /home/wayne/src/podofo/tools/podofogc linked by target "podofoimgextract" in directory /home/wayne/src/podofo/tools/podofoimgextract linked by target "podofoimg2pdf" in directory /home/wayne/src/podofo/tools/podofoimg2pdf linked by target "podofomerge" in directory /home/wayne/src/podofo/tools/podofomerge linked by target "podofopages" in directory /home/wayne/src/podofo/tools/podofopages linked by target "podofopdfinfo" in directory /home/wayne/src/podofo/tools/podofopdfinfo linked by target "podofotxt2pdf" in directory /home/wayne/src/podofo/tools/podofotxt2pdf linked by target "podofotxtextract" in directory /home/wayne/src/podofo/tools/podofotxtextract linked by target "podofouncompress" in directory /home/wayne/src/podofo/tools/podofouncompress linked by target "podofoimpose" in directory /home/wayne/src/podofo/tools/podofoimpose linked by target "podofoincrementalupdates" in directory /home/wayne/src/podofo/tools/podofoincrementalupdates linked by target "podofoxmp" in directory /home/wayne/src/podofo/tools/podofoxmp linked by target "helloworld" in directory /home/wayne/src/podofo/examples/helloworld linked by target "helloworld-base14" in directory /home/wayne/src/podofo/examples/helloworld-base14 -- Configuring incomplete, errors occurred! If jpeg really is required, I can go back and work on compiling it. Either way, it looks like the podofo cmake config needs some tweeking. Any guidance? Wayne ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users