building libraries with mingw
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Wed Aug 29 10:24:07 CEST 2007
> Christian Ehrlicher schrieb:
> >> Von: Ralf Habacker
> >> Christian Ehrlicher schrieb:
> >>
> >>>> Von: Ralf Habacker
> >>>> Saro Engels schrieb:
> >>>>
> >>>>
> >>>>> I currently try to make kde-network compile with mingw and there are
> >>>>> still some errors left; Since I wanted to get jabber support as
> well,
> >>>>>
> >> I
> >>
> >>>>> try to build libidn myself, but I had no luck yet.
> >>>>>
> >>>>>
> >>>>>
> >>>> If you refering to libidn from http://www.gnu.org/software/libidn/
> the
> >>>> reason is because libidn uses automake, which does not work well
> under
> >>>> native win32.
> >>>>
> >>>> You can try to use a custom Makefile to generate the library and
> tools
> >>>> or to port it to the cmake buildsystem (see www.cmake.org for more
> >>>> informations)
> >>>>
> >>>>
> >>> stop please. Don't make double work and just ask me ;-)
> >>> Or ask Serhiy Kachanuk - he already build kopete on win32 with jabber
> >>>
> >> and my libidn lib.
> >>
> >>> http://web779.michelle.webhoster.ag/kde/libidn-1.0-1.7z
> >>>
> >>> Be aware that this lib is only tested by serzh - I have had no time to
> >>>
> >> test it by my own. It's a combined mingw/msvc lib (because it's c only)
> >>
> >>>
> >>>
> >> How do you have build this with msvc - with a custom make file or do
> you
> >> have added cmake support ?
> >>
> >>
> > It's a c-only lib - no need to compile it with two different compilers.
> I build it with mingw/msys/automake (including some changes I already sent
> to libidn devs, see attachment) and recreated the import lib. That's the
> 'normal' way when building C-only libs on win32.
> >
> This may work for release libraries, but aren't there problems with msvc
> mixing release and/debug libraries ?
Not as long as you don't pass e.g FILE or other structures which have different sizes in msvc debug and release mode. Normally a lib should never do this (ok, kdewin lib is an exception)
> How could a msvc developer create a
> debug library for his own using msys ?
>
No chance, you have to write a cmake script.
Christian
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
More information about the Kde-windows
mailing list