Am 11.06.2016 um 06:13 schrieb Richard Heck <rgh...@lyx.org>:
> 
> On 06/10/2016 11:40 PM, Joel Kulesza wrote:
>> On Fri, Jun 10, 2016 at 3:56 PM, Richard Heck <rgh...@lyx.org> wrote:
>> You could try adding:
>> 
>> #include <limits.h>
>> 
>> to support/filetools.cpp.
>> 
>> 
>> Richard, thanks for the quick reply!  That worked and let make proceed 
>> beyond filetools.  Now, it complains:
>> 
>>  CXX      GuiApplication.o
>> ../../../../src/frontends/qt4/GuiApplication.cpp: In member function ‘const 
>> QFont lyx::frontend::GuiApplication::typewriterSystemFont()’:
>> ../../../../src/frontends/qt4/GuiApplication.cpp:2588:21: error: ‘Monospace’ 
>> is not a member of ‘QFont’
>>   font.setStyleHint(QFont::Monospace);
>>                     ^
>> make[6]: *** [GuiApplication.o] Error 1 
>> 
>> Is there another header file that might direct it to where it needs to go.  
>> Alternatively, is there some fail-safe logic that needs to be introduced in 
>> case this font is there (seems unlikely, since 2.1.4 compiled and without 
>> having looked I'd be surprised if there were different typewriter fonts 
>> used)?
> 
> This code is new and affects how the typewriter font is chosen. What version 
> of Qt do you have? It appears that QFont::Monospace does not exist before Qt 
> 4.7. This is bad, since the INSTALL file says one can use 4.5.0. 
> 
> You could try changing it to QFont:TypeWriter.

Yes, this is bad. The offending code using QFont::Monospace should be guarded 
with an version check.
The use of QFont:TypeWriter is tried next two lines below.

Stephan

Reply via email to