[MAC] Compiling on OSX Lion / Xcode 4.1` - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: [MAC] Compiling on OSX Lion / Xcode 4.1` (/showthread.php?tid=107126) |
[MAC] Compiling on OSX Lion / Xcode 4.1` - Memphiz - 2012-08-04 its the after buildstep which fails. You can edit it in the gui under the target settings. Play with it until it works on the commandline (its a simple shell script which just sets a symlink from the build destination to the buildfolder which was used on xcode 3). RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - jingai - 2012-08-05 (2012-08-04, 12:56)Memphiz Wrote: its the after buildstep which fails. You can edit it in the gui under the target settings. Play with it until it works on the commandline (its a simple shell script which just sets a symlink from the build destination to the buildfolder which was used on xcode 3). This works one time after using the GUI to build it, but the script again messes up the symlinks in the build folder, which causes the subsequent build to fail. It also means that the dmgmaker script doesn't work because the links are bad (they are links that link to themselves). RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - i5Js - 2012-08-06 Sorry about the delay, yes! Here only work whith GUI, with command line throw that error. EDIT: With the last pull, the error still happening. BR RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - Memphiz - 2012-08-06 Have fixed it i guess. If you switch from gui build to commandline you have to rm the links in build/Debug and build/Release ... the other way around is fine ... (that said - only with the latest commits from me of course). RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - jingai - 2012-08-07 Thanks Memphiz, that worked The only issue left is that dmgmaker.pl script is trying to package up the Debug version even if I specified "Release" on the xcodebuild command line. This is because it finds -D_DEBUG in $CFLAGS in the top-level Makefile.include. I can work around that obviously, but the script should probably use some other way of determining which one to package up, since -D_DEBUG is specified regardless of which you're building. RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - davilla - 2012-08-07 dmgmaker.pl is driven by how you configure xbmc in tools/darwin/depends/xbmx.Makefile Pass the right flag and it will compile release. This will not be changed. RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - jingai - 2012-08-07 Got it. Thanks guys for the help! If it helps anyone else, here is the script I'm using to build it all: Code: #! /bin/sh -x RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - davilla - 2012-08-07 no silly XBMC_DARWIN_RELEASE=Release Make -C tools/darwin/depends/xbmc RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - i5Js - 2012-08-07 (2012-08-06, 23:58)Memphiz Wrote: Have fixed it i guess. If you switch from gui build to commandline you have to rm the links in build/Debug and build/Release ... the other way around is fine ... (that said - only with the latest commits from me of course). I'm sorry, but I don't understand what I have to remove, and where RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - davilla - 2012-08-07 XBMC_DARWIN_RELEASE is an environment var that the makefile looks for export XBMC_DARWIN_RELEASE=Release make -C tools/darwin/depends/xbmc or you can just add --disable-debug to xbmc's configure. RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - jingai - 2012-08-07 (2012-08-07, 16:30)davilla Wrote: no silly I figured it out Posted that before I even looked at it.. sorry lol. Thanks again! (2012-08-07, 17:01)i5Js Wrote:(2012-08-06, 23:58)Memphiz Wrote: Have fixed it i guess. If you switch from gui build to commandline you have to rm the links in build/Debug and build/Release ... the other way around is fine ... (that said - only with the latest commits from me of course). Just blow away everything in the build/ directory: % rm -rf build/* Then pull in the latest changes from github and build again. RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - i5Js - 2012-08-07 Thanks Davilla, Memphiz and Jingai, It worked!!! [MAC] Compiling on OSX Lion / Xcode 4.1` - Memphiz - 2012-08-07 i want that "m" in my nick for sure - but your welcome. RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - i5Js - 2012-08-08 (2012-08-07, 23:14)Memphiz Wrote: i want that "m" in my nick for sure - but your welcome. Fixed! RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - i5Js - 2012-10-02 Hello again!! new error here Code: kaya:xbmc i5Js$ make -C tools/darwin/depends/xbmc BR |