For$
<!-- begin site header -->
<div id=

Author Topic: Cross-compiling for Popcorn Hour  (Read 10073 times)

xoft

  • Newbie
  • *
  • Posts: 42
    • View Profile
Cross-compiling for Popcorn Hour
« 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)

winex

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Cross-compiling for Popcorn Hour
« Reply #1 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: [Select]
$ yum search mingwor (debian-like):
Code: [Select]
$ 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)

xoft

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Cross-compiling for Popcorn Hour
« Reply #2 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.

winex

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Cross-compiling for Popcorn Hour
« Reply #3 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) :)