[MAC] Compiling on OSX Lion / Xcode 4.1`

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #61
I'm just asking....
(This post was last modified: 2012-06-04 22:41 by i5Js.)
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,915
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #62
Well if you want to compile for 64bit you have to do everything from the start (but using a configure --with-darwin-osx --with-arch=x86_64 and a ARCHS=x86_64 in the xcodebuild command).

64bit can access > 4 GB RAM. Thats the only massive difference imho (some people state that 64bit code runs faster on 64bit hardware but i wouldn't sign that).

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
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #63
Thanks for your explanation Memphiz.
find quote
barberio Offline
Senior Member
Posts: 118
Joined: Aug 2010
Reputation: 2
Post: #64
(2012-06-05 13:08)Memphiz Wrote:  64bit can access > 4 GB RAM. Thats the only massive difference imho (some people state that 64bit code runs faster on 64bit hardware but i wouldn't sign that).

32bit user-space code can't directly address ranges beyond the 32bit limit. But accessing things like memory that are abstracted by the operating system are fine. (Need to handle an array larger than 4GB in a user space 32 bit program? Partition it, use nested addressing.)

What 64 bit does do is that theoretically all operations that involve arrays all double in speed because of increased bandwidth in the MMX registers. Multimedia decoding usually uses a lot of array operations. In practice the gains are smaller than double, but they do exist.

Incidentally, is any work being done to make the build environment capable of building to both intel archs at the same time to allow for universal binary production without having to have two separate build areas and make the fat binaries by hand?
(This post was last modified: 2012-06-13 00:14 by barberio.)
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,506
Joined: Feb 2008
Reputation: 58
Post: #65
(2012-06-11 11:30)barberio Wrote:  64bit user-space code can't directly address ranges beyond the 32bit limit.

Wrong. Run top on darwin, 64-bit apps have access to a much, much larger virtual memory space. 32-bit apps are limited to a 2GB virtual memory space. You can malloc huge arrays under a 64-bit app, not that it helps XBMC much to create huge arrays...


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
barberio Offline
Senior Member
Posts: 118
Joined: Aug 2010
Reputation: 2
Post: #66
Typo.
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,506
Joined: Feb 2008
Reputation: 58
Post: #67
(2012-06-11 11:30)barberio Wrote:  Incidentally, is any work being done to make the build environment capable of building to both intel archs at the same time to allow for universal binary production without having to have two separate build areas and make the fat binaries by hand?

No, it's would be a pain in the ass with all the depends, specially with python and ffmpeg. It would be easier to wrap a makefile around xbmc/depends build and drive the build from there.

Plus it would be about 2X the size and we already push the size boundary at around 40MBs compressed.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #68
New error with the last nightly:

Code:
/bin/sh -c /Users/i5Js/xbmc/build/XBMC.build/Release/XBMC.build/Script-1D64E5FA157BD742001ACEBE.sh
ln: /Users/i5Js/xbmc/build/Release//XBMC.dSYM: Operation not permitted
Command /bin/sh failed with exit code 1


** BUILD FAILED **


The following build commands failed:
    PhaseScriptExecution genoutputdirlink build/XBMC.build/Release/XBMC.build/Script-1D64E5FA157BD742001ACEBE.sh
(1 failure)

Any help with this?

Thanks,

BR
(This post was last modified: 2012-07-28 19:03 by i5Js.)
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,506
Joined: Feb 2008
Reputation: 58
Post: #69
quit xcode, restart it, clean all, build.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,915
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #70
rm -r /Users/i5Js/xbmc/build/Release/XBMC.dSYM and retry

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
(This post was last modified: 2012-07-28 20:13 by Memphiz.)
find quote
Post Reply