i fixed this. anyway there is still problem:GuiPainter.cpp: At global scope: GuiPainter.cpp:433: error: redefinition of 'const int lyx::frontend::d' GuiFontMetrics.cpp:180: error: 'const int lyx::frontend::d' previously defined here
Try putting both of these variables in an anonymous namespace. rh