On 13/10/2009 3:19 PM, EXTERNAL Loch Sebastian (Firma Ferchau;
BhP/TEF17) wrote:
> Hello list,
> 
> I try to compile the actual trunk  with VS2005 or VS2003
> and I got the following problems:
> 
> 1.) PdfXObject.cpp
> s:\vsprojects\podofo\vs2005\src\util\PdfMutexImpl_win32.h(86) : error C3861: 
> "TryEnterCriticalSection":
> 
> 2.) PdfFiltersPrivate.cpp
> C:\Program Files\Microsoft Visual Studio 
> 8\VC\PlatformSDK\include\winsock2.h(112) : error C2011: 'fd_set':
> 'struct'
> -> I got here a bunch of definition errors...
> 
> I tried to include winsock2.h before winsock.h in PdfCompilerCompatPrivate.h 
> but still getting definition errors. Any ideas where to include the above 
> header files? Does this remove the definition errors?

Can you send me your CMakeCache.txt, the command line you invoked CMake
with, and your podofo_config.h ?

Are you working with an ABSOLUTELY CLEAN checkout? If you're not, attach
the diff between your working tree and trunk, ALONG WITH EXPLANATIONS OF
WHY YOU MADE EVERY CHANGE MADE.

Right now I'm pretty frustrated with this. Supporting old compilers is a
waste of time better spent on other things, and the preoccupation with
it (and lack of meaningful contribution back to the codebase) is part of
the reason I've been pretty demotivated to work on PoDoFo lately. It
feels like it's mostly used by Windows developers hacking on legacy crap
who only want to contribute back dirty hacks that get it working for
them and break it for everybody else (see: the pdf_long mess). Working
on PoDoFo seems like one long fix-and-cleanup mission with lots of time
spent on fixing compatibility bugs that only matter if you use old
compilers you're stuck with when maintaining ancient proprietary codebases.

As usual, I have *no* issues building on VS 2008 (express). VS 2005 just
isn't that different, and the win32 SDK they use by default is almost
exactly the same, especially since any changes to the SDK tend to be
hidden by checks for version macros that we never define.

Are you modifying the build scripts or something? Do you have any code
changes you haven't bothered to mention?

Last time you reported a problem, it eventually turned out you were
using the CMakeLists.txt in the src\ directory instead of the proper one
in the root directory (despite the README's instructions). I've since
modified the code to make that mistake impossible, because it breaks all
sorts of things and just won't work unless you modify the sources
considerably as well.

Any chance you removed the code that checks for that and hand-built a
podofo_config.h or something like that?

I've just re-tested the build on VS 2008 with the following batch file:

> del cmakecache.txt
> set FTDIR=C:\developer\lib\msvc2008\freetype-2.3.9
> set FTLIBDIR=C:\developer\lib\msvc2008\freetype-2.3.9\objs\win32\vc2008
> set JPEGDIR=C:\developer\lib\msvc2008\jpeg-7
> set ZLIBDIR=C:\developer\lib\generic\zlib
> cmake -G "Visual Studio 9 2008" c:\developer\podofo 
> -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 -DPODOFO_BUILD_STATIC:BOOL=TRUE 
> -DFREETYPE_LIBRARY_NAMES_DEBUG=freetype239MT_D 
> -DFREETYPE_LIBRARY_NAMES_RELEASE=freetype239MT

and have no issues.

Feel like buying me a visual studio 2005 license so I can investigate,
and dedicating some of your budget to my time spent supporting your
company's software development efforts? I'm not buying an (old) VS
license myself to help you work on your commercial software in my spare
time.

Please test with a *CURRENT* Microsoft compiler (you can get one for
free from http://www.microsoft.com/express/ ) in case it's something to
do with your system configuration or environment. If you can reproduce
the issue you report with VS 2008 run on a clean source tree then it's
clearly not just a compiler version issue and is instead something to do
with how you're building things or something different about the setup
of your machines. If you *can't* reproduce it with 2008, we know it's
probably a compiler version difference and can get on to tracking down
what the difference is. Right now, all I see is "it's broken on an old
compiler I have no access to and don't much care about".

--
Craig Ringer

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to