문제

I have QT creator project, that has CMarkup library, that uses iconv library. On OSX 10.8.4 I'm having widespread issue with iconv library: Undefined symbols for architecture x86_64: "_iconv", referenced from: ... "_iconv_close", referenced from: ... "_iconv_open", referenced from: ... This is caused according to Stack's few QA's by not proper build of iconv. So I compiled correct one, but now there is a question that I cannot solve: how can I swap iconv in QT creator project from /usr/lib to /usr/local/lib?

도움이 되었습니까?

해결책

Well, that was obvious, if someone would need this, here is my solution. Add this line to your .pro file: LIBS += =L/usr/local/lib -liconv Do not forget to swap iconv.h file from system one, just add it into your project and write: #include "iconv.h" instead of #include <iconv.h> Hope this will help someone to save some time. Cheers!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top