On Wed, 2009-07-15 at 10:32 +0200, Mirco Babin wrote:
>
> I disagree. Building a DLL is not hard, a DLL consists of X sources
> and X lib's and that's it.
That's true (ish) as far as it goes. However, build systems are expected
to do more than that:
- Detect platform, compiler, version, etc and:
- Change tool command line usage appropriately
- Set up appropriate defines so the source can dynamically
adjust its self to suit the environment for which its being
built.
- Handle building of shared / static, debug/non-debug, etc, including
bizarre different platform rules for each.
- Discover installed libraries and tools, their paths, etc. Test them
to make sure they're usable and of the correct version.
- Identify changed sources and only rebuild/relink affected object code,
not whole project.
- Identify header dependencies
- Invoke pre- and post- processing tools (like Qt's `moc') based on
various files changing.
- Invoke pre- and post- linking steps.
- Handle installation, build installers, etc.
- Automate execution of test cases
- ... lots more ...
Of course, everybody has their own preferences for C++
frameworks/portable runtimes (none, APR, Qt, NSPR, etc), unit testing
frameworks, and so on. Different build tools integrate well with
different ones, and different projects have different needs.
People don't (generally) create new build tools for the fun of it. They
tend to do so to solve problems. Unfortunately, the new tool while
better in some ways (those that interest its creator) tends to be
deficient in others.
You'll *never* get everyone to agree on one of them.
> Yep, that's a really C++ problem, how to deal with them damn INT. But
> if one project would just once generically tacle this problem, nobody
> has to
> #define BYTE unsigned char OR #define BYTE char (because the
> compiler can't handle unsigned char)
We're saddled with 10 years of history. C and C++ developers expect to
be able to build new code with ancient compilers from near the dawn of
time (see : MS Visual C++ 6 ) and won't use new tools that solve
problems like this.
Why can't we all just use c99 and modern C++ ? Sigh.
>
> > What I have seen is everybody writes his own stream class
> in C,
> > writes his own memory management, writes his own string
> class,
> > hopefully uses pthreads, uses #define's for some c runtime
> api, so it
> > can be changed, ...
>
> ... because the core language facilities provided by C and C++
> are so
> hopelessly behind the needs of modern applications, and even
> if they
> weren't people would still insist on using f**ing MS Visual C
> ++ 6 in
> 2025 so you couldn't use them.
>
> So there is a need for modern tools in older platforms.
People tried that. See: STLPort, for example. It creates more problems,
because you need to do things old, ugly, clumsy ways to work in old
platforms, and of course code using the new tools can't cleanly
interoperate with code using the original built-in tools.
People say "you require STLPort, but my <ancient-crappy-application>
can't be built with STLPort because it needs
<some-list-of-MSVC6-STL-bugs-and-misfeatures>, can you support building
with MSVC6's STL?".
See how we're not using Boost in PoDoFo's core, even though it'd help
significantly with a number of things? We can't use std::tr1::shared_ptr
for example, since support isn't present in several major compilers (let
alone legacy versions) and many people refuse to use Boost's libraries
so we can't fall back on boost::shared_ptr when std::tr1 isn't
available.
It's this sort of thing that's sapped my interest in working on PoDoFo.
It feels like I'm fighting C++ and legacy crap, rather than working on a
library to do useful things.
> > And last but not least, there should be documentation how to
> compile a
> > open source project AND ALL OF IT'S DEPENCIES yourself.
>
>
> We have that, at least, in PoDoFo. Bad documentation, I
> suspect, but
> it's there.
>
> Podofo has documentation and I must compliment Podofo because it just
> takes 2 or three steps to compile Podofo IF all other libraries are
> already in place. But what's lacking in almost every open source
> project is a detailled document how to compile the other libraries and
> in the end the whole. Mostly (if present at all) there is a reference
> to a library needed and that's it. Good luck with it, find it out
> yourself (again).
I did try to solve that with PoDoFo. There are build instructions giving
at least basic information on how to build libjpeg and the like.
Did you read README.html ? In particular, the "Installation with CMake"
and "CMake builds on Windows" sections?
See all the information about getting / building the dependencies?
I can't cover all flavours of how people want to do everything, of
course, but there's information there on how to get a usable PoDoFo
build for win32 with all dependencies for both MinGW and MSVC++.
> Yep I have done this and done it often. The job is no fun, but in the
> end the dll/library can be used by many others. In the end it saves
> time. (I did this for my job, not for open source).
Volunteering to write C wrappers for PoDoFo? :-P
>
>
> Personally, I think Microsoft has it right. The C linkage and
> runtime
> interface is obsolete. Throw it away, and introduce a much
> more capable
> and higher level standard like the .NET common language
> runtime.
>
> Unfortunately, it's never going to be as universal as C, not
> least
> because MS keep on adding to it and don't have any interest in
> keeping
> it portable.
>
> There is the MONO project. I agree Microsoft keeps expanding it's .NET
> util libraries, but if you really look at what they are doing, it's
> just a new coat around existing WIN32 technology.
Yeah... that's the other problem. It's very Windows-centric, has some
ugly win32-compat hangups, and generally isn't very "clean". The core
language is nice and clean, but the libraries ... not so much.
I'm familiar with Mono, but I'm also unfortunately familiar with its
limitations. Fundamental things like the GUI toolkit aren't really
compatible between win32 and *nix .net apps - modern Windows Forms /
XAML apps won't work on Mono, and if you want to get a stable and nice
to work with toolkit on Mono you have to use gtk# .
--
Craig Ringer
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users