ld:找不到-lqscintilla2的库

时间:2017-10-11 00:06:40

标签: qt linker shared-libraries homebrew qscintilla

调试步骤:

brew uninstall qscintilla2
brew install qscintilla2

当它不起作用时,我再次卸载然后从src手动构建:

curl -OL 'https://nchc.dl.sourceforge.net/project/pyqt/QScintilla2/QScintilla-2.10.1/QScintilla_gpl-2.10.1.tar.gz'
tar xf QScintilla_gpl-2.10.1.tar.gz
cd QScintilla_gpl-2.10.1/Qt4Qt5
qmake
make
make install

如果那不起作用,我试过:

ln -s /usr/local/Cellar/qt/5.9.1/lib/libqscintilla2_qt5.13.0.0.dylib /usr/local/lib/libqscintilla.dylib
for f in /usr/local/Cellar/qt/5.9.1/lib/*.dylib;
    do ln -s "$f" "/usr/local/lib/${f##*/}";
done

1 个答案:

答案 0 :(得分:2)

哎呀,错过了另外一个符号链接:

ln -s /usr/local/Cellar/qt/5.9.1/lib/libqscintilla2_qt5.13.0.0.dylib /usr/local/lib/libqscintilla2.dylib