Hello,

I am keen to use PoDoFo for my project.  I have followed the README, but 
I'm getting a problem at the cmake stage.  I am using zlib1.dll as 
instructed - I have not built it myself, so I don't have zlib.h or 
zlib.lib - just zlib1.dl.

I have created a build.cmd file as follows:

del cmakecache.txt
set FTDIR=Z:\PoDoFo\freetype-2.4.8
set FTLIBDIR=Z:\PoDoFo\freetype-2.4.8\objs\win32\vc2005
set JPEGDIR=Z:\PoDoFo\jpeg-8d
set ZLIBDIR=Z:\PoDoFo\zlib
cmake -G "Visual Studio 8 2005" ..\ 
-DCMAKE_INCLUDE_PATH="%FTDIR%\include;%JPEGDIR%\include;%JPEGDIR%;%ZLIBDIR%\include"
 
-DCMAKE_LIBRARY_PATH="%FTLIBDIR%;%FTDIR%\lib;%JPEGDIR%\lib;%JPEGDIR%;%ZLIBDIR%\lib"
 
-DPODOFO_BUILD_SHARED:BOOL=FALSE 
-DFREETYPE_LIBRARY_NAMES_DEBUG=freetype248MT_D 
-DFREETYPE_LIBRARY_NAMES_RELEASE=freetype248MT

My zlib1.dll is in the directory Z:\PoDoFo\zlib, although I have also 
tried in in a 'lib' subdir below that.  Either way, when I run 
build.cmd, I get the following:

CMake Error at C:/Program Files/CMake 
2.8/share/cmake-2.8/Modules/FindPackageHan
dleStandardArgs.cmake:70 (MESSAGE):
  Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Call Stack (most recent call first):
  cmake/modules/FindZLIB.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:309 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!

Can anyone help please?  I'm not familiar enough with cmake to 
understand this.

Why does the build.bat line include the ZLIBDIR\include?  (It doesn't 
work even if I take it out, though).  If I'm just using a .dll with no 
other source, what should my cmake line look like?

Thanks,
Tom

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to