[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Building on win32

From: Andreas Pakulat <apaku_at_gmx.de>
Date: 2007-06-03 17:20:54 CEST

On 22.05.07 07:21:13, D.J. Heap wrote:
> On 5/22/07, Andreas Pakulat <apaku@gmx.de> wrote:
> [snip]
> >
> >It turns out the problem is a define in the apr.h header, they redefine
> >__attribute__ which mingw uses to set stuff like __stdcall and
> >visibility/dllimport/export, so the symbols in the import library don't
> >match what mingw expects (due to the missing __stdcall in the included
> >headers).
> >
>
>
> Ah, thanks for the followup. So is APR going to tweak their headers
> to pay attention to mingw or something?

So this is now all sorted out, I could build shared libraries from
current 1.5.0 svn and have apr libraries that work with mingw. The fix
even made it into the current release of apr, which is extra nice.

So now one can build apr+subversion using Visual C++ and then can create
mingw import libraries using reimp tool from mingw or the
pexports/dlltool in case of the apr library because of the differences
between VC++ and mingw when using the _stdcall compiler switch. For
those interested the instructions how to create the libs are here:
http://www.mingw.org/MinGWiki/index.php/MSVC-MinGW-DLL

I could now build KDevelop4 with subversion support, unfortunately I
couldn't yet test wether it actually works due to some other problems
with KDE4 on win32.

Thanks for the help DJ.

Andreas

-- 
Artistic ventures highlighted.  Rob a museum.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jun 3 17:21:39 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.