[AppleTV] Compiling crystalhd-for-osx Lib/Kext

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Jimmer Offline
Donor
Posts: 339
Joined: Jan 2010
Reputation: 3
Location: Sunny Devon, UK
Post: #1
Hi,

Have checked out the latest SVN (as of 5/1/10) of crystalhd-for-osx. When making the lib I keep getting errors because of a missing 'bc_dts_glob_osx.h' file in the include directory.

There is a 'bc_dts_glob_lnx.h' file in /include - is the file that should be referenced? Or is the correct file missing? Apologies if this has been answered elsewhere - did a search, but maybe I'm the first?

Jim
find quote
Jimmer Offline
Donor
Posts: 339
Joined: Jan 2010
Reputation: 3
Location: Sunny Devon, UK
Post: #2
Scratch that - have tried compiling using bc_dts_glob_lnx.h instead of bc_dts_glob_osx.h, but predictably it wouldn't compile! Thought maybe it was a misslabled osx header, but must be the actual linux version of the header...

Guess there really must be a missing file in the svn....

Jim
find quote
Elbert Offline
Senior Member
Posts: 131
Joined: Oct 2009
Reputation: 4
Location: Netherlands
Post: #3
Seems it's just been added with revision 11!

and... ** BUILD SUCCEEDED **
find quote
davilla Offline
Team-XBMC Developer
Posts: 11,390
Joined: Feb 2008
Reputation: 64
Post: #4
yes, fxed, at Committed revision 11. Current version is svn 12 which sets the compiler to gcc4.0 as compiling under 10.6 , the default compiler is gcc4.2.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
Elbert Offline
Senior Member
Posts: 131
Joined: Oct 2009
Reputation: 4
Location: Netherlands
Post: #5
davilla Wrote:yes, fxed, at Committed revision 11. Current version is svn 12 which sets the compiler to gcc4.0 as compiling under 10.6 , the default compiler is gcc4.2.

Ah yes, I also encountered that. Thanks for fixing
find quote
Jimmer Offline
Donor
Posts: 339
Joined: Jan 2010
Reputation: 3
Location: Sunny Devon, UK
Post: #6
Just to be clear - this will compile on a G4/G5 PPC mac with XCode 3 installed? I've successfully compiled other things for the ATV on these systems before, just wanted to make sure I'm not missing anything vital!

Jim
find quote
davilla Offline
Team-XBMC Developer
Posts: 11,390
Joined: Feb 2008
Reputation: 64
Post: #7
Jimmer Wrote:Just to be clear - this will compile on a G4/G5 PPC mac with XCode 3 installed? I've successfully compiled other things for the ATV on these systems before, just wanted to make sure I'm not missing anything vital!

Jim

the lib makefile might need some (-arch i386 or something like that). XCode is perfectly capable of cross-compiling i386 on ppc. patches welcome Smile


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
(This post was last modified: 2010-01-05 20:03 by davilla.)
find quote
Jimmer Offline
Donor
Posts: 339
Joined: Jan 2010
Reputation: 3
Location: Sunny Devon, UK
Post: #8
Just to be clear, kext compiles for i386 as-is on a PPC. I have compiled it successfully and kextloaded on the ATV to make sure it loads/unloads. So successful on that front with no faffing about!

I have put the -arch i386 flag in the makefile and compiled it on my trusty old ibook, it successfully compiled I think - but I cannot test if the compiled lib files work until my card arrives from Hong Kong (should be any day now) will report back when it arrives!

Jim
find quote
davilla Offline
Team-XBMC Developer
Posts: 11,390
Joined: Feb 2008
Reputation: 64
Post: #9
Jimmer Wrote:Just to be clear, kext compiles for i386 as-is on a PPC. I have compiled it successfully and kextloaded on the ATV to make sure it loads/unloads. So successful on that front with no faffing about!

I have put the -arch i386 flag in the makefile and compiled it on my trusty old ibook, it successfully compiled I think - but I cannot test if the compiled lib files work until my card arrives from Hong Kong (should be any day now) will report back when it arrives!

Jim

Skunkworks:~ davilla$ file /usr/lib/libcrystalhd.dylib
/usr/lib/libcrystalhd.dylib: Mach-O dynamically linked shared library i386

should see the i386 ref.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
Jimmer Offline
Donor
Posts: 339
Joined: Jan 2010
Reputation: 3
Location: Sunny Devon, UK
Post: #10
Thanks Davilla!

Confirmed...

ibookg4:~ jim$ file libcrystalhd.dylib
libcrystalhd.dylib: Mach-O dynamically linked shared library i386

Hope for those of us without intel macs!

Jim
find quote
garyi Offline
Posting Freak
Posts: 1,195
Joined: Oct 2008
Reputation: 0
Post: #11
So in essence in order to use my crystal thingy thats gonna be with me tomorrow I have to understand what percentage of the above?

I believe I understand about 4% of it.
find quote
gangsta75 Offline
Donor
Posts: 59
Joined: Aug 2005
Reputation: 0
Location: Italy
Post: #12
i don't know if what i did is right..
i compiled everything on my macbookpro and copied all the stuff on appletv.
kext is loaded:
kextload: extension BroadcomCrystalHD.kext appears to be valid
kextload: loading extension BroadcomCrystalHD.kext
kextload: BroadcomCrystalHD.kext loaded successfully
kextload: loading personalities named:
kextload: FirstPersonality
kextload: sending 1 personality to the kernel
kextload: matching started for BroadcomCrystalHD.kext

i'm running the latest build of xbmc and the card is installed properly (i've already tested ubuntu live and it's working good)

this is it?
I've tried 720p but it's not working.
Am i missing something?

thanks
G75
find quote
dan1son Offline
Fan
Posts: 608
Joined: Dec 2008
Reputation: 0
Post: #13
garyi Wrote:So in essence in order to use my crystal thingy thats gonna be with me tomorrow I have to understand what percentage of the above?

I believe I understand about 4% of it.

If you want to use it tomorrow you're going to need to go through quite a few steps...

You need a Mac, the source code for the drivers, xcode, XBMC source code from SVN, the pre-requisites for compiling XBMC, and type some commands to make it all compile.
find quote
A Milton Offline
Donor
Posts: 101
Joined: Jun 2007
Reputation: 0
Location: Sweden
Post: #14
Ok, so now I got the lib and kext compiled, installed and loaded on my ATV. What build of XBMC should I use? Do I have to build my own or does someone have a link?

I have begun compiling r26413, but I'm afraid it's gonna take quite some time on my poor 1.83 GHz Core Duo.
(This post was last modified: 2010-01-06 00:38 by A Milton.)
find quote
A Milton Offline
Donor
Posts: 101
Joined: Jun 2007
Reputation: 0
Location: Sweden
Post: #15
dan1son Wrote:You need a Mac, the source code for the drivers, xcode, XBMC source code from SVN, the pre-requisites for compiling XBMC, and type some commands to make it all compile.

And time... Lots and lots of time...
find quote
Post Reply