I was building in a standalone directory. I have deleted the whole
directory and rebuilt (this time with -DPODOFO_BUILD_SHARED=false), but
that didn't help.
Running without the dlls in the same folder as the exe doesn't work -
so it must be using the dlls I put there. I also ran depends and
confirmed this. The dlls are the ones from the gnuwin32 folder, so I
assume they should match the libs.
Depends does complain that it can't find MSVCP80DLL.dll, MSVCR80.DLL
and strangely also MSJAVA.dll. MPR.dll is red.
The version info from depends give:
File, File Version, Linker Version
freetype.dll, 2.3.4, 2.56
zlib.dll, 1.2.3.2532, 2.56
As I say, these are the files I downloaded from gnuwin32. Could anyone
send me a zip of the a working set of dependencies?
Thanks,
Ed.
Craig Ringer wrote:
Edward Ross wrote:
I've found a simpler version of the problem with the output stream.
Here I try to run hello world with my version of podofo compiled with MS
Visual Studio 8:
C:\dev\pdf\podofo\examples\helloworld\debug>helloworld text.pdf
DEBUG: kidsIndex=-1
DEBUG: New pages count:1
Assertion failed: !m_pOutputStream, file
c:\dev\pdf\podofo-0.5.0\src\PdfFilter.h
, line 377
That's extremely odd. I cannot reproduce the issue, so it's hard to
offer much by way of useful advice beyond the obvious:
- Make sure that any libraries you linked to exactly match the
DLLs being loaded at runtime. http://dependencywalker.com/
will be somewhat useful here. It can also be useful to start
a cmd.exe window, set your PATH to the empty string with
set PATH=
then copy ALL required DLLs into the current directory and
run the app. If it works when you do that, another app has
a binary-incompatible DLL of the same name before your one
on the search path.
- Delete your build directory (you ARE using out-of-tree builds
like the README recommends, right) and re-build. If this fixes
the problem you had an unclean build - something that should not
be possible unless you've changed dependent objects partway
through the build or something similarly odd.
I use Visual Studio 8/2005 to work on PoDoFo when I work on Windows and
haven't seen these sorts of issues. Unless we're somehow managing to mix
Visual Studio 6-compiled code and Visual Studio 8-compiled code (which
will hopelessly fail to work at runtime) I'm pretty puzzled as to what
might be happening.
Verify correct DLL linkage, do a clean rebuild, and if that doesn't help
let me know.
--
Craig Ringer
-------------------------------------------------------------------------
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
--
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