Building kdelibs - dll not found

Stromek stromek at realtime.sk
Sat Jan 20 18:51:28 CET 2007


On Sat, Jan 20, 2007 at 05:35:26PM +0100, Stromek wrote:
> On Sat, Jan 20, 2007 at 04:42:58PM +0100, Stromek wrote:
> > set PATH=N:\incoming\kde\kdelibs\KDE\kdelibs-build\bin\Debug\ C:\Program;
> > "N:/incoming/kde/kdelibs/KDE/kdelibs-build/bin/Debug/makekdewidgets.exe" %*
> > 
> > When you look at it, it is just plain wrong. First line completely overrides PATH
> > variable set in the environment that means the path to win32libs\bin is lost and it
> > adds "C:\Program;" which means nothing. Does someone know the
> > place where those bat files are generated? I haven't found it in kdelibs
> > sources yet and changing it in generated project files won't be the
> > solution :)
> 
> Shame on me, not so hard to find
> kdelibs\cmake\modules\kde4_exec_via_sh.cmake. I don't know much
> about cmake scripts, however something is wrong here:
> 
> file(WRITE "${_filename}" 
> "
> set PATH=${win_path};${PATH}
> \"${_executable}\" %*
> ")
> 
> It looks like it should append content of the PATH variable, but somehow it
> doesn't. Anyone who is familiar with this? Why ${PATH} expands just to
> "C:\Program"?

Ehm, solved. All were just smaller errors, fortunately for me :) It
looks like, kdelibs are gonna build successfully for me and than I will post
the fixes, however here are some of them:

- quotes in msvc post-build step has to be written with backslash \"
- cmake script ${PATH} is $ENV{PATH}
- build process run from command line has to have /useenv switch
  to use environment variables instead of IDE variables.

-- 
Stomek



More information about the Kde-windows mailing list