cmake dependencies bug due to symlinks

William A. Hoffman billlist at nycap.rr.com
Thu Apr 27 17:06:19 CEST 2006


At 10:45 AM 4/27/2006, Brad King wrote:
>Andras Mantia wrote:
>> On Wednesday 26 April 2006 23:13, Brad King wrote:
>>>Andras Mantia wrote:
>>>>If I run make from a place which is a symlink to the actual
>>>>location of the toplevel source directory, ui_fileinfodlg.h is not
>>>>generated and I get a "error: ui_fileinfodlg.h: No such file or
>>>>directory" error.
>>>
>>>Please clarify your directory and symlink structure.  Is it:
>> In a simplified version:
>> 
>> source is: /data/development/source
>> build is: /media/data/build <= from this place it works
>> symlink is: /data2/build <= from this place it doesn't work
>
>Thanks, now I've been able to duplicate the problem.  You should have 
>seen it with earlier CMake versions too, but it only occurs if you run 
>cmake in one of the two places and make from the other.
>
>I found the bug, and wow there was a _really_ subtle issue with the 
>dependency scanning implementation.  The fix will be included in the 
>upcoming 2.4.1 beta release.

So, to be clear this maybe the cause of both problems.   To work around
for now, is to only run make from the same directory that you ran cmake
in, and not from a symlink.  Can you verify that if you run make from
the same directory that cmake was run in (no symlink), that both problems
go away?


-Bill



More information about the Kde-buildsystem mailing list