[QGIS-Developer] proj6 to be and QGIS...

Saber Razmjooei saber.razmjooei at lutraconsulting.co.uk
Sat Feb 2 23:42:24 PST 2019


Hi Richard,

I can build QGIS with the latest proj and gdal if I add this to cmake: -D
ACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1

Thanks
Saber

On Fri, 1 Feb 2019 at 19:29, Richard Duivenvoorde <rdmailings at duif.net>
wrote:

> Hi Devs,
>
> Seeing this tweet:
>
> https://twitter.com/EvenRouault/status/1091067967763288066
>
> pointing to
>
>
> https://erouault.blogspot.com/2019/01/srs-barn-raising-8th-report-ready-for.html
>
> With the help of Even I've been able to compile proj+gdal master (to
> become proj6). If you want to compile and use it next to the proj/gdal
> from your distro (Debian testing here) you maybe need some extra tips,
> which Even jotted down here:
>
> https://trac.osgeo.org/gdal/wiki/BuildingOnUnixGDAL25dev
>
> So now "we" can start to make this work with QGIS.... :-)
>
> [354/4155] Building CXX object
> src/core/CMakeF...is_core.dir/qgscoordinatereferencesystem.cpp.o
> FAILED:
> src/core/CMakeFiles/qgis_core.dir/qgscoordinatereferencesystem.cpp.o
> ccache /usr/bin/c++  -DQT_CONCURRENT_LIB -DQT_CORE_LIB
> -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB
> -DQT_NO_CAST_TO_ASCII -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB
> -DQT_SERIALPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKITWIDGETS_LIB
> -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB
> -DTEST_DATA_DIR=\"/home/richard/git/qgisgdal/tests/testdata\"
> -DWITH_BINDINGS -DWITH_QTWEBKIT -D_HAVE_PTHREAD_ -Dqgis_core_EXPORTS -I.
> -I../src/core -Isrc/core -I../src/core/3d -I../src/core/annotations
> -I../src/core/auth -I../src/core/dxf -I../src/core/effects
> -I../src/core/expression -I../src/core/fieldformatter
> -I../src/core/geometry -I../src/core/geocms -I../src/core/geocms/geonode
> -I../src/core/layertree -I../src/core/layout -I../src/core/locator
> -I../src/core/metadata -I../src/core/pal -I../src/core/processing
> -I../src/core/processing/models -I../src/core/providers
> -I../src/core/providers/memory -I../src/core/raster
> -I../src/core/renderer -I../src/core/scalebar -I../src/core/symbology
> -I../src/core/mesh -I../src/core/validity -I../external/kdbush/include
> -I../external/nmea -I../external/poly2tri -isystem
> /home/richard/bin/proj/include -isystem /home/richard/bin/gdal/include
> -isystem /usr/include/QtCrypto -isystem /usr/include/qt5keychain
> -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtSerialPort -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem
> /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtWebKitWidgets -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtWebKit -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtSql -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtPositioning -Wall -Wextra
> -Wno-long-long -Wformat-security -Wno-strict-aliasing -g -fPIC
> -fvisibility=hidden   -fPIC -std=gnu++11 -MD -MT
> src/core/CMakeFiles/qgis_core.dir/qgscoordinatereferencesystem.cpp.o -MF
> src/core/CMakeFiles/qgis_core.dir/qgscoordinatereferencesystem.cpp.o.d
> -o src/core/CMakeFiles/qgis_core.dir/qgscoordinatereferencesystem.cpp.o
> -c ../src/core/qgscoordinatereferencesystem.cpp
> ../src/core/qgscoordinatereferencesystem.cpp: In member function ‘bool
> QgsCoordinateReferenceSystem::createFromWkt(const QString&)’:
> ../src/core/qgscoordinatereferencesystem.cpp:642:5: error: ‘OSRFixup’
> was not declared in this scope
>      OSRFixup( d->mCRS );
>      ^~~~~~~~
> ../src/core/qgscoordinatereferencesystem.cpp:642:5: note: suggested
> alternative: ‘OGRField’
>      OSRFixup( d->mCRS );
>      ^~~~~~~~
>      OGRField
> ../src/core/qgscoordinatereferencesystem.cpp: In member function ‘void
> QgsCoordinateReferenceSystem::setMapUnits()’:
> ../src/core/qgscoordinatereferencesystem.cpp:1181:3: error: ‘OSRFixup’
> was not declared in this scope
>    OSRFixup( d->mCRS );
>    ^~~~~~~~
> ../src/core/qgscoordinatereferencesystem.cpp:1181:3: note: suggested
> alternative: ‘OGRField’
>    OSRFixup( d->mCRS );
>    ^~~~~~~~
>    OGRField
> [363/4155] Building CXX object
> src/core/CMakeFiles/qgis_core.dir/qgsdataitem.cpp.o
> _______________________________________________
> 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



-- 
Saber Razmjooei
www.lutraconsulting.co.uk
+44 (0)7568 129733
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190203/534d9287/attachment.html>


More information about the QGIS-Developer mailing list