Kodi Community Forum
[AppleTV] Compiling crystalhd-for-osx Lib/Kext - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Mac OS X (https://forum.kodi.tv/forumdisplay.php?fid=56)
+---- Thread: [AppleTV] Compiling crystalhd-for-osx Lib/Kext (/showthread.php?tid=66174)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


- gangsta75 - 2010-01-06

Davilla, is there a kind of roadmap in the developing process of this project?
Are you at the end of this roadmap or do you think there is room for improvement in term of quality of this libraries?
Do we have to keep an eye on googlecode svn for osx and periodically download your fix and repeat the process to compile and copy on appletv?

thanks for your brilliant work Cool

gangsta75


- davilla - 2010-01-06

gangsta75 Wrote:Davilla, is there a kind of roadmap in the developing process of this project?
Are you at the end of this roadmap or do you think there is room for improvement in term of quality of this libraries?
Do we have to keep an eye on googlecode svn for osx and periodically download your fix and repeat the process to compile and copy on appletv?

thanks for your brilliant work Cool

gangsta75

no roadmap, not done yet. There's still lots to do.


- A Milton - 2010-01-07

Yay! At last I can run my own build on my ATV! Not that there's much difference from Cybernations build Smile

When building, should I build 'Release' or 'Debug'?


- WeakATV - 2010-01-07

A Milton Wrote:Yay! At last I can run my own build on my ATV! Not that there's much difference from Cybernations build Smile

When building, should I build 'Release' or 'Debug'?


A Milton, I am also using Cybernations build but it I'm having issues playing HD content, did you take different steps then the ones I outlined Here?

Thanks


- A Milton - 2010-01-07

Nah, I did the same thing, and I also have some problems.

It's all good. Still early in the game Smile


- davilla - 2010-01-07

A Milton Wrote:Yay! At last I can run my own build on my ATV! Not that there's much difference from Cybernations build Smile

When building, should I build 'Release' or 'Debug'?

Pick your poison Wink release should be slightly faster than debug, debug outputs more (wait for it) debug info.


- A Milton - 2010-01-07

davilla Wrote:debug outputs more (wait for it) debug info.

What?! Wink

If I put it another way; if I build 'Release', would the logs do you any good then? Running bleeding edge pre-alpha shit is only half as good if you can't help make things better...


- dan1son - 2010-01-07

A Milton Wrote:What?! Wink

If I put it another way; if I build 'Release', would the logs do you any good then? Running bleeding edge pre-alpha shit is only half as good if you can't help make things better...

You can put the Release build in debug mode via the menus...


- davilla - 2010-01-07

A Milton Wrote:What?! Wink

If I put it another way; if I build 'Release', would the logs do you any good then? Running bleeding edge pre-alpha shit is only half as good if you can't help make things better...

only if you turn on debug logging.


- Jimmer - 2010-01-07

This maybe slightly off-topic (although would help me get on topic...)

When getting macports 1.7.1 up and running on my PPC G4, when I issue

Code:
sudo port install pcre +universal

I get the following:

Code:
ibookg4:xbmc-port-depends-read-only jim$ sudo port install pcre +universal
--->  Configuring ncursesw
--->  Configuring ncursesw for architecture ppc
--->  Configuring ncursesw for architecture i386
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_Users_jim_xbmc-port-depends-read-only_dports_devel_ncursesw/work/ncurses-5.7-i386" && ./configure --prefix=/opt/local --enable-widec --disable-rpath --with-shared --without-debug --without-ada --enable-safe-sprintf --enable-sigwinch --mandir=/opt/local/share/man --with-manpage-format=normal --disable-dependency-tracking --host=i386-apple-darwin9.8.0 --with-build-cc='/usr/bin/gcc-4.0' --with-build-cpp='/usr/bin/cpp-4.0' --with-build-cppflags=-D_XOPEN_SOURCE_EXTENDED --enable-big-core --with-chtype=long --with-bool='unsigned char' " returned error 1
Command output: checking for nawk... no
checking for awk... awk
checking for egrep... (cached) grep -E
checking for a BSD compatible install... /usr/bin/install -c
checking for tdlint... no
checking for lint... no
checking for alint... no
checking whether ln -s works... yes
checking for long file names... yes
checking if we should assume mixed-case filenames... auto
checking if filesystem supports mixed-case filenames... no
checking whether make sets ${MAKE}... yes
checking for ctags... yes
checking for makeflags variable...
checking for i386-apple-darwin9.8.0-ranlib... no
checking for ranlib... ranlib
checking for i386-apple-darwin9.8.0-ld... no
checking for ld... ld
checking for i386-apple-darwin9.8.0-ar... no
checking for ar... ar
checking for archiver options (symbol AR_OPTS)... rv
checking if you have specified an install-prefix...
checking for native build C compiler... /usr/bin/gcc-4.0
checking for native build C preprocessor... /usr/bin/cpp-4.0
checking for native build C flags...
checking for native build C preprocessor-flags... -D_XOPEN_SOURCE_EXTENDED
checking for native build linker-flags...
checking for native build linker-libraries...
configure: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler.

Error: The following dependencies failed to build: ncurses ncursesw readline zlib
Error: Status 1 encountered during processing.

This is my macports.conf:

Code:
# Options for Universal Binaries (+universal variant)

# MACOSX_DEPLOYMENT_TARGET
universal_target        10.4

# the SDK "sysroot" to use
universal_sysroot       /Developer/SDKs/MacOSX10.4u.sdk

# machine architectures
universal_archs         ppc i386

If I try to delete ppc and build for i386 alone, then I get other architecture errors. Can I build just for ppc, or will I have problems later compiling XBMC for i386 for the AppleTV?

Sorry if this is a dumb question, but I've seen other people having this problem compiling ncurses on PPC using macports, but no one seems to have a solution! Help!

Jim


- WeakATV - 2010-01-07

If it helps at all, this is what I get when I play a 1080p video that runs at 10fps

Code:
-bash-2.05b$ tail -f /Users/frontrow/Library/Logs/xbmc.log
18:04:03 T:2684407808 M: 13684736   DEBUG: Alloc resources: 0.38ms (0.00 ms skin load)
18:04:03 T:51430912 M: 13385728   DEBUG: CrystalHD: SetDropState... 1
18:04:07 T:2684407808 M: 13762560   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmc/system/ImageLib-x86-osx.so)
18:04:07 T:2684407808 M: 13762560   DEBUG: Unloading: ImageLib-x86-osx.so
18:04:08 T:56068096 M: 13799424   DEBUG: Thread 56068096 terminating (autodelete)
18:04:10 T:52469248 M: 13795328   DEBUG: Thread 52469248 terminating (autodelete)
18:04:12 T:52412416 M: 13586432   DEBUG: Thread 52412416 terminating (autodelete)
18:04:14 T:50454528 M: 13643776   DEBUG: Thread 50454528 terminating (autodelete)
18:04:20 T:2684407808 M: 13697024   DEBUG: SECTION:UnloadDelayed(SECTION: LCODE)
18:05:04 T:51715072 M: 13660160  NOTICE: ES: Client  from 127.0.0.1 timed out
18:30:51 T:53348352 M: 10276864   DEBUG: CoreAudioRenderer::Resume: Resuming Playback.
18:30:51 T:52493824 M: 10326016   DEBUG: CDVDPlayer::SetCaching - caching state 1
18:30:51 T:2684407808 M: 10260480   DEBUG: OnPlayBackResumed - Playback was resumed
18:30:51 T:52493824 M: 10276864   DEBUG: CDVDPlayer::SetCaching - caching state 0
18:30:51 T:51430912 M: 10391552   DEBUG: CrystalHD: SetDropState... 0
18:30:51 T:2684407808 M: 10108928   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
18:30:51 T:53348352 M: 10366976   DEBUG: CoreAudioRenderer::Pause: Pausing Playback.
18:30:52 T:52493824 M: 10616832   DEBUG: CDVDPlayer::SetCaching - caching state 1
18:30:52 T:2684407808 M: 10616832   DEBUG: ------ Window Init (DialogSeekBar.xml) ------
18:30:52 T:2684407808 M: 10616832   DEBUG: Alloc resources: 0.34ms (0.00 ms skin load)
18:30:52 T:52493824 M: 10616832   DEBUG: CDVDPlayer::SetCaching - caching state 0
18:30:52 T:53348352 M: 10457088   DEBUG: CoreAudioRenderer::Resume: Resuming Playback.
18:30:52 T:53348352 M: 10444800   DEBUG: CoreAudioRenderer::Pause: Pausing Playback.
18:30:52 T:53348352 M: 10588160   DEBUG: CoreAudioRenderer::Resume: Resuming Playback.
18:30:52 T:52493824 M: 10514432   DEBUG: CDVDPlayer::SetCaching - caching state 1
18:30:52 T:53348352 M: 10575872   DEBUG: CoreAudioRenderer::Pause: Pausing Playback.
18:30:52 T:52493824 M: 10575872   DEBUG: CDVDPlayer::SetCaching - caching state 0
18:30:52 T:2684407808 M: 10686464   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
18:30:52 T:53348352 M: 10911744   DEBUG: CoreAudioRenderer::Resume: Resuming Playback.
18:30:52 T:53348352 M: 10911744   DEBUG: CDVDPlayerAudio:: Discontinuty - was:-6103776.223840, should be:11896360.410918, error:18000136.634758
18:30:52 T:51430912 M:  9838592   DEBUG: CrystalHD: SetDropState... 1
18:30:52 T:51430912 M:  9097216   DEBUG: CrystalHD: SetDropState... 0
18:30:53 T:51430912 M:  9216000   DEBUG: CrystalHD: SetDropState... 1
18:30:53 T:51430912 M:  9367552   DEBUG: CrystalHD: SetDropState... 0
18:30:53 T:51430912 M:  9457664   DEBUG: CrystalHD: SetDropState... 1
18:30:53 T:51430912 M:  9646080   DEBUG: CrystalHD: SetDropState... 0
18:30:53 T:51430912 M:  9646080   DEBUG: CrystalHD: SetDropState... 1
18:30:53 T:51430912 M:  9940992   DEBUG: CrystalHD: SetDropState... 0
18:30:54 T:51430912 M:  9953280   DEBUG: CrystalHD: SetDropState... 1
18:30:54 T:51430912 M: 10137600   DEBUG: CrystalHD: SetDropState... 0
18:30:54 T:51430912 M: 10227712   DEBUG: CrystalHD: SetDropState... 1
18:30:54 T:51430912 M: 10514432   DEBUG: CrystalHD: SetDropState... 0
18:30:54 T:51430912 M: 10629120   DEBUG: CrystalHD: SetDropState... 1
18:30:54 T:51430912 M: 10743808   DEBUG: CrystalHD: SetDropState... 0
18:30:55 T:51430912 M: 10985472   DEBUG: CrystalHD: SetDropState... 1
18:30:55 T:51430912 M: 11104256   DEBUG: CrystalHD: SetDropState... 0
18:30:55 T:51430912 M: 11366400   DEBUG: CrystalHD: SetDropState... 1
18:30:55 T:51430912 M: 11608064   DEBUG: CrystalHD: SetDropState... 0
18:30:55 T:51430912 M: 10928128   DEBUG: CrystalHD: SetDropState... 1
18:30:56 T:51430912 M: 11087872   DEBUG: CrystalHD: SetDropState... 0
18:30:56 T:51430912 M: 11165696   DEBUG: CrystalHD: SetDropState... 1
18:30:56 T:51430912 M: 11403264   DEBUG: CrystalHD: SetDropState... 0
18:30:56 T:51430912 M: 11517952   DEBUG: CrystalHD: SetDropState... 1
18:30:56 T:51430912 M: 11517952   DEBUG: CrystalHD: SetDropState... 0
18:30:56 T:51430912 M: 11542528   DEBUG: CrystalHD: SetDropState... 1
18:30:57 T:51430912 M: 11542528   DEBUG: CrystalHD: SetDropState... 0
18:30:57 T:51430912 M: 11542528   DEBUG: CrystalHD: SetDropState... 1
18:30:57 T:51430912 M: 11542528   DEBUG: CrystalHD: SetDropState... 0
18:30:57 T:51430912 M: 11542528   DEBUG: CrystalHD: SetDropState... 1
18:30:57 T:51430912 M: 11296768   DEBUG: CrystalHD: SetDropState... 0
18:30:58 T:51430912 M: 11419648   DEBUG: CrystalHD: SetDropState... 1
18:30:58 T:51430912 M: 11501568   DEBUG: CrystalHD: SetDropState... 0
18:30:58 T:51430912 M: 11522048   DEBUG: CrystalHD: SetDropState... 1
18:30:58 T:51430912 M: 11546624   DEBUG: CrystalHD: SetDropState... 0
18:30:58 T:51430912 M: 11546624   DEBUG: CrystalHD: SetDropState... 1
18:30:58 T:51430912 M: 11747328   DEBUG: CrystalHD: SetDropState... 0
18:30:59 T:51430912 M: 11259904   DEBUG: CrystalHD: SetDropState... 1
18:30:59 T:51430912 M: 11358208   DEBUG: CrystalHD: SetDropState... 0
18:30:59 T:51430912 M: 11358208   DEBUG: CrystalHD: SetDropState... 1
18:30:59 T:51430912 M: 11358208   DEBUG: CrystalHD: SetDropState... 0
18:30:59 T:51430912 M: 11358208   DEBUG: CrystalHD: SetDropState... 1
18:30:59 T:53348352 M: 11415552 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue
18:31:00 T:51430912 M: 11415552   DEBUG: CrystalHD: SetDropState... 0
18:31:00 T:53348352 M: 11415552 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue
18:31:00 T:51430912 M: 11415552   DEBUG: CrystalHD: SetDropState... 1
18:31:00 T:53348352 M: 11370496 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue
18:31:00 T:51430912 M: 11370496   DEBUG: CrystalHD: SetDropState... 0
18:31:00 T:53348352 M: 11370496 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue
18:31:00 T:51430912 M: 11370496   DEBUG: CrystalHD: SetDropState... 1
18:31:00 T:51430912 M: 11370496   DEBUG: CrystalHD: SetDropState... 0
18:31:00 T:53348352 M: 11485184 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue
18:31:00 T:51430912 M: 11485184   DEBUG: CrystalHD: SetDropState... 1
18:31:01 T:51430912 M: 11485184   DEBUG: CrystalHD: SetDropState... 0
18:31:01 T:53348352 M: 11485184 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue
18:31:01 T:51430912 M: 11485184   DEBUG: CrystalHD: SetDropState... 1
18:31:01 T:53348352 M: 11608064 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue
18:31:01 T:51430912 M: 11608064   DEBUG: CrystalHD: SetDropState... 0
18:31:01 T:51430912 M: 11608064   DEBUG: CrystalHD: SetDropState... 1
18:31:01 T:53348352 M: 11583488 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue
18:31:01 T:51430912 M: 11702272   DEBUG: CrystalHD: SetDropState... 0
18:31:02 T:51430912 M: 11821056   DEBUG: CrystalHD: SetDropState... 1
18:31:02 T:53348352 M: 11755520 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue
18:31:02 T:51430912 M: 11821056   DEBUG: CrystalHD: SetDropState... 0
18:31:02 T:52412416 M: 11902976   DEBUG: CoreAudioRenderer::Pause: Pausing Playback.
18:31:02 T:52412416 M: 11902976   DEBUG: CCoreAudioRenderer::OnRender: Buffer underrun.
18:31:02 T:53348352 M: 11898880   DEBUG: CoreAudioRenderer::Resume: Resuming Playback.
18:31:02 T:53348352 M: 11886592 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue
18:31:02 T:51430912 M: 11886592   DEBUG: CrystalHD: SetDropState... 1
18:31:02 T:53348352 M: 11874304   DEBUG: CDVDPlayerAudio:: Discontinuty - was:22243296.170918, should be:22231404.802131, error:-11891.368787
18:31:02 T:53348352 M: 11997184 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue
18:31:02 T:51430912 M: 11268096   DEBUG: CrystalHD: SetDropState... 0
18:31:02 T:53490688 M: 11190272   DEBUG: CoreAudioRenderer::Pause: Pausing Playback.
18:31:02 T:53490688 M: 11190272   DEBUG: CCoreAudioRenderer::OnRender: Buffer underrun.
^C
-bash-2.05b$



- davilla - 2010-01-07

Jimmer Wrote:This maybe slightly off-topic (although would help me get on topic...)

If I try to delete ppc and build for i386 alone, then I get other architecture errors. Can I build just for ppc, or will I have problems later compiling XBMC for i386 for the AppleTV?

Sorry if this is a dumb question, but I've seen other people having this problem compiling ncurses on PPC using macports, but no one seems to have a solution! Help!

Jim

Cross-building xbmc is not supported, sorry. The build system is just not designed for that.


- davilla - 2010-01-07

WeakATV Wrote:If it helps at all, this is what I get when I play a 1080p video that runs at 10fps

try a ff .


- fredaroony - 2010-01-07

I must have done something wrong when compiling the driver because I get this.

Code:
10:45:07 T:2684407808 M: 27897856   DEBUG: SECTION:LoadDLL(libcrystalhd.dylib)
10:45:07 T:2684407808 M: 27877376   DEBUG: Loading: libcrystalhd.dylib
10:45:07 T:2684407808 M: 27512832   ERROR: Unable to load libcrystalhd.dylib, reason: dlopen(libcrystalhd.dylib, 1): no suitable image found.  Did find:
                                                /usr/lib/libcrystalhd.dylib: mach-o, but wrong architecture
10:45:07 T:2684407808 M: 27512832   DEBUG: Dll libcrystalhd.dylib was not found in path
10:45:07 T:2684407808 M: 27512832    INFO: CrystalHD: broadcom crystal hd not found
10:45:07 T:2684407808 M: 27512832  NOTICE: initialize done



- Jimmer - 2010-01-07

davilla Wrote:Cross-building xbmc is not supported, sorry. The build system is just not designed for that.

No This makes Jimmer sad!

Just have to wait for an official build....

Jim