installing libs on Windows

Andreas Pakulat apaku at gmx.de
Tue Jul 24 08:13:21 BST 2007


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.

Andreas

-- 
Your mode of life will be changed for the better because of good news soon.




More information about the kde-core-devel mailing list