Compile failed : Unable to find existing lib
Hi,
I am trying to compile last Nixnote2 beta (from there https://github.com/baumgarr/Nixnote2) After : Code:
qmake Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/../../../../x86_64-slackware-linux/bin/ld: ne peut trouver -lhunspell Code:
LIBS = $(SUBLIBS) -L/usr/lib64/qt/lib -lopencv_core -lopencv_highgui -lopencv_imgproc -lhunspell -lcurl -L/usr/lib -lpoppler-qt4 -g -rdynamic -lQtWebKit -lQt$ Code:
LIBS = $(SUBLIBS) -L/usr/lib64/qt/lib -lopencv_core -lopencv_highgui -lopencv_imgproc -lcurl -L/usr/lib64 -lhunspell -L/usr/lib -lpoppler-qt4 -g -rdynamic -lQtWebKit -lQt$ Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/../../../../x86_64-slackware-linux/bin/ld: ne peut trouver -lhunspell |
This comes probably from multilib. When I find this, I simply rename /usr/lib, compile, and restore /usr/lib after (very dirty way).
|
Thanks for the tip but that didn't make it :(
|
I would think it was obvious: "ne peut trouver -lhunspell"
If you install the hunspell package, things would look a lot better. The "escamotage incompatible" messages are just warnings because the linker checks all libraries in its path, including the 32-bit multilib stuff. You can safely ignore those. |
Thanks for answering.
Quote:
But hunspell is there : Code:
/usr/lib64/pkgconfig/hunspell.pc |
I even tried to compile hunspell with static libs in both x86_64 and compat32, I can't get rid of this error.
I don't even know where to search now... |
It can not find the hunspell library since it's named hunspell-1.3 in slackware 14.1
So in the file Nixnote2-2.0-beta4/Makefile.Release line 18 change Code:
-lhunspell to -lhunspell-1.3 |
Code:
pkg-config --libs hunspell I adjusted the Makefile.Release file accordingly: Code:
LFLAGS = -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-O1 -Wl,-rpath,/usr/lib64/qt/lib In short: qmake change -lhunspell for -lhunspell-1.3 make Just see that, ml4711 was faster on this... |
Thanks guys ! That works !
I will recall this pkg-config --libs command :) |
All times are GMT -5. The time now is 04:36 AM. |