[SOLVED] 17x Won't Compile

Previous topic - Next topic

MattMiller

For the past couple days I've been unable to compile the trunk code from svn:

[ 62%] Building CXX object scribus/CMakeFiles/scribus.dir/ui/widgets/pagesizelist.cpp.o
/Scribus/scribus/ui/widgets/pagesizelist.cpp: In member function 'QIcon PageSizeList::sizePreview(QSize, QSize) const':
/Scribus/scribus/ui/widgets/pagesizelist.cpp:153:35: error: 'qApp' was not declared in this scope
  153 |         double devicePixelRatio = qApp->devicePixelRatio();
      |                                   ^~~~

Nermander

I don't know anything for sure, but my first guess is that maybe you need a newer Qt library? (At least the Q suggests to me it is a Qt issue, and the error message indicates a declaration i missing.)

(I have never compiler Scribus myself, I just thought that since nobody else has answered I'd try to give you some input.)

MrB

Try revision 26286. I added the include.

MattMiller