Many thanks for the information.  I'm completely unfamiliar with mingw and cmake.  I've downloaded and installed and installed mingw, but I can't find cmake - could you let me know where I can get cmake for mingw please?

Looking at the install instructions - I've tried the provided VS project files route already.  So I guess I'll now try generating Visual Studio project files with CMake.  But I'm a little confused by the second sentence  - are MinGW Makefiles the same thing as using CMake to generate Visual Studio project files?

"On Windows, it is recommended that you use CMake to generate Visual Studio
project files appropriate for your VS version and your libraries. You can also
generate NMake builds or MinGW Makefiles (see "Installation with CMake").
Alternately, Windows users can use the provided Visual Studio Solution/Project
files after placing the other libraries in a directory inside of the podofo
directory."

Ed.

Craig Ringer wrote:
Edward Ross wrote:

  
I had to make some changes to the project file - to include the libs and
header files.  Also some of the podofo code was missing from the
project. Perhaps the visual studio project is out of date in podofo-0.5.0.
    

The project file is hopelessly out of date. It was removed from the tree
after PoDoFo 0.5.0 was released. The README in 0.5.0 strongly recommends
using CMake instead and it is advice you should probably follow.

Please read the documentation. It tells you how to build PoDoFo. I have
not built it with Visual Studio 6 myself ( I don't know why that
dinosaur keeps on kicking ) but CMake does support building with it, and
I know we have users using Visual Studio 6.

CMake is the recommended (now only) build system option. It will
generate a Visual Studio project file for you, an up-to-date one that
has correct paths for the location of the SDK, libraries, etc on your
system and is compatible with your version of Visual Studio.

  
Anyway, I've managed to get the projects PoDoFoLib and podofouncompress
to compile and link.  But when I run I get an exception before even the
first line of main.  Below is the debug output from MS C++ 2006 Express
Edition.  I've also attached the podofo and podofouncompress project files.
    

Please build the library according to the documentation. If you still
have problems, post with details and I or someone else here will try to
help.

  
First-chance exception at 0x00322ba6 in podofouncompress.exe:
0xC0000005: Access violation reading location 0x00322ba6.
Unhandled exception at 0x00322ba6 in podofouncompress.exe: 0xC0000005:
Access violation reading location 0x00322ba6.
The program '[4420] podofouncompress.exe: Native' has exited with code 0
(0x0).
    

I'm afraid this trace is completely useless, as it is only meaningful
with reference to offsets in the binaries you have built, and lacks any
symbol information. Try building with debugging enabled, trap the
exception, and get a real backtrace. You should also download the symbol
database for your version of Windows and your C runtime, or configure
the symbol server in windbg and use that.

--
Craig Ringer


  


-- 

Edward Ross
Exorbyte GmbH
UK Office: +44 (0)845 6800061
DE Office: +49 (0)7531 3633900
Fax: +44 (0)845 6800062
http://www.exorbyte.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to