[Qgis-developer] Building QGIS2.99 cloned from GitHub on Ubuntu 16.10 (yakkety) 64-bit Python
gordon at shieldaig.com
gordon at shieldaig.com
Wed Feb 8 15:01:52 PST 2017
This is what I discovered.
On Ubuntu 16.10 the following packages: `pyqt5-dev pyqt5-dev-tools
pyqt5.qsci-dev` seem to be the Qt 5.7 version.
I removed them and reinstalled to confirm. Then I deleted the build
folder and started over.
The build stops at 95% and doing a further `make qgis -j3` completes the
build (I have 4 processor slots but others seem suggest doing 4-1 (don't
know why), and running `./output/bin/qgis` from the build directory
works.
I get a Python Error screen which says:
`Couldn't load PyQt.
Python support will be disabled.
Traceback (most recent call last):
File "", line 1, in
ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.7'
not found (required by
/usr/local/lib/python3.5/dist-packages/PyQt5/QtCore.so)`
I don't think this problem is specific to me but would affect any Ubuntu
16.10 64-bit system. I could be wrong and would appreciate any help
offered.
Does anyone know how to install version 5.6.1 of `pyqt5-dev
pyqt5-dev-tools pyqt5.qsci-dev`? Or alternately does anyone know how to
install the debian package for Qt 5.7, which hopefully has the modified
C++ header files and WebKit as the Qt Maintenace tool doesn't provide a
localized version with the appropriate C++ header files?
Gordon
On 2017-02-07 23:02, Nyall Dawson wrote:
> On 8 February 2017 at 13:49, <gordon at shieldaig.com> wrote:
>> Due to previous error, mentioned in a early post, I installed `geos
>> 3.6.1`
>> and because build still failed, I place header file `geos_c.h` in
>> src/core/geometry folder and replace `<geos_c.h>` with `"geos_c.h"` in
>> `qgsgeometry.h`. This may not have been necessary but I wanted to
>> make it
>> clear which header I expected to be used.
>>
>> At about 16% output from build shows:
>> `/home/gordon/dev/cpp/QGIS/src/core/qgsvectorfilewriter.cpp: In member
>> function ‘void QgsVectorFileWriter::init(QString, QString, const
>> QgsFields&,
>> QgsWkbTypes::Type, QgsCoordinateReferenceSystem, const QString&,
>> QStringList, QStringList, QString*,
>> QgsVectorFileWriter::FieldValueConverter*, const QString&,
>> QgsVectorFileWriter::ActionOnExistingFile)’:
>> /home/gordon/dev/cpp/QGIS/src/core/qgsvectorfilewriter.cpp:327:55:
>> warning:
>> suggest braces around empty body in an ‘else’ statement [-Wempty-body]
>> QgsDebugMsg( "Opened data source in update mode" );`
>
> Thanks! Fixed in
> https://github.com/qgis/QGIS/commit/2f68d1a7c3f4c7e2137dc20458556facf199d79f
>
> ^
>> At about 90% output from build shows:
>> `Traceback (most recent call last):
>> File "../../../../scripts/pyuic-wrapper.py", line 26, in <module>
>> import qgis.PyQt.uic.pyuic
>> File
>> "/home/gordon/dev/cpp/QGIS/build/output/python/qgis/__init__.py",
>> line 28, in <module>
>> from qgis.core import QgsFeature, QgsGeometry
>> File
>> "/home/gordon/dev/cpp/QGIS/build/output/python/qgis/core/__init__.py",
>> line
>> 34, in <module>
>> from qgis._core import *
>> ImportError: /usr/lib/x86_64-linux-gnu/libQt5Network.so.5: symbol
>> _Z15qIsEffectiveTLDRK7QString, version Qt_5 not defined in file
>> libQt5Core.so.5 with link time reference
>> python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/build.make:72:
>> recipe for target
>> 'python/plugins/db_manager/ui_DlgAddGeometryColumn.py'
>> failed
>> make[2]: *** [python/plugins/db_manager/ui_DlgAddGeometryColumn.py]
>> Error 1
>> CMakeFiles/Makefile2:4925: recipe for target
>> 'python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/all'
>> failed
>> make[1]: ***
>> [python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/all]
>> Error 2
>> make[1]: *** Waiting for unfinished jobs....`
>>
>> Anyone know how to fix this issue? I used Python3.
>
> Not sure on this one - did you clean your build folder after resolving
> the dependency issues?
>
> Nyall
>
>
>>
>> At about 95% `make -j3` terminated before `qgis` executable built.
>>
>> Gordon
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
More information about the Qgis-developer
mailing list