miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

miniupnd-1.8.2 instllation error

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
wong



Joined: 10 Sep 2013
Posts: 3

PostPosted: Tue Sep 10, 2013 9:45 am    Post subject: miniupnd-1.8.2 instllation error Reply with quote

Hi,folks.
I am trying to install miniupnpd-1.8.20130730 and got following error while installation .

mips-linux-gcc -Os -fno-strict-aliasing -fno-common -D_GNU_SOURCE -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement -I/root/Desktop/iptables-1.4.13/include/ -DIPTABLES_143 -I/usr/local/include -c -o netfilter/iptpinhole.o netfilter/iptpinhole.c

make: *** No rule to make target `-lnfnetlink', needed by `miniupnpd'. Stop.
The libnfnetlink-1.0.1 has been installed and it's path is "/usr/local/include".
how to solve the problem ?
Thank you!
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1391

PostPosted: Tue Sep 10, 2013 8:22 pm    Post subject: Reply with quote

please try :
Code:
$ find /usr/ -name libnfnetlink\*

you'll then probably understand the source of the problem Smile
you need libnfnetlink.a / .so
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
wong



Joined: 10 Sep 2013
Posts: 3

PostPosted: Wed Sep 11, 2013 12:38 am    Post subject: Reply with quote

miniupnp wrote:
please try :
Code:
$ find /usr/ -name libnfnetlink\*

you'll then probably understand the source of the problem Smile
you need libnfnetlink.a / .so

Thank you!
But,after executing the command,I got the messages as follows:
Code:
/usr/local/include/libnfnetlink
/usr/local/include/libnfnetlink/libnfnetlink.h
/usr/local/lib/libnfnetlink.so.0
/usr/local/lib/libnfnetlink.so
/usr/local/lib/libnfnetlink.la
/usr/local/lib/pkgconfig/libnfnetlink.pc
/usr/local/lib/libnfnetlink.so.0.2.0

I had not specified the path of the library in the Makefile.linux, which I guess caused the problem.Where should I add the path. I've tried many times, but this problem still exists.
Crying or Very sad
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1391

PostPosted: Wed Sep 11, 2013 7:33 am    Post subject: Reply with quote

Code:
$ man ld


also I noticed that you are using "mips-linux-gcc", so I guess you are cross compiling, right ? if so, you should make sure the libraries and includes are in your cross compiling environment.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
wong



Joined: 10 Sep 2013
Posts: 3

PostPosted: Wed Sep 11, 2013 8:42 am    Post subject: Reply with quote

miniupnp wrote:
Code:
$ man ld


also I noticed that you are using "mips-linux-gcc", so I guess you are cross compiling, right ? if so, you should make sure the libraries and includes are in your cross compiling environment.


OK!Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.