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

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Jimmer Offline
Donor
Posts: 337
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: 337
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: 10,397
Joined: Feb 2008
Reputation: 58
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: 337
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: 10,397
Joined: Feb 2008
Reputation: 58
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: 337
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: 10,397
Joined: Feb 2008
Reputation: 58
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: 337
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
Post Reply