https://bugs.kde.org/show_bug.cgi?id=360611
Bug ID: 360611 Summary: compilation target "kigpart_automoc" generates invalid include paths in moc files Product: kig Version: unspecified Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: david.narv...@computer.org Reporter: paol...@dmf.unicatt.it Trying to compile from git sources. After an apparently successful cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=debugfull \\ -DPLUGIN_INSTALL_DIR:PATH=/usr/lib/qt5/plugins The "make" command gives: $ make Scanning dependencies of target kigpart_automoc [ 1%] Automatic moc for target kigpart Generating kig_part.moc [...] [ 94%] Building CXX object CMakeFiles/kigpart.dir/kigpart_automoc.cpp.o In file included from /home/matem/paolini/Git/kdeedu/kig/kigpart_automoc.cpp:2:0: /home/matem/paolini/Git/kdeedu/kig/moc_asyexporteroptions.cpp:9:91: fatal error: ../../../../../misc/euclide/paolini/Git/kdeedu/kig/filters/asyexporteroptions.h: No such file or directory ---------------------------- It turns out that all "moc*.cpp" contain a wrong #include like the following: #include "../../../../../misc/euclide/paolini/Git/kdeedu/kig/kig/kig_view.h" Instead of a simpler "#include "kig/kig_view.h". The above does not work in my setting probably because of the presence of a symbolic link: $ ls -ld ~paolini/Git lrwxrwxrwx 1 paolini matem 30 9 giu 2014 /home/matem/paolini/Git -> /home/misc/euclide/paolini/Git that somehow confuses the automatic creation of the moc* files. If I manually modify this include on each moc file, then compilation goes fine Reproducible: Always Steps to Reproduce: The specific setting of the environment is: ~/Git is a symbolic link to /home/misc/euclide/paolini/Git and /home/misc/euclide is an "automount" point that mounts (locally) the filesystem in /data1/export/ Actual Results: Creation of a strange "../../../../../misc/euclide/paolini/Git/kdeedu/kig/" which "appears" somehow correct (just going up and down on the same path of the filesystem hierarchy) but doesn't work in the present setting: the "misc" directory can be found one more level up. -- You are receiving this mail because: You are watching all bug changes.