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 

How to do cross compile of v1.8

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



Joined: 12 Sep 2013
Posts: 1

PostPosted: Thu Sep 12, 2013 8:59 am    Post subject: How to do cross compile of v1.8 Reply with quote

Hi,

I am trying to compile the latest vesrion, miniupnpc-1.8.20130801 with my cross compilor : arm-none-linux-gnueabi-gcc

I modified my makefiles as following:

CC = arm-none-linux-gnueabi-gcc
CFLAGS = -O -Wall -DNDEBUG
(command all other CFLAGS)

after make, i copy "upnpc-shared" and "libminiupnpc.so" to my embeded-linux,
under folder /bin and /lib respectively.
but it turns out that the binary file can't execute at all.....

any suggestion ? thanks.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1429

PostPosted: Wed Sep 25, 2013 7:58 am    Post subject: Reply with quote

what do you mean "it can't execute at all" ?
Is that the binary which is in wrong format/wrong architecture, or is it crashing ?
Code:
$ file upnpc-* lib*
can tell you which format/architecture
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc 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.