When building lyx a found this problem: lyx uses a dummy impl for lyxfont.h: "src/tex2lyx/lyxfont.h" which should be used by "src/lyxlayout.C".
src/lyxlayout.C includes "lyxfont.h", which is "src/lyxfont.h" and not "src/tex2lyx/lyxfont.h". As I understand it #include "XXXX" always searches first at the place of the current file and afterwards in the include pathes, so it cannot correctly include "src/tex2lyx/lyxfont.h". Only when #include <XXXXX> is used it first searches the include pathes. I wounder how it is done by scons and gcc. In short: Could I apply attached patch Peter
Index: lyxlayout.h =================================================================== --- lyxlayout.h (revision 16878) +++ lyxlayout.h (working copy) @@ -14,9 +14,12 @@ #ifndef LYX_LAYOUT_H #define LYX_LAYOUT_H -#include "lyxfont.h" +// use dummy headers +// when building tex2lyx +#include <lyxfont.h> +#include <Spacing.h> + #include "layout.h" -#include "Spacing.h" #include "support/docstring.h" #include <string>