-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Symbol not found: _iconv #31576
Comments
This seems pretty serious for macOS. I can confirm the same issue in 3.8.1 (dcd95cc). |
No news on this?? Qgis is completely unusable in MacOS without solving this bug. |
If there was news it would be reported here already. |
Thank you for the precious information Nyall. |
From the error, it looks like the Mac packager build includes its own libiconv, which may not be built properly (missing the key _iconv symbol)... hmm, I kindof recall that iconv can be built with libiconv (or similar) as that symbol name. It does look the loader is confused - the system cups should be loading the system iconv, not the QGIS copy. I don't build my own libiconv, I use the system iconv when needed. Also, I just found that the Mac packager build doesn't use the cmake Mac bundling mechanism to change all linking to relative links, it's all left to how each individual library was compiled, some absolute paths, some with rpath. This may cause loading confusion with the helper programs. When run from a Terminal, it's possible a different installation of GDAL is running (ie my framework), which is linked correctly. If the PATH is set to run the QGIS copies of those tools, maybe QGIS has an rpath set (in its build) that changes the linking environment for the worse. DYLD_LIBRARY_PATH won't help anything - Apple locked that down for security reasons. |
QGIS is basically unusable for any raster operation without solving this issue. It's also present in 3.10 and even in 3.11 NB. |
So, any alternative for MacOS users? How should we proceed? Thanks |
You can still use kyngchaos build. It's working great but it is still version 3.8.3. Download it from the "Alternative build" in the downloads page. I prefer to have a stable working version than go after quickly climbing version numbers that still have lots of bugs. In this case, either the so called "LTR" or stable version and the latest version have the same bugs. Let's hope that the talented QGIS developer team can solve these ones as soon as possible. |
can you confirm this happens also on MacOS10.14.x and MacOS10.15.x or just 10.13.x? |
One of my users who had this problem with QGIS 3.10.0 on macOS 10.14.x now reports that it Works For Them with QGIS 3.10.1 on macOS 10.14.6. CORRECTION: They misunderstood my question: they are still experiencing this issue. |
Hi jlayt. In my case the problem simply gone after a PeterPetrik's suggestion. Peter, maybe you can post the solution you told me about here. Changing the "libcups.2.dylib" by a copy of the same one included in the system solves the problem. |
So my user just wiped his iMac and installed macOS Catalina 10.15 clean, then installed QGIS 3.10.1 clean, no Brew or other software or drivers or anything. He still gets the issue. Interesting suggestion around the libcups, can't think of a reason why QGIS should be trying to ship its own version, the system one should suffice, but also can't think why it would be only libcups causing the issue? And why would raster processing tools be calling into a printer library? Unless the gdal raster stack is using one of the libcups/openprinting rasterization tools/libraries, which I guess is possible? I have access to High Sierra, Mojave and Catalina machines to test on if needed. |
please try workround I described here: qgis/QGIS-Mac-Packager#28 (comment) I will try to fix the issue properly for next release |
Confirmed that resolves the issue. Many thanks! |
Hi Peter
Until the problem with GDAL is not solved, could it be possible to pack QGIS with the system’s libiconv.2.dylib.
This trick you suggested work perfectly for now and, this way, users can download the packed version and use it almost fully functional.
You can make this “bricolage” in advance in the provided version in qgis.org <http://qgis.org/>
Best Regards
… On Dec 17, 2019, at 15:07, Peter Petrik ***@***.***> wrote:
please try workround I described here: qgis/QGIS-Mac-Packager#28 (comment) <qgis/QGIS-Mac-Packager#28 (comment)>
I will try to fix the issue properly for next release
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#31576?email_source=notifications&email_token=ACNLBQSIBSEPRYDIBLPCA6LQZDTKJA5CNFSM4IT5GTZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHCVR2A#issuecomment-566581480>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACNLBQQF5PSW2GTOXGI6UX3QZDTKJANCNFSM4IT5GTZQ>.
|
@Spartacus1 is this a thing with the latest installers? I tested them on Catalina and had no issues in testing several tools in processing (gdal, grass, saga, qgis). |
Hi Giovanni The problem still exists in the latest oficial version compiled by Peter. A simple Hillshade generation from the raster menu will not work, returning a libiconv.2.dylib related error. If we install via homebrew or use the WK compilation the problem is absent. However, most users just download the main link from qgis.org and will suffer from this bug. Peter gave a workaround that works perfectly but we need to manually replace the qgis.app libiconv.2.dylib by the system's one. The temporary solution is described by Peter in this thread: Best regards |
@Spartacus1 isn't this the one linked in the Download page on qgis.org site? if yes I have no issues with it. But maybe I tested the wrong tool.
GDAL's? |
Yes, GDAL’s one from the Raster Menu -> Hillshade and let it generate a temporary file.
The problem exists with the very latest oficial version. Just tested an hour ago. I have already made Peter’s suggested medicine to solve the problem and it works now.
… On Jan 20, 2020, at 17:47, Giovanni Manghi ***@***.***> wrote:
The problem still exists in the latest oficial version compiled by Peter.
@Spartacus1 <https://github.com/Spartacus1> isn't this the one linked in the Download page on qgis.org site? if yes I have no issues with it. But maybe I tested the wrong tool.
A simple Hillshade generation
GDAL's?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#31576?email_source=notifications&email_token=ACNLBQWAQ266MZ2JYTYDPD3Q6XPSBA5CNFSM4IT5GTZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJNMZGI#issuecomment-576375961>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACNLBQWSBMWACLM5H2PRXZLQ6XPSBANCNFSM4IT5GTZQ>.
|
@Spartacus1 just tested on a clean Catalina machine: no issues and no tricks applied. |
Hi, I'm new here. I confirm this issue on my machine also, on MacOS catalina and QGIS 3.10 an 3.12 I can't make operations on raster for now, with :
I also reproduced this issue on a second macOs Catalina (mac mini & mac book air) |
Hi, all. I solved this problem. The soulution is deleting the /Applications/QGIS3.10.app/Contents/MacOS/lib/libiconv.2. dylib, rather than replacing it. Hope it helps, if anyone has the same problem. GL |
It works for me! Good luck. |
No way!! It really works! Tested with 3.12 and it will also work. |
HAHAHA, good luck bro |
Some modules still do not work, for instance Raster->Miscellaneous->Merge. However seems to work as well as having the replaced libiconv.2. dylib in place. |
I did not try that. However, if I have some new solution I will post it. Thank you for your comments. |
Just tested a clean install of QGIS 3.14.0 on macOS Catalina and cannot replicate. Is there a clear way to replicate this problem? |
It's still there on High Sierra (just tested on a clean install, w/o homebrew iconv/gdal). Unfortunately @PeterPetrik's workaround seems to throw
|
Can anyone test with https://qgis.org/downloads/macos/nightly2/qgis_nightly2_master_20200717_062433.dmg ? Thanks |
I tried, but it crashes during launch (loading banner visible for a few seconds). 3.14 works (except for _iconv issues). |
can anyone try with this one ? https://qgis.org/downloads/macos/nightly2/qgis_nightly2_master_20200723_032054.dmg |
should be fixed in nightly2 builds with the new installer (half-baked still) |
I could not fix the issue. QGIS 3.14 |
I was recently getting in the terminal the following message after doing any
This started happening right after updating my macOS to Note: |
Describe the bug
GDAL/OGR and occasionally SAGA processing scripts tend to fail with the following error
How to Reproduce
Processing / GDAL / Raster Misc / Merge results in
Processing / GDAL / Raster extraction / Contour results in
Interestingly both commands are working when issued from the command line.
Tried to add
/usr/lib
toDYLD_LIBRARY_PATH
but it didn't help.QGIS and OS versions
Additional context
The text was updated successfully, but these errors were encountered: