AppleTV 2 (black) Build XBMC under 10.7.4 / Xcode 4.3

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Cranial Offline
Fan
Posts: 731
Joined: Aug 2008
Reputation: 3
Location: Sydney, Australia
Post: #11
(2012-05-12 15:54)davilla Wrote:  make distclean is the big nuke in depends.

both make clean and make distclean always works, if not, I'd like to see your errors.

I've run make distclean in depends. Then git pull in xbmc.

I get to ./bootstrap and error out with this:

Code:
Making all in man
Updating man page autoreconf.1
PATH="../tests:../build-aux:$PATH"; \
    export PATH; \
    /bin/sh /Users/lowey/Source/xbmc/tools/darwin/depends/autoconf/autoconf-2.63/build-aux/missing --run help2man \
        --include=autoreconf.x \
        --include=./common.x \
        --source='GNU Autoconf 2.63' \
        --output=autoreconf.1.t `echo 'autoreconf' | sed 's,.*/,,'`
/Users/lowey/Source/xbmc/tools/darwin/depends/autoconf/autoconf-2.63/build-aux/missing: line 52: help2man: command not found
WARNING: `help2man' is missing on your system.  You should only need it if
     you modified a dependency of a manual page.  You may need the
     `Help2man' package in order for those modifications to take
     effect.  You can get `Help2man' from any GNU archive site.
make[4]: *** [autoreconf.1] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [autoconf-2.63/bin/autoconf] Error 2
make: *** [/Users/Shared/xbmc-depends/toolchain/bin/autoconf] Error 2
./bootstrap: line 17: autoconf: command not found

I'm a bit lost now?

If I install autoconf, automake etc. myself I get a lot further but error out during make xcode_depends (sorry, haven't got the error saved, it take a while to re run all of this).

*edit*

With autoconf already installed, I get this far:

Code:
checking for a thread-safe mkdir -p... ../build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for strip... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/strip
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org.
checking for gcc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... configure: error: cannot compute suffix of executables: cannot compile and link
See `config.log' for more details.
configure: error: ./configure failed for gettext-tools
make[1]: *** [gettext-0.17] Error 1
make: *** [gettext] Error 2

I'm sure the issues are somehow my fault with all the uneducated messing around I've been doing on my system.

*edit 2*

Noticed some related commits have just gone through, I'll make distclean and start again.
(This post was last modified: 2012-05-13 08:32 by Cranial.)
find quote
Cranial Offline
Fan
Posts: 731
Joined: Aug 2008
Reputation: 3
Location: Sydney, Australia
Post: #12
Okay, dumped my install of autoconf, automate, m4 and libtool.

Ran distclean on depends.

Git pull.

First run of of ./bootstrap errors out on autoconf/help2man.

Ran ./bootstrap again and all good.

configure runs fine.

make errors out with this:

Code:
tar xf /Users/Shared/xbmc-depends/tarballs/libcdio-0.82.tar.gz

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
make[1]: *** [libcdio-0.82] Error 2
make: *** [libcdio] Error 2
find quote
g-off Offline
Fan
Posts: 635
Joined: Aug 2011
Reputation: 3
Post: #13
I may be pointing out the obvious here but maybe tarball is broken and needs to be downloaded again?
Try doing a
tar tvf /Users/Shared/xbmc-depends/tarballs/libcdio-0.82.tar.gz
and see if it freaks out
find quote
Cranial Offline
Fan
Posts: 731
Joined: Aug 2008
Reputation: 3
Location: Sydney, Australia
Post: #14
I'm such a dumbass, I'm sure I'd tried that, but obviously missed it.

Thanks g-off.

Sometimes the obvious isn't that obvious.
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,399
Joined: Feb 2008
Reputation: 58
Post: #15
remember, things are still in flux as we hunt down local differences.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
henke66 Offline
Junior Member
Posts: 46
Joined: May 2012
Reputation: 0
Post: #16
(2012-05-14 05:21)davilla Wrote:  remember, things are still in flux as we hunt down local differences.

Davilla, I really appreciate your effort! I've been strugling to get a working build environment on Lion. However without luck. Supporting xcode 4 i beleive would make it a bit easier.
Would you care to update the instructions in readme.ios with the latest status.

I think this is THE place for sharing it. Then it would also be in sync with the changes in the repo.
Cheers!
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,399
Joined: Feb 2008
Reputation: 58
Post: #17
I have one more change that fixes build of ffmpeg for ios on xcode4. Still running tests before it gets committed. Testing changes with i386/x86-64/arm7 on xcode3 and i386/x86-64/arm7 on xcode4 takes time Smile

README.osx and README.osx will get updated when I feel we can let this out to the masses, until then, it's bleeding edge stuff.

#xbmc-dev on irc.freenode.net is the place for help if you are having problems.


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: 2012-05-14 07:05 by davilla.)
find quote
henke66 Offline
Junior Member
Posts: 46
Joined: May 2012
Reputation: 0
Post: #18
I fully understand! It's just that I'm impatient by natureBig Grin.
I'd love to test the build on my system, OSX 10.7.3 (running in a virtual box VM).
Could you share the baseline of the toolchain needed (as you see it now)? I.e. paste a draft version of the instructions here in the thread and me and others can test it.
What is needed except Xcode 4 in terms of tools?
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,684
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #19
You do the same what you've done before. So basically what the readme states, except you open the xcode project with xcode4 after building the deps and xcode_depends.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Cranial Offline
Fan
Posts: 731
Joined: Aug 2008
Reputation: 3
Location: Sydney, Australia
Post: #20
Getting further, but new error:

Code:
loweymbp:xbmc lowey$ make xcode_depends
CPP     xbmc/cores/DllLoader/exports/emu_dummy.o
CPP     xbmc/cores/DllLoader/exports/emu_kernel32.o
In file included from /Users/lowey/Source/xbmc/xbmc/linux/PlatformInclude.h:25,
                 from /Users/lowey/Source/xbmc/xbmc/system.h:223,
                 from emu_kernel32.h:26,
                 from emu_kernel32.cpp:22:
/Users/lowey/Source/xbmc/xbmc/linux/PlatformDefs.h:48:29: error: libkern/OSTypes.h: No such file or directory
In file included from /Users/lowey/Source/xbmc/xbmc/linux/PlatformInclude.h:25,
                 from /Users/lowey/Source/xbmc/xbmc/system.h:223,
                 from emu_kernel32.h:26,
                 from emu_kernel32.cpp:22:
/Users/lowey/Source/xbmc/xbmc/linux/PlatformDefs.h:212: error: ‘UInt32’ does not name a type
/Users/lowey/Source/xbmc/xbmc/linux/PlatformDefs.h:225: error: ‘SInt32’ does not name a type
In file included from emu_kernel32.cpp:26:
/Users/lowey/Source/xbmc/xbmc/storage/IoSupport.h:57: error: ‘HRESULT’ does not name a type
/Users/lowey/Source/xbmc/xbmc/storage/IoSupport.h:58: error: ‘HRESULT’ does not name a type
/Users/lowey/Source/xbmc/xbmc/storage/IoSupport.h:59: error: ‘HRESULT’ does not name a type
make[1]: *** [emu_kernel32.o] Error 1
make: *** [xbmc/cores/DllLoader/exports/exports.a] Error 2
find quote
Post Reply