Symbol not found: _iconv
-
Using Qt 5.7 on OS X El Capitan, I get the following error trying to run my app from within Qt Creator:
dyld: Symbol not found: _iconv Referenced from: /usr/lib/libcups.2.dylib Expected in: /sw/lib//libiconv.2.dylib in /usr/lib/libcups.2.dylib The program has unexpectedly finished
However, running the executable from the command line, it is starting up normally and running fine.
What is puzzling is the reference to the /sw/lib directory, which is created by fink.
Any idea how to fix this?Thanks,
Roy -
Hi,
How did you install Qt ?
-
Check the environment variables in the project panel to see if
/sw/
is searched before/usr/
-
@SGaist Yup, it was. I replace both
DYLD_FRAMEWORK_PATH
andDYLD_LIBRARY_PATH
from
/Volumes/Home/roy/tmp/Qt5.7.0/5.7/clang_64/lib:/sw/lib/:/usr/local/lib/:/usr/lib:/sw/lib/
to
/Volumes/Home/roy/tmp/Qt5.7.0/5.7/clang_64/lib:/usr/local/lib/:/usr/lib:/sw/lib/
I then did a Build/Clean All and then a Build/Rebuild Project (just to make sure, not sure if this was really needed).
And yes, for now, that is working.Thanks for the suggestion, @SGaist
-
At this moment, I cannot use Topic Tools and set this topic as solved...
-
Because you didn't ask a question. Use the button to "Ask as question" and then you'll have the "Mark as solved" that should appear.