kdelibs compile error

Alexander Neundorf neundorf at kde.org
Wed Aug 6 23:00:53 CEST 2008


On Wednesday 06 August 2008, Ralf Habacker wrote:
> Ralf Habacker schrieb:
...
> > Thanks patrick patch cmake 2.6.1 could not be build with nmake.
> > Then I added in cmComputeLinkDepends.cxx
> >
> > void cmComputeLinkDepends::AddVarLinkEntries(int depender_index,
> > ...
> >   // Look for entries meant for this configuration.
> >   std::vector<std::string> actual_libs;
> >   cmTarget::LinkLibraryType llt = cmTarget::GENERAL;
> >   bool haveLLT = false;
> >   for(std::vector<std::string>::const_iterator di = deplist.begin();
> >       di != deplist.end(); ++di)
> >     {
> > +    std::cerr << "+++" << *di << "\n";
> >
> > ...
> >    }
> > and after the closing tag of the loop
> >
> >     for(std::vector<std::string>::const_iterator di =
> > actual_libs.begin(); di != actual_libs.end(); ++di)
> >       std::cerr << "+-+" << *di;
> >
> >
> >
> > Then I run
> >
> > nmake rebuild_cache
> >
> > in kdelibs-build dir but I saw no debug prints neither on the command
> > line nor the CMakeFiles/CMakeOutput.log nor  CMakeFiles/CMakeError.log
>
> Additional note: I added a std::cerr immediatly after main and is was
> printed when running nmake rebuild_cache. This indicates that nmake
> rebuild_cache does not regenerate the dependencies, so  how to trigger
> this ?

One would have to check when AddVarLinkEntries() is actually called.
Or just use the brute force method and add debug output also in 
cmTarget::GatherDependencies() and cmTargetLinkLibrariesCommand::IntialPass() 
(I don't think that this one causes the problem).

Alex


More information about the Kde-windows mailing list