Fork me on GitHub
  August 22, 2018, 03:56:31 am
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Cross-compiling for Popcorn Hour  (Read 4480 times)
xoft
Newbie
*
Posts: 42


View Profile
« 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 Sad

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)
Logged
winex
Newbie
*
Posts: 7


View Profile
« 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 Tongue

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)
Logged
xoft
Newbie
*
Posts: 42


View Profile
« 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.
Logged
winex
Newbie
*
Posts: 7


View Profile
« 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) Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!