[Podofo-users] help needed on building podofo.lib using vs 2008
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
From: Wei M. T. <sha...@ho...> - 2012-01-18 07:33:26
|
Hi, I'm trying to build the podofo library using vs 2008. I'm using cmake 2.8, freetype-2.4.8, jpeg-8c, zlib125-dll. I assume these are the minimum required open-source libraries I need. The solution managed to build with cmake. However, when trying to build the solution, I got the error "LNK1181: cannot open input file 'podofo.lib'". When building podofo_shared, I got "LNK1257: code generation failed" with fatal error C1900: I1 mismatch between 'P1' version '20081201' and 'P2' version '20070207'. I do not require this dll though, am perfectly happy to statically link. However, podofo.lib seems like it doesn't exist. Most likely, something has gone wrong with the cmake: C:\Documents and Settings\tweimin\Desktop\podofo>build C:\Documents and Settings\tweimin\Desktop\podofo>del cmakecache.txt Could Not Find C:\Documents and Settings\tweimin\Desktop\podofo\cmakecache.txt C:\Documents and Settings\tweimin\Desktop\podofo>set FTDIR=C:\developer\freetype -2.4.8 C:\Documents and Settings\tweimin\Desktop\podofo>set FTLIBDIR=C:\developer\freet ype-2.4.8\objs\win32\vc2008 C:\Documents and Settings\tweimin\Desktop\podofo>set JPEGDIR=C:\Developer\jpeg-8 c C:\Documents and Settings\tweimin\Desktop\podofo>set ZLIBDIR=C:\developer\zlib12 5-dll C:\Documents and Settings\tweimin\Desktop\podofo>cmake -G "Visual Studio 9 2008" ..\podofo-0.9.1 -DCMAKE_INCLUDE_PATH="C:\developer\freetype-2.4.8\include;C:\De veloper\jpeg-8c\include;C:\Developer\jpeg-8c;C:\developer\zlib125-dll\include" - DCMAKE_LIBRARY_PATH="C:\developer\freetype-2.4.8\objs\win32\vc2008;C:\developer\ freetype-2.4.8\lib;C:\Developer\jpeg-8c\lib;C:\Developer\jpeg-8c;C:\developer\zl ib125-dll\lib" -DPODOFO_BUILD_SHARED:BOOL=FALSE -DFREETYPE_LIBRARY_NAMES_DEBUG=f reetype248MT_D -DFREETYPE_LIBRARY_NAMES_RELEASE=freetype248MT -- Check for working C compiler using: Visual Studio 9 2008 -- Check for working C compiler using: Visual Studio 9 2008 -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler using: Visual Studio 9 2008 -- Check for working CXX compiler using: Visual Studio 9 2008 -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done WANT_LIB64 unset; assuming normal library directory names Will install libraries to C:/Program Files/PoDoFo/lib -- Looking for strings.h -- Looking for strings.h - not 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 - not found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - not found -- Looking for BaseTsd.h -- Looking for BaseTsd.h - 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 - not 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 -- Found ZLIB: C:/Developer/zlib125-dll/lib/zdll.lib Found zlib headers in C:/Developer/zlib125-dll/include, library at C:/Developer/ zlib125-dll/lib/zdll.lib -- Found LIBJPEG: C:/Developer/jpeg-8c/lib/jpeg.lib Found libjpeg headers in C:/Developer/jpeg-8c, library at C:/Developer/jpeg-8c/l ib/jpeg.lib -- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) Libtiff not found. TIFF support will be disabled CMake Warning (dev) at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPN G.cmake:33 (find_package): File C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPNG.cmake includes C:/Documents and Settings/tweimin/Desktop/podofo-0.9.1/cmake/modules/FindZLIB.cmake (found via CMAKE_MODULE_PATH) which shadows C:/Program Files/CMake 2.8/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:332 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) LibPng not found. PNG support will be disabled -- Ensure you cppunit installed version is at least 1.12.0 Cppunit not found. No unit tests will be built. OpenSSL: Could not find the debug and release version of openssl OpenSSL: Disabling OpenSSL Found freetype library at optimized;C:/Developer/freetype-2.4.8/objs/win32/vc200 8/freetype248MT.lib;debug;C:/Developer/freetype-2.4.8/objs/win32/vc2008/freetype 248MT_D.lib, headers C:/Developer/freetype-2.4.8/include;C:/Developer/freetype-2 .4.8/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 shared PoDoFo library -- Configuring done -- Generating done -- Build files have been written to: C:/Documents and Settings/tweimin/Desktop/p odofo I'll appreciate any help. Thanks. |