configure fails to find QtCore
SNMP MIB Browser for Linux platforms
Status: Beta
Brought to you by:
rcpteam
For me on Gentoo Linux:
$ ./configure .... configure:3797: checking for main in -lQtCore configure:3816: x86_64-pc-linux-gnu-gcc -o conftest -march=core-avx-i -ftree-vectorize -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu conftest.c -lQtCore -lpthread >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQtCore collect2: error: ld returned 1 exit status configure:3816: $? = 1 ... configure:3825: result: no configure:3835: error: *** QtCore library not installed - please install QT4 first ***
Works with -L/usr/lib64/qt4 added to LIBS.
Using PKG_CHECK_MODULES as in the attached patch fixes this for me.
Unfortunately PKG_CHECK_MODULES wouldn't work on Debian 7. I put a small fix in version 1.1.1 for Gentoo. They had a similar ./configure problem, it might work also in your case. If not, I need to know where libQtCore.so is located in the filesystem.
Thanks