Angus Leeming wrote:

> Compilation has just stopped in the support dir with:
> 
> g++ -DHAVE_CONFIG_H -I. -I../../../src/support -I../../src
> -I../../../src/support/../ -I../../../boost \
>          -I/usr/X11R6/include -g -O -fno-exceptions -Wextra -Wall \
> -x c++-header ./pch.h -MT pch.h.gch -MD -MP -MF "./pch.h.gch.Tdep" \
> && mv "./pch.h.gch.Tdep" "./pch.h.gch.dep" || rm "./pch.h.gch.Tdep"
> g++: ./pch.h: No such file or directory
> g++: no input files
> rm: cannot remove `./pch.h.gch.Tdep': No such file or directory
> make: *** [pch.h.gch] Error 1
> 
> I have builddir != srcdir, which is why ./pch.h cannot be found.
> 
> Compilation continues if I:
> $ ln -s ../../../src/support/pch.h .
> 
> Also why `rm "./pch.h.gch.Tdep"`? Surely that should be `rm -f`?

 g++ -DHAVE_CONFIG_H -I. -I../../../../src/frontends/xforms -I../../../src
-I../../../../images -I../../../../src -I../../../../src/frontends
-I../../../../src/frontends/controllers -I../../../../boost
-I/usr/X11R6/include -Winvalid-pch --include=./pch.h -g -O -fno-exceptions
-Wextra -Wall -MT forms_gettext.lo -MD -MP-MF .deps/forms_gettext.Tpo
-c ../../../../src/frontends/xforms/forms_gettext.C-o forms_gettext.o
In file included from <command line>:3:
../../../../src/frontends/xforms/./pch.h:3:23: X11/forms.h

Mine is to be found at /usr/local/include/forms.h.

Why not
#include "lyx_forms.h"

so that the configure script magic will just work? Certainly, compilation
appears to proceed happily.

Incidentally, I find that I need to do the 
 ln -s foo/pch.h .
magic for src, support, xforms, xforms/forms so far also
-- 
Angus

Reply via email to