#913 closed bug (fixed)
svn trunk has been failing to build for several days now
Reported by: | msieczka | Owned by: | nobody |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | |
Component: | Build/Install | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | Yes | Platform: | Debian |
Platform Version: | Awaiting user input: | yes |
Description
The SVN trunk checked out with:
svn co https://svn.qgis.org/repos/qgis/trunk/qgis
has been failing to build for several days now with it's last words being:
[ 29%] Building CXX object src/gui/CMakeFiles/qgis_gui.dir/qgsquickprint.o /home/maciek/src/straight/qgis09/src/gui/qgsquickprint.cpp:48:24: error: QSvgRenderer: No such file or directory /home/maciek/src/straight/qgis09/src/gui/qgsquickprint.cpp: In member function 'void QgsQuickPrint::printMap()': /home/maciek/src/straight/qgis09/src/gui/qgsquickprint.cpp:609: error: 'QSvgRenderer' was not declared in this scope /home/maciek/src/straight/qgis09/src/gui/qgsquickprint.cpp:609: error: expected `;' before 'mySvgRenderer' /home/maciek/src/straight/qgis09/src/gui/qgsquickprint.cpp:610: error: 'mySvgRenderer' was not declared in this scope make[2]: *** [src/gui/CMakeFiles/qgis_gui.dir/qgsquickprint.o] Error 1 make[1]: *** [src/gui/CMakeFiles/qgis_gui.dir/all] Error 2 make: *** [all] Error 2
Using amd64 Ubuntu Dapper, QT 4.3.3 built from source. I used to be able to build SVN trunk without problems before.
Change History (8)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Hi Gavin
Maybe QGIS build process is looking for the file at some hardcoded location, where most users have it, thus it works for them, but not for us? I'm using QT 4.3.3 built from source installed to a custom dir /usr/local/qt4. In my case the file in question is at:
cat /usr/local/qt4/include/QtSvg/QSvgRenderer #include "qsvgrenderer.h"
comment:3 by , 16 years ago
Type: | defect → bug |
---|
It's been about 3 weeks now since I've been unable to build QGIS.
comment:4 by , 16 years ago
2 weeks more and still the build fails at this stage.
Once I change line 48 of qgsquickprint.cpp from:
#include <QSvgRenderer>
into:
#include <QtSvg/QSvgRenderer>
the build proceeds. I need this hack only on my Ubuntu Dapper box, where QT (4.3.3) is installed from source into /usr/local/qt4, having QSvgRenderer include available at:
cat /usr/local/qt4/include/QtSvg/QSvgRenderer #include "qsvgrenderer.h"
On Kubuntu Gutsy, using stock QT 4.3.2, I don't need this hack.
Please fix it.
comment:6 by , 16 years ago
Replying to jef:
Is this still the case?
I don't have any machine now that would use a custom build of QT, installed in a non standard place, to check it.
However, I have never seen any action in order to fix the bug (I follow all QGIS MLs, including SVN commit ML).
Yes, I had this problem too. I resolved it by editing the qgsquickprint.cpp file and changing line 48 (#include <QSvgRenderer>) to include the directory name that the QSvgRenderer file in (I'm not in front of my computer at the moment, I think it was svg: hence it became #include <svg/QSvgRenderer>.
Haven't had time to work out while it worked for some people, but not me (and now you).
Gavin