Mineserver Community

Mineserver => Development => Topic started by: xoft on February 20, 2011, 12:57:02 am



Title: Cross-compiling for Popcorn Hour
Post by: xoft on February 20, 2011, 12:57:02 am
I tried cross-compiling mineserver for use in my popcorn hour (just as a test); however, I failed miserably. I guess the linux still doesn't like me. So I'm asking, are there any linux gurus who would point me in the right direction as to how crosscompiling works?

I got the toolchain needed, I managed to make it successfully, so I seem to have gcc, binutils et al available.
Then I tried compiling libevent, that seemed to work, although I'm not sure if it compiled using system gcc or the cross-gcc (how do I tell?)
Libnoise is problematic, it has no configure script, just a makefile, and I have no idea how to crosscompile that.
That means I didn't have a chance to actually try crosscompiling  mineserver at all :(

I'd appreciate any help on the issue.

References:
SMP toolchain: http://www.networkedmediatank.com/download/firmware/nmt/gpl/gpl.htm (scroll down to SMP863x platform at the bottom)
Building the toolchain, crosscompiling libs: http://stuff.thatblogs.com/content/popcorn-hour-toolchain-fedora-10 (I used Debian in a virtualbox, the only difference was using apt-get instead of yum)


Title: Re: Cross-compiling for Popcorn Hour
Post by: winex on March 13, 2011, 02:01:59 am
that SMP863x is unknown arch/device/whatever to me...

i think you need mingw32 cross-compiling stuff.

basically, you're trying it for the wrong target :P

try (redhat-like):
Code:
$ yum search mingw
or (debian-like):
Code:
$ aptitude search mingw

or install msys+mingw32 (maybe with code::blocks) for your win platform and try building...

i might add mingw32 stuff to cmake system later... (i'll try cross-compiling, though)


Title: Re: Cross-compiling for Popcorn Hour
Post by: xoft on March 14, 2011, 01:00:02 pm
that SMP863x is unknown arch/device/whatever to me...

Basically, Popcorn Hour is just a media player box (see http://reviews.productwiki.com/popcorn-hour-a-110/ ), internally it runs some kind of mutilated linux and the community provides some nice apps, such as svn server, http server etc.

So no, I don't think mingw would be of any use in this case.


Title: Re: Cross-compiling for Popcorn Hour
Post by: winex on March 14, 2011, 08:28:23 pm
ah, that's why... sorry, i misunderstood. for some reason i thought you wanted to build for win32...

/offtopic
looks like fedora 14 has many pre-built mingw32-* packages, but it's not that hard to cross-compile few mineserver's dependencies on debian, too...

it's just libnoise has crappy Makefile, so i'm trying to add cmake for it (it already cross-works, btw) :)