I'm having a problem while using QtCreator 3.0.1 with Qt 5.2.1 on Linux. I'm trying to compile my project using QtCreator's built in 'build' function, which I imagine runs qmake project.pro
and then make
. My project uses QScintilla, which I have compiled into a static library (.a
), and included in my project's directory in qscintilla/Qt4Qt5
.
After compilation is done, the compile output pane shows the following:
/usr/bin/ld: cannot find -lqscintilla2
collect2: error: ld returned 1 exit status
My .pro
file contains:
LIBS += -Lqscintilla/Qt4Qt5 -lqscintilla2
However, running qmake
and then make
on the project's root directory via a terminal emulator works perfectly, and the project is compiled and linked successfully. I have double checked that the qscintilla/Qt4Qt5
directory contains the file libqscintilla2.a
.