I am trying to build PODOFO a pdf library. It requires zlib in the installation process. I'm using MingW on Windows XP.
I have built zlib using the command prompt and this is what I have entered.
mingw32-make -f win32\Makefile.gcc
This builds the required files without error.
In CMAKE, i am using the latest version. It has a GUI interface so there's nowhere to enter command prompts.
I direct it to the source-code and the build directory for PODOFO and specify the location of the ZLIB_INCLUDE_DIRECTORY and the ZLIB_LIBRARY. As far as I can see they are both the same......
THEN.. When I run CMAKE, it can't find the ZLIB_LIBRARY ... I'm astonished..
How can this be.. Is there a specific file it is looking for??? From what I can gather there is a zlib1.dll file in that directory but not sure what else would be relevant. So the whole process stops with this error.
ALSO
I want this to be linked statically to my applications (I'm using Code::Blocks with MingW compiler) and want to build projects without including a DLL every time. The PODOFO installation instructions tell me to enter :
-DPODOFO_BUILD_SHARED=FALSE.... where do I enter this??? I've tried putting it in the PODOFO CMake List file and it just causes an error when I run CMAKE?
Could somebody please help me,, I've been on this for weeks and its driving me crazy..
It has to be build and there are a few dependencies. I was hoping someone out there may know something. As far as I can see, and from the comments around the web, PODOFO requires a computer scientist to get it running. I'm dumbfounded as to why this is so difficult. Was meant to start this project 3 months ago and I can't even get PODOFO working yet...
I believe CMAKE creates a makefile which integrates podofo, zlib and libjpeg so they can be used in the compilation process. All these libraries have their own makefiles..
I believe CMAKE creates a makefile which integrates podofo, zlib and libjpeg so they can be used in the compilation process.
No, that wouln't make too much sense. I'd say that it's aimed to create the PODOFO lib and nothing more. All the required libraries you have to add to your project settings. Which shouldn't be too hard
You run Cmake-GUI from a command prompt using specified command line arguments. If you don't know how, just change the shortcut on the desktop adding a space and specified arguments, then double-click it.
ok, so CMAKE creates a podofo lib then but the problem is still the same.
I'm probably about 17 years away from creating any project at the rate I'm going.
Modoran.. I'm not sure what this means?
If you don't know how, just change the shortcut on the desktop adding a space and specified arguments, then double-click it.
I don't even know what arguments to enter.. ?
The issue seems to be that CMAKE can't find the library file. I'm thinking that it could even be a build problem with ZLIB but I have now used every single version I can fine and the problem is still the same. Should I direct the
ZLIB_LIBRARY variable to zlib1.dll or is there another file which it should find or is the library in this case a series of files. If it is a series of files then why can't CMAKE see it? Here is a list of all the files and files in the sub directories of the Zlib directory. Can anyone see any files here which could possibly be considered ZLIB_LIBRARY files.
I am trying to build a library for PODOFO (which is a pdf library for manipulating and creating pdf files). It has dependencies and one of those dependencies is zlib. This means that if I am going to build a library for PODOFO using Cmake I need zlib. The zlib library is therefore built first, also libjpeg, also freetype2.
When I go to create the PODOFO library using CMAKE it finds the ZLIB_INCLUDE_DIR (remember, we're creating a PODOFO library) but it can't fine ZLIB_LIBRARY. It tells me that in the error. The library (which as I've mentioned, I've built already) is in the Zlib directory. The contents of that directory are shown above. All the library files are dated 17/10/2012 'above'.
Let's throw away the idea of creating a project, lets not even use the word.
By the looks of things, I'll never even get to that stage because I can't create a library for PODOFO and I haven't come across one person who has.....
ZLIB_LIBRARY must point to full path to libzlib1.a and ZLIB_INCLUDE_DIRECTORY must point to directory where zlib.h can be found. These are environment variables, I hope you know how to set them.
If this does not work, edit zlib.cmake and cancel the zlib check (it is a text file, make it returns true always). This file came with PODOFO library. Then edit your project settings to compile and link correctly.
There is no file called libzlib1.a but I tried a few of the others and I just get the same error. This should work as is but I'm dumbfounded as to why there is this incompatibility. Maybe PODOFO will only really work on linux and wasn't meant for windows..
In the zlib makefile set the below macros as follows. They are both in the zlib Makefile.gcc with the # sign in front of them. Remove this # sign.
LOC = -DDEBUG -g
There's also a LOC = -DASMV variable but not sure what the -DASMV is, still investigating, but when I ran this, it seemed to work.. May have spoken too soon as I have other dependencies to worry about not but I'm getting warmer..