installing libs on Windows
Andreas Pakulat
apaku at gmx.de
Tue Jul 24 09:31:28 BST 2007
On 24.07.07 09:13:21, Andreas Pakulat wrote:
> On 23.07.07 22:25:42, Alexander Neundorf wrote:
> > On Monday 23 July 2007 04:53, Andreas Pakulat wrote:
> >
> > > > Then we can set LIB_INSTALL_DIR to bin/ on Windows, and introduce a new
> > > > STATLIB_INSTALL_DIR. If somebody forgets this second part, the only
> > > > problem will be that the lib file will end up in bin/ instead of lib, but
> > > > I think this is not a real problem.
> > >
> > > You're confused I think. I can't tell how msvc handles this but for
> > > mingw we have:
> > >
> > > .exe == executable program
> > > .dll == shared library
> > > .lib == import library for the corresponding dll, this is needed to link
> > > against the dll
> > > .a == static library
> > >
> > > So We still need the 3-line version as dll+exe go into bin/ and
> > > static+import lib go into lib/
> >
> > I didn't try it, but please tell me which problem you mean.
>
> The original problem of having to add LIB_INSTALL_DIR to PATH because
> the dll's are in LIB_INSTALL_DIR and not in BIN_INSTALL_DIR.
>
> > Have a look at the sources.
> > The example above should be equivalent to
> > INSTALL(TARGETS kdecore
> > RUNTIME DESTINATION ${LIB_INSTALL_DIR}
> > LIBRARY DESTINATION ${LIB_INSTALL_DIR}
> > ARCHIVE DESTINATION ${STATLIB_INSTALL_DIR})
>
> Which is not what we (win32 people) were asking for. We don't want to
> install the static libraries somewhere else, we want to put the RUNTIME
> into BIN_INSTALL_DIR instead of LIB_INSTALL_DIR.
Uhm, sorry. Obviously I didn't do my homework and misunderstood what
ARCHIVE means. More verbose answer directly to your initial proposal.
Andreas
--
You will always get the greatest recognition for the job you least like.
More information about the kde-core-devel
mailing list