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:

It sounds like you're still having problems with this. I really can't
account for that, since I've set up the build myself on several machines
and know that others build it fine. All I install is GnuWin32, Visual
Studio Express Edition 2005, and the Windows 2003 SDK (but you can use
any later, and probably earlier, version).

I'm uploading an archive of the gnuwin32 install I use to:

http://www.postnewspapers.com.au/~craig/gnuwin32_podofo_tshoot.zip

it'll be there about an hour after this message is sent (slow link).

It contains two directories of GnuWin32 tools - GnuWin32_programs and
GnuWin32_developer, since I separate the libraries from the general
tools. (I normally install the programs in PROGRA~1 and the libs in
\Developer\). You probably only need the GnuWin32_developer one, but
I've included the other tools just in case. Unpack the
GnuWin32_developer directory somewhere that has an easy to type path - I
use \Developer .

Now, delete your build directory, create a new empty directory, then
start a command line (cmd.exe) and cd into it. Run:

set PATH=%SystemRoot%;%SystemRoot%\SYSTEM32

(exactly as written above, and include nothing else)

then all one one line:

cmake -G "Visual Studio 8 2005" -DCMAKE_BUILD_TYPE=debug
-DCMAKE_INCLUDE_PATH=\path\to\gnuwin32\include
-DCMAKE_LIBRARY_PATH=\path\to\gnuwin32\lib;\path\to\gnuwin32\bin
\path\to\podofo\sources

(obviously substitute \path\to\gnuwin32\include with your GnuWin32 path).

When cmake completes, leave your cmd.exe window open. You'll need it later.

Open the resulting project file in VS 2005 (you can do this by typing
"ALL_BUILD.vcproj" or through Explorer). Build it; it should complete
without errors if you're using latest svn.

Now, back in the cmd.exe window you were working in earlier, cd to
examples\helloworld\debug and run helloworld.exe . If you do NOT get an
error message warning you that freetype6.dll or jpeg62.dll were not
found, you've done something wrong. These libraries should not be found
with the PATH we just set.

Now, find freetype6.dll and jpeg62.dll in my GnuWin32 bin directory.
Copy those two files and ONLY those two files to the
examples\helloworld\debug directory in your new VS build. Now, back in
cmd.exe, run helloworld.exe again.

You should get a usage message.

Run:

helloworld.exe out.pdf

You should get a PDF file.

--
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

Reply via email to