Port XBMC to BSD based operating-system like FreeBSD, PC-BSD, or NetBSD?

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
wonslung Offline
Senior Member
Posts: 114
Joined: Feb 2009
Reputation: 0
Question  Port XBMC to BSD based operating-system like FreeBSD, PC-BSD, or NetBSD?
Post: #1
I did a google search to see if i could find any info, i didn't see much.

Does anyone know if it will compile on FreeBSD and if so is there any tips/guides around?
find quote
althekiller Offline
Retired Team-Kodi Member
Posts: 5,002
Joined: May 2004
Reputation: 12
Post: #2
Try it and let us know.
find quote
wonslung Offline
Senior Member
Posts: 114
Joined: Feb 2009
Reputation: 0
Post: #3
althekiller Wrote:Try it and let us know.

I tried this awhile back and it didn't work for me, I've learned a lot more lately about FreeBSD and building software in general but i still don't know enough about C to make good patches. I was wondering if any progress has been made with porting to FreeBSD.

I'm open to all tips and hints. Thanks guys
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #4
no. and it's not on our list at all.
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #5
I would imagine it would be some sort of linux/osx mix.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
monkeyman Offline
Team-XBMC Developer
Posts: 190
Joined: Jul 2007
Reputation: 0
Location: Kansas
Post: #6
If you're willing to post some of the errors you run into, I'd be happy to work with you to try and resolve the issues.

- Kyle Hill

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #7
You start by getting the depends in place, see README.ubuntu or README.osx. OSX is BSD so it's close but there will be some differences. Then get the internal libs building, then the main app. Disable everything that gets cranky.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
derwood Offline
Junior Member
Posts: 32
Joined: Mar 2009
Reputation: 0
Question  XBMC and FreeBSD?
Post: #8
Has anyone tried building XMBC on FreeBSD? Did some searching on google and here and don't see any evidence that it's been done.
FreeBSD has native nvidia drivers with vdpau, supports ALSA, Python, LIRC, etc. so I think it might be possible. I'm thinking about giving it a try.
What dependencies would need to be built besides the obvious nvidia, libvdpau, ALSA, Python and LIRC?

Any info would be appreciated.
find quote
outleradam Offline
Donor
Posts: 1,722
Joined: Sep 2009
Reputation: 20
Location: Louisiana
Post: #9
Isn't freebsd the same as MAC os? I found alot of system binaries on Mac which reference freeBSD.

Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[Image: newsig-1.png]
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
find quote
derwood Offline
Junior Member
Posts: 32
Joined: Mar 2009
Reputation: 0
Post: #10
OSX is based on FreeBSD.
There are areas where mac devs have made some changes, but they're fairly closely related.
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #11
derwood Wrote:Has anyone tried building XBMC on FreeBSD? Did some searching on google and here and don't see any evidence that it's been done.
FreeBSD has native nvidia drivers with vdpau, supports ALSA, Python, LIRC, etc. so I think it might be possible. I'm thinking about giving it a try.
What dependencies would need to be built besides the obvious nvidia, libvdpau, ALSA, Python and LIRC?

Any info would be appreciated.

See README.ubuntu, there's a list of lib depends in there. You will have to diddle source code a bit, you will want linux as the OSX side is mostly cocoa'isms and that's not there in a Free/Net BSD system. The big thing will be the _Linux #ifdefs. Force that and see where it borks, rinse/repeat.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
derwood Offline
Junior Member
Posts: 32
Joined: Mar 2009
Reputation: 0
Post: #12
Thanks.. I've got a system mostly built now with XFCE4 desktop.. Gonna start checking libs and see what I can get to work.
find quote
DanielBuus Offline
Junior Member
Posts: 39
Joined: Oct 2010
Reputation: 0
Post: #13
Interesting. Make sure to report back Smile XBMC is all I need (and then some) for a media server. BSD with native ZFS would make the package one sweet deal. Currently checking out PC-BSD, and having XBMC functional here would seal the deal.
find quote
68040 Offline
Junior Member
Posts: 2
Joined: Dec 2010
Reputation: 0
Post: #14
I've tried this a while back, I'm about to try again.

The biggest hangup I saw was libdl, which is (was?) not present in FreeBSD.

Frequently, most of the FreeBSD development environment is close to Linux, although some libraries on linux are system header in *BSD, and some system headers are combined or placed in different locations.

There are of course structural differences, but the FreeBSD ports system tends to provide stable, moderately recent versions of most libraries needed to compile stuff from Linux.

The opposite path is to use the FreeBSD linux compatibility layer, which provides a simulated kernel and I believe redhat distro set of libraries.

I'll try to post specifics later.
find quote
68040 Offline
Junior Member
Posts: 2
Joined: Dec 2010
Reputation: 0
Post: #15
Ok, good news so far while waiting for the download...yikes!

libdl is not necessary on FreeBSD because the same functions are implemented in libc, so it would seem I can just remove the imports.

Can't remember what other libs hung up, but I've got the depends for gnome2.32, vlc, compiz, mplayer etc., so I'm hoping I'm close...googling for a list now...

What will probably be a killer is that many files that would live in /usr on Linux live in /usr/local on FreeBSD (Only system critical core binaries/libs/etc live in /usr, all the additional software lives deep in /usr/local/)
find quote
Post Reply