LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-09-2015, 04:26 AM   #1
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
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
make clean
make
I have this error :
Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/../../../../x86_64-slackware-linux/bin/ld: ne peut trouver -lhunspell
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/../../../../x86_64-slackware-linux/bin/ld: escamotage incompatible /usr/lib/libcurl.so lors de la recherche de -lcurl
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/../../../../x86_64-slackware-linux/bin/ld: escamotage incompatible /usr/X11R6/lib/libcurl.so lors de la recherche de -lcurl
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/../../../../x86_64-slackware-linux/bin/ld: escamotage incompatible /usr/lib/libpthread.so lors de la recherche de -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/../../../../x86_64-slackware-linux/bin/ld: escamotage incompatible /usr/lib/libpthread.a lors de la recherche de -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/../../../../x86_64-slackware-linux/bin/ld: escamotage incompatible /usr/X11R6/lib/libpthread.so lors de la recherche de -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/../../../../x86_64-slackware-linux/bin/ld: escamotage incompatible /usr/X11R6/lib/libpthread.a lors de la recherche de -lpthread
collect2: erreur: ld a retourné 1 code d'état d'exécution
Makefile.Release:635*: la recette pour la cible «*nixnote2*» a échouée
make[1]: *** [nixnote2] Erreur 1
I tried to modify in Makefile.Debug and Makefile.Release this line
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$
to this :
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$
But the error is still there, but without next ones :
Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.9.3/../../../../x86_64-slackware-linux/bin/ld: ne peut trouver -lhunspell
collect2: erreur: ld a retourné 1 code d'état d'exécution
Makefile.Release:635*: la recette pour la cible «*nixnote2*» a échouée
make[1]: *** [nixnote2] Erreur 1
Any help would be appreciate !
 
Old 11-09-2015, 04:33 AM   #2
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Rep: Reputation: Disabled
This comes probably from multilib. When I find this, I simply rename /usr/lib, compile, and restore /usr/lib after (very dirty way).
 
Old 11-09-2015, 05:05 AM   #3
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407

Original Poster
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Thanks for the tip but that didn't make it
 
Old 11-09-2015, 05:21 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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.
 
Old 11-09-2015, 05:26 AM   #5
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407

Original Poster
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Thanks for answering.
Quote:
Originally Posted by Alien Bob View Post
I would think it was obvious: "ne peut trouver -lhunspell"
If you install the hunspell package, things would look a lot better.
Indeed it is obvious...

But hunspell is there :
Code:
/usr/lib64/pkgconfig/hunspell.pc
/usr/lib64/qt5/plugins/kf5/sonnet/hunspell.so
/usr/lib64/libhunspell-1.3.so.0.0.0
/usr/lib64/libhunspell-1.3.so.0
/usr/lib64/libhunspell-1.3.la
/usr/lib64/libhunspell-1.3.so
/usr/share/locale/hu/LC_MESSAGES/hunspell.mo
/usr/share/locale/it/LC_MESSAGES/hunspell.mo
/usr/share/katepart5/syntax/hunspell-dat.xml
/usr/share/katepart5/syntax/hunspell-dic.xml
/usr/share/katepart5/syntax/hunspell-aff.xml
/usr/share/katepart5/syntax/hunspell-idx.xml
/usr/man/man1/hunspell.1.gz
/usr/man/man3/hunspell.3.gz
/usr/man/hu/man1/hunspell.1.gz
/usr/man/man5/hunspell.5.gz
/usr/doc/hunspell-1.3.3
/usr/doc/hunspell-1.3.3/COPYING.LGPL
/usr/doc/hunspell-1.3.3/NEWS
/usr/doc/hunspell-1.3.3/ChangeLog.O
/usr/doc/hunspell-1.3.3/README.myspell
/usr/doc/hunspell-1.3.3/BUGS
/usr/doc/hunspell-1.3.3/ABOUT-NLS
/usr/doc/hunspell-1.3.3/COPYING.MPL
/usr/doc/hunspell-1.3.3/TODO
/usr/doc/hunspell-1.3.3/AUTHORS.myspell
/usr/doc/hunspell-1.3.3/THANKS
/usr/doc/hunspell-1.3.3/README
/usr/doc/hunspell-1.3.3/ChangeLog
/usr/doc/hunspell-1.3.3/COPYING
/usr/doc/hunspell-1.3.3/AUTHORS
/usr/include/scribus/plugins/tools/hunspellcheck
/usr/include/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.h
/usr/include/scribus/plugins/tools/hunspellcheck/hunspelldialog.h
/usr/include/scribus/plugins/tools/hunspellcheck/hunspelldict.h
/usr/include/scribus/plugins/tools/hunspellcheck/hunspellpluginstructs.h
/usr/include/scribus/plugins/tools/hunspellcheck/hunspellplugin.h
/usr/include/hunspell
/usr/include/hunspell/affentry.hxx
/usr/include/hunspell/htypes.hxx
/usr/include/hunspell/baseaffix.hxx
/usr/include/hunspell/langnum.hxx
/usr/include/hunspell/csutil.hxx
/usr/include/hunspell/w_char.hxx
/usr/include/hunspell/filemgr.hxx
/usr/include/hunspell/replist.hxx
/usr/include/hunspell/phonet.hxx
/usr/include/hunspell/atypes.hxx
/usr/include/hunspell/affixmgr.hxx
/usr/include/hunspell/hunvisapi.h
/usr/include/hunspell/dictmgr.hxx
/usr/include/hunspell/hunspell.hxx
/usr/include/hunspell/hunzip.hxx
/usr/include/hunspell/hunspell.h
/usr/include/hunspell/hashmgr.hxx
/usr/include/hunspell/suggestmgr.hxx
/usr/bin/wordlist2hunspell
/usr/bin/hunspell
That's what I do not understand...

Last edited by Tonus; 11-09-2015 at 05:33 AM.
 
Old 11-09-2015, 06:12 AM   #6
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407

Original Poster
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
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...
 
Old 11-09-2015, 07:17 AM   #7
ml4711
Member
 
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146

Rep: Reputation: 103Reputation: 103
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
Enjoy
 
1 members found this post helpful.
Old 11-09-2015, 07:18 AM   #8
_gin
Member
 
Registered: Aug 2012
Distribution: Oracle Linux
Posts: 106

Rep: Reputation: Disabled
Wink

Code:
pkg-config --libs hunspell
returns -lhunspell-1.3 not -lhunspell

I adjusted the Makefile.Release file accordingly:

Code:
LFLAGS        = -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-O1 -Wl,-rpath,/usr/lib64/qt/lib
LIBS          = $(SUBLIBS)  -L/usr/lib64/qt/lib -lopencv_core -lopencv_highgui -lopencv_imgproc -lhunspell-1.3 -lcurl -L/usr/lib -lpoppler-qt4 -g -rdynamic -lQtWebKit -lQtSql -L/usr/lib64/qt/lib -lQtXml -lQtGui -L/usr/X11R6/lib -lQtNetwork -lQtCore -lpthread 
AR            = ar cqs
like this It's compiling fine on my Slackware64-current box.

In short:

qmake
change -lhunspell for -lhunspell-1.3
make

Just see that, ml4711 was faster on this...

Last edited by _gin; 11-09-2015 at 07:22 AM.
 
1 members found this post helpful.
Old 11-09-2015, 08:06 AM   #9
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407

Original Poster
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Thanks guys ! That works !

I will recall this pkg-config --libs command
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC Setup problems (SQLGetPrivateProfileString failed with Unable to find component) pal2ie Linux - Software 2 10-23-2017 11:31 AM
configure: error: Unable to find your mysql lib dir, specify --enable-libdir. pavanchauhan Linux - Newbie 1 04-13-2014 02:34 AM
Failed to launch VMware Web Access: unable to find a graphical web browser. rob0t Linux - Server 0 03-18-2009 02:32 PM
audacity unable to locate required lib files present in /usr/lib/ adityavpratap Slackware 4 11-30-2006 06:06 AM
Unable to compile from source... can't find GTK kaega2 Mandriva 4 06-01-2004 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration