Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of modules not working in MacOS #31861

Closed
Spartacus1 opened this issue Sep 17, 2019 · 6 comments
Closed

Lots of modules not working in MacOS #31861

Spartacus1 opened this issue Sep 17, 2019 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@Spartacus1
Copy link

QGIS 3.8.3 is not able to do several simple operations. A simple Layer Clip returns the following error:

GDAL command:
gdalwarp -of GTiff -cutline /Users/xxxx/Desktop/MapasViana/dummyextent.shp -cl dummyextent -crop_to_cutline "/Users/xxxx/Desktop/Desktop-A/Trabalho Geral/Viana_geossitios/layers/AltimetriaViana_alargada.tif" /Users/xxxx/Desktop/testelixo.tif
GDAL command output:
dyld: Symbol not found: _iconv

Referenced from: /usr/lib/libcups.2.dylib

Expected in: /Applications/QGIS3.8.app/Contents/MacOS/lib/libiconv.2.dylib

in /usr/lib/libcups.2.dylib

Execution completed in 0.13 seconds
Results:
{'OUTPUT': '/Users/xxxx/Desktop/testelixo.tif'}

Loading resulting layers
The following layers were not correctly generated.

  • /Users/xxxx/Desktop/testelixo.tif
You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.

@Spartacus1 Spartacus1 added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 17, 2019
@nirvn
Copy link
Contributor

nirvn commented Sep 18, 2019

@Spartacus1 , use native QGIS algorithm, not 3rd party gdal ones. It'll fix your problem. Sorry, I should have read your issue more closely, you are trying to clip a raster, which can only be done via gdal algorithm.

Which installer did you use?

@Spartacus1
Copy link
Author

Spartacus1 commented Sep 18, 2019

Hi nirvn. Thank you so much for reply. Used the one available for download from qgis.org
I've done this clip operation countless times without any issue. Since version 3.8, this error started to appear.
Several modules from the raster menu or from processing are failling with similar issues.

Even an hillshade will end up with the same issue:


dyld: Symbol not found: _iconv

Referenced from: /usr/lib/libcups.2.dylib

Expected in: /Applications/QGIS3.8.app/Contents/MacOS/lib/libiconv.2.dylib

in /usr/lib/libcups.2.dylib


@gioman
Copy link
Contributor

gioman commented Sep 18, 2019

Since version 3.8

can you confirm that if you rolls back to 3.4 it works? Can you try also on another machine (just to exclude possible local problems)?

@Spartacus1
Copy link
Author

Spartacus1 commented Sep 19, 2019

Thanks Giovanni

The modules fail both in 3.8.3 and in 3.4. Everything is working in William's (KingKaos) compilation.
They failed under Mojave. In another machine, with HighSierra, they also fail.

It's related for sure with the "libiconv.2.dylib" and probably with others.

I did the following experience:

Since the error by doing a Hillshade returns


dyld: Symbol not found: _iconv

Referenced from: /usr/lib/libcups.2.dylib

Expected in: /Applications/QGIS3.8.app/Contents/MacOS/lib/libiconv.2.dylib

in /usr/lib/libcups.2.dylib


I went to /usr/lib/ copied the "libiconv.2.dylib" from there (which is a version from last May) and replaced for the one in /Applications/QGIS3.8.app/Contents/MacOS/lib/

By doing this, the Hillshade module works.

Cheers

PS: this error seems to be similar or even the same as this one #31576

Maybe they can be merged.

@nirvn
Copy link
Contributor

nirvn commented Sep 20, 2019

I think this issue should a/ be merged with #31576 , and b/ closed in favor of opening an issue in the appropriate QGIS Mac Packager repository (https://github.com/qgis/QGIS-Mac-Packager/issues)

@gioman
Copy link
Contributor

gioman commented Sep 22, 2019

I agree is duplicate of #31576

@gioman gioman closed this as completed Sep 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

3 participants