Skip to main content
19 events
when toggle format what by license comment
Aug 16, 2023 at 12:01 comment added Parisa.H.R Hi,I have this issue too in Ubuntu 22.04 and QGIS 3.32 and QGIS 3.28 , your solution didnt work for me.could you please help me.
Feb 28, 2019 at 15:33 history edited AndreJ CC BY-SA 4.0
added 218 characters in body
Feb 28, 2019 at 15:24 comment added AndreJ I just did a quick test on another system without any ubuntugis. Installing libpng-dev and self-compiling GDAL 2.2.3 gives ECW support for QGIS 3.6.0 as well.
Feb 28, 2019 at 11:03 history edited AndreJ CC BY-SA 4.0
added 299 characters in body
Feb 28, 2019 at 10:32 comment added Rossoe Forked version of first tutorial I followed - gist.github.com/rossoe/460365ed47975a11e11bcd6084064f28
Feb 28, 2019 at 9:03 comment added Rossoe ok I found a guaranteed fix without having to install QGIS multiple times. Turns out that indeed it was libpng-dev that needed to be installed before carrying out the recompile of GDAL The last answer in the post AndreJ noted above clarified it for me. So on Ubuntu 18.04, I can now load ECW rasters into QGIS 3.6 with GDAL 2.3.2. I also have to temporarily run export LD_LIBRARY_PATH=/usr/local/lib. But I might attempt to return to symbolic links to see if I can get that working again.
Feb 27, 2019 at 18:48 comment added AndreJ ... and lists.osgeo.org/pipermail/gdal-dev/2017-November/047697.html . I guess libpng-dev is missing.
Feb 27, 2019 at 18:32 comment added AndreJ Maybe related: issues.qgis.org/issues/19562 and gis.stackexchange.com/questions/291191/libpng-problems-for-qgis and lists.osgeo.org/pipermail/gdal-dev/2013-August/036903.html
Feb 27, 2019 at 16:07 comment added Rossoe Well that's a mighty awkward process! - installing QGIS 3 times. So I also tried symbolic links from usr/local/lib after backing up originals in usr/lib and still no joy - same exact issue in QGIS. Get this error when trying to run qgis from terminal: libpng error: Incompatible libpng version in application and library libpng warning: Application was compiled with png.h from libpng-1.6.34 libpng warning: Application is running with png.c from libpng-1.2.56
Feb 27, 2019 at 6:47 comment added AndreJ I had that trouble too, and downgraded to QGIS 2.18.28 from the ubuntugis ppa (without any files from qgis.org). After that worked with ECW, I updated to QGIS 3.4.4 from qgis.org/ubuntugis-ltr, then to QGIS 3.6 from qgis.org/ubuntugis. I'm not sure why it works since then. Maybe you have still some packages from qgis.org/ubtuntu installed.
Feb 26, 2019 at 21:39 comment added Rossoe Spotted following comment on This Post "because of QGIS installs library in /usr/lib but your compiled library will be here /usr/local/lib, you have to do backup the n.3 files in /usr/lib starting with libgdal.so* and then create a soft link to those with the same name in /usr/local/lib. Restart QGIS and it will work." so I assume a simple 'copy' is not appropriate.
Feb 26, 2019 at 21:05 comment added Rossoe ok so after following steps in the github tutorial, my folder /usr/local/lib contained 5 GDAL related files which I then copied to /usr/lib using sudo find -iname 'libgdal*' -exec cp {} /usr/lib/ \; it overwrote 2 existing GDAL files already within /usr/lib 'libgdal.so.20' & 'libgdal.so.20.4.2'. But starting up QGIS and I'm getting the exact same corruption as per my first post - very unstable broken UI, and crashing frequently. This was with QGIS 3.6 and GDAL 2.3.2. QGIS was fine just prior to the copying of files. Am I doing the copy incorrectly?
Feb 26, 2019 at 7:02 comment added AndreJ Yes, but don't remove the GDAL package, it would remove QGIS too. Instead, just recompile, and copy the files from /usr/local/lib to /usr/lib. And take GDAL 2.3.2.
Feb 25, 2019 at 21:23 comment added Rossoe indeed I was testing each deb independently, but only after adding the PPA you noted above did I get past the GDAL dependency errors. So I've now got QGIS 3.4.5 and GDAL 2.3.2 - would I now need to simply follow - gist.github.com/1papaya/568c4580b1909071696c1cb119101823 to rebuild GDAL?
Feb 25, 2019 at 16:38 comment added AndreJ You should only select one of them, and add the ubuntugis-unstable ppa too, see launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-unstable . Then update and upgrade to get the latest updates. This should bring you GDAL 2.3.2 (without ECW). Check that you have the necessary keys for ubuntugis and QGIS, otherwise you can't update. After that, you can install qgis and python-qgis.
Feb 25, 2019 at 13:48 comment added Rossoe Thanks for looking into this AndreJ, I've just tested both of these in my sources.list qgis.org/ubuntugis-ltr bionic & qgis.org/ubuntugis bionic and get the following trying to install via this command sudo aptitude -f install qgis python-qgis qgis-plugin-grass The following packages have unmet dependencies: libqgis-analysis3.4.5 : Depends: gdal-abi-2-3-0 which is a virtual package and is not provided by any available package libqgis-app3.4.5 : Depends: libproj13 (>= 5.0.0) which is a.. Amongst a couple of others dependency issues.
Feb 25, 2019 at 10:15 history edited AndreJ CC BY-SA 4.0
added 191 characters in body
Feb 25, 2019 at 6:55 history edited AndreJ CC BY-SA 4.0
added 516 characters in body
Feb 24, 2019 at 17:20 history answered AndreJ CC BY-SA 4.0