problems building qgis 1.4.0

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

problems building qgis 1.4.0

Neil Best
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

problems building qgis 1.4.0

Neil Best
No matter what I do in ccmake or what software I add to my build environment make keeps bailing out with this:

[ 40%] Building CXX object src/app/CMakeFiles/qgis.dir/qgsmaptoolrotatepointsymbols.cpp.o
/home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp: In member function ‘double QgsMapToolRotatePointSymbols::calculateAzimut(const QPoint&)’:
/home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp:258: error: ‘atan2’ was not declared in this scope
/home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp:258: error: ‘M_PI’ was not declared in this scope
/home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp: In member function ‘void QgsMapToolRotatePointSymbols::setPixmapItemRotation(double)’:
/home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp:307: warning: passing ‘double’ for argument 1 to ‘void QgsPointRotationItem::setSymbolRotation(int)’
make[2]: *** [src/app/CMakeFiles/qgis.dir/qgsmaptoolrotatepointsymbols.cpp.o] Error 1
make[1]: *** [src/app/CMakeFiles/qgis.dir/all] Error 2
make: *** [all] Error 2

Can anyone tell what is causing this?  Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: problems building qgis 1.4.0

Neil Best
Neil Best wrote
No matter what I do in ccmake or what software I add to my build environment make keeps bailing out with this:

[ 40%] Building CXX object src/app/CMakeFiles/qgis.dir/qgsmaptoolrotatepointsymbols.cpp.o
/home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp: In member function ‘double QgsMapToolRotatePointSymbols::calculateAzimut(const QPoint&)’:
/home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp:258: error: ‘atan2’ was not declared in this scope
/home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp:258: error: ‘M_PI’ was not declared in this scope
/home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp: In member function ‘void QgsMapToolRotatePointSymbols::setPixmapItemRotation(double)’:
/home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp:307: warning: passing ‘double’ for argument 1 to ‘void QgsPointRotationItem::setSymbolRotation(int)’
make[2]: *** [src/app/CMakeFiles/qgis.dir/qgsmaptoolrotatepointsymbols.cpp.o] Error 1
make[1]: *** [src/app/CMakeFiles/qgis.dir/all] Error 2
make: *** [all] Error 2

Can anyone tell what is causing this?  Thanks.
Also, when I run the configuration step in ccmake I see the warning "Python bindings disabled due to dependency problems!" in the status bar and then "Qt QTWEBKIT library not found." in a separate screen at the end.  I don't know which items these are associated with so that I can make adjustments.  It still allows me to proceed to the generate step, so now I am trying to build rev 12965 to see if I can clear the error above.  Thanks for any comments.

Neil
Reply | Threaded
Open this post in threaded view
|

Re: problems building qgis 1.4.0

Marco Hugentobler
Hi Neil

Does it help if you add

#include <cmath>

to src/app/qgsmaptoolrotatepointsymbols.cpp?
If it does, I'll add it to svn.

Regards,
Marco


Am Dienstag, 23. Februar 2010 16.30:41 schrieb Neil Best:

> Neil Best wrote:
> > No matter what I do in ccmake or what software I add to my build
> > environment make keeps bailing out with this:
> >
> > [ 40%] Building CXX object
> > src/app/CMakeFiles/qgis.dir/qgsmaptoolrotatepointsymbols.cpp.o
> > /home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp: In
> > member function ‘double
> > QgsMapToolRotatePointSymbols::calculateAzimut(const QPoint&)’:
> > /home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp:258:
> > error: ‘atan2’ was not declared in this scope
> > /home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp:258:
> > error: ‘M_PI’ was not declared in this scope
> > /home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp: In
> > member function ‘void
> > QgsMapToolRotatePointSymbols::setPixmapItemRotation(double)’:
> > /home/nbest/src/qgis_1.4.0/src/app/qgsmaptoolrotatepointsymbols.cpp:307:
> > warning: passing ‘double’ for argument 1 to ‘void
> > QgsPointRotationItem::setSymbolRotation(int)’
> > make[2]: ***
> > [src/app/CMakeFiles/qgis.dir/qgsmaptoolrotatepointsymbols.cpp.o] Error 1
> > make[1]: *** [src/app/CMakeFiles/qgis.dir/all] Error 2
> > make: *** [all] Error 2
> >
> > Can anyone tell what is causing this?  Thanks.
>
> Also, when I run the configuration step in ccmake I see the warning "Python
> bindings disabled due to dependency problems!" in the status bar and then
> "Qt QTWEBKIT library not found." in a separate screen at the end.  I don't
> know which items these are associated with so that I can make adjustments.
> It still allows me to proceed to the generate step, so now I am trying to
> build rev 12965 to see if I can clear the error above.  Thanks for any
> comments.
>
> Neil
>

--
Dr. Marco Hugentobler
HUGIS GmbH
Webereistrasse 66
CH-8134 Adliswil
[hidden email]
http://homepage.hispeed.ch/hugis
Technical Advisor QGIS Project Steering Committee
_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: problems building qgis 1.4.0

Neil Best
Marco Hugentobler wrote
Does it help if you add

#include <cmath>

to src/app/qgsmaptoolrotatepointsymbols.cpp?
If it does, I'll add it to svn.

Thanks, Marco, that did help.  Now I have a new error!

[ 35%] Building CXX object src/app/CMakeFiles/qgis.dir/composer/qgscomposer.cpp.o
/home/nbest/src/qgis_1.4.0/build/src/app/../ui/ui_qgscomposerlegendwidgetbase.h: In member function ‘void Ui_QgsComposerLegendWidgetBase::setupUi(QWidget*)’:
/home/nbest/src/qgis_1.4.0/build/src/app/../ui/ui_qgscomposerlegendwidgetbase.h:174: error: ‘class QTreeView’ has no member named ‘setHeaderHidden’
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp: In member function ‘void QgsComposer::on_mActionExportAsPDF_triggered()’:
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:480: error: ‘class QPrinter’ has no member named ‘setPaperSize’
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:480: error: ‘Millimeter’ is not a member of ‘QPrinter’
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp: In member function ‘void QgsComposer::on_mActionPrint_triggered()’:
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:499: error: ‘class QPrinter’ has no member named ‘setPaperSize’
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:499: error: ‘Millimeter’ is not a member of ‘QPrinter’
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp: In member function ‘void QgsComposer::print(QPrinter&)’:
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:539: warning: passing ‘double’ for argument 1 to ‘void QImage::setDotsPerMeterX(int)’
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:540: warning: passing ‘double’ for argument 1 to ‘void QImage::setDotsPerMeterY(int)’
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp: In member function ‘void QgsComposer::on_mActionExportAsImage_triggered()’:
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:682: warning: passing ‘double’ for argument 1 to ‘void QImage::setDotsPerMeterX(int)’
/home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:683: warning: passing ‘double’ for argument 1 to ‘void QImage::setDotsPerMeterY(int)’
make[2]: *** [src/app/CMakeFiles/qgis.dir/composer/qgscomposer.cpp.o] Error 1
make[1]: *** [src/app/CMakeFiles/qgis.dir/all] Error 2
make: *** [all] Error 2

Any idea what's happening here?
Reply | Threaded
Open this post in threaded view
|

Re: problems building qgis 1.4.0

Marco Hugentobler
Hi Neil

What is your Qt version?
It looks like some automatically generated user interface files don't fit with
your Qt library.

Regards,
Marco

Am Dienstag, 23. Februar 2010 17.03:09 schrieb Neil Best:

> Marco Hugentobler wrote:
> > Does it help if you add
> >
> > #include <cmath>
> >
> > to src/app/qgsmaptoolrotatepointsymbols.cpp?
> > If it does, I'll add it to svn.
>
> Thanks, Marco, that did help.  Now I have a new error!
>
> [ 35%] Building CXX object
> src/app/CMakeFiles/qgis.dir/composer/qgscomposer.cpp.o
> /home/nbest/src/qgis_1.4.0/build/src/app/../ui/ui_qgscomposerlegendwidgetba
> se.h: In member function ‘void
>  Ui_QgsComposerLegendWidgetBase::setupUi(QWidget*)’:
>  /home/nbest/src/qgis_1.4.0/build/src/app/../ui/ui_qgscomposerlegendwidgetb
> ase.h:174: error: ‘class QTreeView’ has no member named ‘setHeaderHidden’
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp: In member
> function ‘void QgsComposer::on_mActionExportAsPDF_triggered()’:
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:480: error:
> ‘class QPrinter’ has no member named ‘setPaperSize’
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:480: error:
> ‘Millimeter’ is not a member of ‘QPrinter’
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp: In member
> function ‘void QgsComposer::on_mActionPrint_triggered()’:
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:499: error:
> ‘class QPrinter’ has no member named ‘setPaperSize’
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:499: error:
> ‘Millimeter’ is not a member of ‘QPrinter’
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp: In member
> function ‘void QgsComposer::print(QPrinter&)’:
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:539: warning:
> passing ‘double’ for argument 1 to ‘void QImage::setDotsPerMeterX(int)’
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:540: warning:
> passing ‘double’ for argument 1 to ‘void QImage::setDotsPerMeterY(int)’
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp: In member
> function ‘void QgsComposer::on_mActionExportAsImage_triggered()’:
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:682: warning:
> passing ‘double’ for argument 1 to ‘void QImage::setDotsPerMeterX(int)’
> /home/nbest/src/qgis_1.4.0/src/app/composer/qgscomposer.cpp:683: warning:
> passing ‘double’ for argument 1 to ‘void QImage::setDotsPerMeterY(int)’
> make[2]: *** [src/app/CMakeFiles/qgis.dir/composer/qgscomposer.cpp.o] Error
> 1
> make[1]: *** [src/app/CMakeFiles/qgis.dir/all] Error 2
> make: *** [all] Error 2
>
> Any idea what's happening here?
>

--
Dr. Marco Hugentobler
HUGIS GmbH
Webereistrasse 66
CH-8134 Adliswil
[hidden email]
http://homepage.hispeed.ch/hugis
Technical Advisor QGIS Project Steering Committee
_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: problems building qgis 1.4.0

Jürgen E. Fischer
In reply to this post by Neil Best
Hi Neil,

On Tue, 23. Feb 2010 at 08:03:09 -0800, Neil Best wrote:
> src/app/CMakeFiles/qgis.dir/composer/qgscomposer.cpp.o
> /home/nbest/src/qgis_1.4.0/build/src/app/../ui/ui_qgscomposerlegendwidgetbase.h:
> In member function ???void Ui_QgsComposerLegendWidgetBase::setupUi(QWidget*)???:
> /home/nbest/src/qgis_1.4.0/build/src/app/../ui/ui_qgscomposerlegendwidgetbase.h:174:
> error: ???class QTreeView??? has no member named ???setHeaderHidden???

Looks like #2121.   Are you using Qt 4.3?   IIRC we need at least Qt 4.4.


Jürgen

--
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: problems building qgis 1.4.0

Neil Best

On Feb 23, 2010, at 10:27 AM, Jürgen E. Fischer wrote:

> On Tue, 23. Feb 2010 at 08:03:09 -0800, Neil Best wrote:
>> src/app/CMakeFiles/qgis.dir/composer/qgscomposer.cpp.o
>> /home/nbest/src/qgis_1.4.0/build/src/app/../ui/
>> ui_qgscomposerlegendwidgetbase.h:
>> In member function ???void  
>> Ui_QgsComposerLegendWidgetBase::setupUi(QWidget*)???:
>> /home/nbest/src/qgis_1.4.0/build/src/app/../ui/
>> ui_qgscomposerlegendwidgetbase.h:174:
>> error: ???class QTreeView??? has no member named ???
>> setHeaderHidden???
>
> Looks like #2121.   Are you using Qt 4.3?   IIRC we need at least Qt  
> 4.4.


Yes, 4.3.5-r1.  How can we confirm this requirement?  I looked through  
qgis_1.4.0/INSTALL a bit but didn't see it spelled out.  I'll look  
into an upgrade.  Thanks for the tip, Marco and Jürgen._______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: problems building qgis 1.4.0

Neil Best
Neil Best wrote
> Looks like #2121.   Are you using Qt 4.3?   IIRC we need at least Qt  
> 4.4.

Yes, 4.3.5-r1.  How can we confirm this requirement?  I looked through  
qgis_1.4.0/INSTALL a bit but didn't see it spelled out.  I'll look  
into an upgrade.

Alternatively, which version of QGIS could I build against Qt 4.3.5?