PDA

View Full Version : [MAC] XBMC_HOME / Runtime


jeremyhu
2009-01-09, 04:39
The OSX Compilation HOWTO just walks us through building the binary and says "Set the XBMC_HOME environment variable to point to a runtime environment (a good one is the directory inside XBMC.app, namely XBMC.app/Content/Resources/XBMC)"

Where can an up to date runtime environment be obtained or how can it be built?

Yes, I know it's in the 8.10 dmg. I want to know how *THAT* runtime got packaged, since I'd like to replicate it in MacPorts.

Thanks.

jmarshall
2009-01-09, 05:11
Actually, you can just set it to the SVN working directory and it'll be just fine - that's how I run it.

I'll leave it to d4rk or davilla to answer about the packaging.

Cheers,
Jonathan

davilla
2009-01-09, 09:11
The OSX Compilation HOWTO just walks us through building the binary and says "Set the XBMC_HOME environment variable to point to a runtime environment (a good one is the directory inside XBMC.app, namely XBMC.app/Content/Resources/XBMC)"

Where can an up to date runtime environment be obtained or how can it be built?

Yes, I know it's in the 8.10 dmg. I want to know how *THAT* runtime got packaged, since I'd like to replicate it in MacPorts.

Thanks.

if you look at the xcode project you will see several targets.

configure
build python
build libraries
build XBMCHelper
build XBMCTex
build skins
XBMC.app

The first two will be built when XBMC is built. The rest will also need to be built. The last "XBMC.app" makes the app.

There are a few things missing as they are post build packaging steps for skins and such. d4rk will have to fill in here.

jeremyhu
2009-01-10, 03:15
(sorry, autoconf is more my forte... I don't use xcode much... I notice that the autoconf approach doesn't work out of the box on OSX though...)

When I build all the projects, xcodebuild constantly increases in memory usage until malloc() fails and it bus errors...

At that time, it had a child process (which was orphaned and still running) for a bourne script that is doing install_name_tool magic on the executables. That script had been running for 4-5 hours... and id did have some 'echo Processing XXXXX' in it, but I didn't see the output. Is there an option for xcodebuild that I need to set to see the output of this script and maybe get a hint as to what's going on?


building XBMCTex
g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DUSE_SDL -D_LINUX -I. -I../../guilib -I../../xbmc -I../../xbmc/linux/ -I../../xbmc/utils -I/opt/local/include -c -o AnimatedGif.o AnimatedGif.cpp
g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DUSE_SDL -D_LINUX -I. -I../../guilib -I../../xbmc -I../../xbmc/linux/ -I../../xbmc/utils -I/opt/local/include -c -o Bundler.o Bundler.cpp
g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DUSE_SDL -D_LINUX -I. -I../../guilib -I../../xbmc -I../../xbmc/linux/ -I../../xbmc/utils -I/opt/local/include -c -o SurfaceSDL.o SurfaceSDL.cpp
g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DUSE_SDL -D_LINUX -I. -I../../guilib -I../../xbmc -I../../xbmc/linux/ -I../../xbmc/utils -I/opt/local/include -c -o XBMCTex.o XBMCTex.cpp
g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DUSE_SDL -D_LINUX -I. -I../../guilib -I../../xbmc -I../../xbmc/linux/ -I../../xbmc/utils -I/opt/local/include -c -o xbox.o xbox.cpp
g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DUSE_SDL -D_LINUX -I. -I../../guilib -I../../xbmc -I../../xbmc/linux/ -I../../xbmc/utils -I/opt/local/include -c -o xwinapi.o xwinapi.cpp
g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DUSE_SDL -D_LINUX -I. -I../../guilib -I../../xbmc -I../../xbmc/linux/ -I../../xbmc/utils -I/opt/local/include -c -o XFileUtils.o XFileUtils.cpp
g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DUSE_SDL -D_LINUX -I. -I../../guilib -I../../xbmc -I../../xbmc/linux/ -I../../xbmc/utils -I/opt/local/include -c -o XHandle.o XHandle.cpp
g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DUSE_SDL -D_LINUX -I. -I../../guilib -I../../xbmc -I../../xbmc/linux/ -I../../xbmc/utils -I/opt/local/include -c -o XTimeUtils.o XTimeUtils.cpp
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -DUSE_SDL -D_LINUX -I. -I../../guilib -I../../xbmc -I../../xbmc/linux/ -I../../xbmc/utils -I/opt/local/include -c -o sha.o sha.c
g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 AnimatedGif.o Bundler.o SurfaceSDL.o XBMCTex.o xbox.o xwinapi.o XFileUtils.o XHandle.o XTimeUtils.o sha.o -L/opt/local/lib -lSDLmain -framework Foundation -framework Cocoa -lSDL -lSDL_image -llzo -o XBMCTex

xcodebuild(18875,0xb0196000) malloc: *** mmap(size=2097152) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
xcodebuild(18875,0xb0196000) malloc: *** mmap(size=2097152) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
xcodebuild(18875,0xb0196000) malloc: *** mmap(size=2097152) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
sh: line 1: 18875 Bus error xcodebuild -project XBMC.xcodeproj -alltargets -configuration Debug build OBJROOT=build/ SYMROOT=build/ -parallelizeTargets
^C

davilla
2009-01-10, 04:41
you are in uncharted territory :) I build from XCode itself and not from the command-line.

install_name_tool is from the target XBMC.app. Open the XCode project and right-click on the run script for that target. That will show the script.

you might want to build the targets one at a time. There is order dependencies. XBMC.app is the very last thing you want to do.

I'll admit, the XCode project is a real hack, been working on trying to fix it up but it's difficult with all the internal/external libs. This weekend, I'm starting an attempt to get the configure/make command-line working.

jeremyhu
2009-01-10, 07:21
Ok, so it looks like -alltargets isn't good... it ends up trying to build the 'python clean' target after XBMC.app (it seems odd that there is a 'build' target to 'clean' the python build... but I'm guessing there's some reason for it)...

I'm trying now with just the XBCM.app target and got rid of all the install_name_tool foo in the XBMC.app target since we don't really need that magic for macports (still, it'd be nice to know why it was blowing up...

davilla
2009-01-10, 07:42
Ok, so it looks like -alltargets isn't good... it ends up trying to build the 'python clean' target after XBMC.app (it seems odd that there is a 'build' target to 'clean' the python build... but I'm guessing there's some reason for it)...


run scripts in XCode do not get the clean message :) bug in XCode so you have to do it manually.

You never answered my previous question. Are you building under MacPorts 1.6.0 or a later version?

jeremyhu
2009-01-10, 08:32
I'm using HEAD (which isn't much different than 1.7.0).

jeremyhu
2009-01-10, 09:46
Here's a list of all files not in XBMC.app after building the XBMC.app target that were found in the XBMC.app off the distributed dmg.

http://people.freedesktop.org/~jeremyhu/XBMC.missing.txt

jeremyhu
2009-01-10, 11:37
Here's a list of all files not in XBMC.app after building the XBMC.app target that were found in the XBMC.app off the distributed dmg.

http://people.freedesktop.org/~jeremyhu/XBMC.missing.txt

Atleast for some of these it looks like:

1) XBMCHelper needs to be added as a dependency to XBMC.app in the xcode project
2) XBMC.app target needs to copy the visualizations but isn't. Where are the rest of those plugins coming from?

davilla
2009-01-10, 18:11
Atleast for some of these it looks like:

1) XBMCHelper needs to be added as a dependency to XBMC.app in the xcode project
2) XBMC.app target needs to copy the visualizations but isn't. Where are the rest of those plugins coming from?

They don't live in the XBMC svn but in the plugin svn. They get qualified for release code then merged in the packaging for release builds.

The XCode project was never designed for building a complete packaged version of XBMC. That's its main problem and is due to the legacy developers being extremely slack. You should have seen it before I started making changes :)

jeremyhu
2009-01-11, 01:10
They don't live in the XBMC svn but in the plugin svn. They get qualified for release code then merged in the packaging for release builds.

The XCode project was never designed for building a complete packaged version of XBMC. That's its main problem and is due to the legacy developers being extremely slack. You should have seen it before I started making changes :)

Well I've got a Portfile that is almost there. There are just a few problems:
1) I'm doing 'svn extract ...' to get the source, but we need a tarball for it to be merged into MacPorts... If necessary, I'll tarball up my own svn snapshot, but I'd prefer something more official.

2) I'm not building anything in 'extras' yet.

3) XBMCHelper is missing. How is this built?

davilla
2009-01-11, 01:27
Well I've got a Portfile that is almost there. There are just a few problems:
1) I'm doing 'svn extract ...' to get the source, but we need a tarball for it to be merged into MacPorts... If necessary, I'll tarball up my own svn snapshot, but I'd prefer something more official.


2) I'm not building anything in 'extras' yet.

3) XBMCHelper is missing. How is this built?

1) depends on what you want.

http://downloads.sourceforge.net/xbmc/XBMC-8.10.src.tar.gz?modtime=1226689959&big_mirror=0

is the official atlantis release but OSX had a bug fix which can be pulled from

http://xbmc.svn.sourceforge.net/viewvc/xbmc/branches/8.10_Atlantis-linux-osx-win32/XBMC.tar.gz?view=tar

3) There's a target in the xcode project for XBMCHelper. It does


export MACOSX_DEPLOYMENT_TARGET=10.4
cd "$SRCROOT"/tools/EventClients/Clients/AppleRemote
make clean
make

cp -f XBMCHelper "$SRCROOT"/

jeremyhu
2009-01-11, 02:40
Thanks, I didn't realize there tarballs from the sf.net site. http://xbmc.org/download just mentions svn for source...

XBMC.tar.gz ugg... tarballs should have versions in the filename. That's not very distributable... =/

I'll just use the official Atlantis release and make a diff between it and the other taball...

as for XBMCHelper:


Error: Target org.macports.build returned: shell command "cd "/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_xbmc/work/XBMC-16965" && xcodebuild -project XBMC.xcodeproj -target "XBMCHelper" -configuration Release build OBJROOT=build/ SYMROOT=build/ -parallelizeTargets" returned error 1
Command output: xcodebuild: Warning: no valid targets in target list. Building default target.
Unknown target: XBMCHelper

jeremyhu
2009-01-11, 02:59
Ah nevermind... I should've checked that URL was just to sf's svn tarball generator.

I'm hoping the tags mean what I think they mean, so I just need to:

svn diff http://xbmc.svn.sourceforge.net/svnroot/xbmc/tags/8.10_Atlantis-linux-osx-win32 http://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/8.10_Atlantis-linux-osx-win32


And I'm hoping that the XBMCHelper target is in the 8.10_Atlantis-linux-osx-win32 branch... I've been working off the linuxport branch...

davilla
2009-01-11, 03:17
Ah nevermind... I should've checked that URL was just to sf's svn tarball generator.

I'm hoping the tags mean what I think they mean, so I just need to:

svn diff http://xbmc.svn.sourceforge.net/svnroot/xbmc/tags/8.10_Atlantis-linux-osx-win32 http://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/8.10_Atlantis-linux-osx-win32


And I'm hoping that the XBMCHelper target is in the 8.10_Atlantis-linux-osx-win32 branch... I've been working off the linuxport branch...

linuxport is linux/osx/win32. Tags are what you think. Once tagged, never changed.

the target is "build XBMCHelper". It was named that to help new users.

jeremyhu
2009-01-11, 03:54
I'm running into a problem building 8.10bf1 (the 8.10 release tarball with the patch from the above 'svn diff' command applied). I did not have this problem when using the linuxport r16965

Multiple files are failing to compile due to not finding pyconfig.h. I'm doing the following:

1) extract the 8.10.src tarball
2) Apply this patch: svn diff http://xbmc.svn.sourceforge.net/svnroot/xbmc/tags/8.10_Atlantis-linux-osx-win32 http://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/8.10_Atlantis-linux-osx-win32
3) xcodebuild -project XBMC.xcodeproj -target "XBMC.app" -configuration Release build OBJROOT=build/

As a side note, the "build XBMCHelper" target should be a dependency of the XBMC.app target.

Here's a snippet of one such failure:


CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/i386/GUIWindowLoginScreen.o /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/GUIWindowLoginScreen.cpp normal i386 c++ com.apple.compilers.gcc.4_0
cd /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC
/Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -mdynamic-no-pic -Wreturn-type -Wunused-variable -D_DEBUG -D_LINUX -D_REENTRANT -D_FILE_DEFINED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAS_SDL_JOYSTICK "-DVERSION_STRING=\"8.10 bf1:ATLANTIS\"" -isysroot /Developer/SDKs/MacOSX10.4u.sdk -funroll-loops -ftree-vectorize -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/XBMC.build/Release/XBMC.build/XBMC.hmap -F/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/Release -I/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/Release/include -Iguilib -Ixbmc -Ixbmc/linux -Ixbmc/cores -Ixbmc/cores/dvdplayer -Ixbmc/cores/ffmpeg -Ixbmc/utils -Ixbmc/lib -Ixbmc/lib/libRTMP -Ixbmc/lib/libportaudio -Ixbmc/lib/libPython/Python/Include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/mysql5 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -I/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/XBMC.build/Release/XBMC.build/DerivedSources -c /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/GUIWindowLoginScreen.cpp -o /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/XBMC.build/Release/XBMC.build/Objects-normal/i386/GUIWindowLoginScreen.o
In file included from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/XBPyThread.h:25,
from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/XBPython.h:24,
from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/GUIWindowLoginScreen.cpp:30:
/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/Python/Include/Python.h:8:22: error: pyconfig.h: No such file or directory
In file included from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/Python/Include/Python.h:55,
from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/XBPyThread.h:25,
from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/XBPython.h:24,
from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/GUIWindowLoginScreen.cpp:30:
/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/Python/Include/pyport.h:616:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

davilla
2009-01-11, 04:00
I'm running into a problem building 8.10bf1 (the 8.10 release tarball with the patch from the above 'svn diff' command applied). I did not have this problem when using the linuxport r16965

Multiple files are failing to compile due to not finding pyconfig.h. I'm doing the following:

1) extract the 8.10.src tarball
2) Apply this patch: svn diff http://xbmc.svn.sourceforge.net/svnroot/xbmc/tags/8.10_Atlantis-linux-osx-win32 http://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/8.10_Atlantis-linux-osx-win32
3) xcodebuild -project XBMC.xcodeproj -target "XBMC.app" -configuration Release build OBJROOT=build/

As a side note, the "build XBMCHelper" target should be a dependency of the XBMC.app target.

Here's a snippet of one such failure:


CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/i386/GUIWindowLoginScreen.o /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/GUIWindowLoginScreen.cpp normal i386 c++ com.apple.compilers.gcc.4_0
cd /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC
/Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -mdynamic-no-pic -Wreturn-type -Wunused-variable -D_DEBUG -D_LINUX -D_REENTRANT -D_FILE_DEFINED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAS_SDL_JOYSTICK "-DVERSION_STRING=\"8.10 bf1:ATLANTIS\"" -isysroot /Developer/SDKs/MacOSX10.4u.sdk -funroll-loops -ftree-vectorize -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/XBMC.build/Release/XBMC.build/XBMC.hmap -F/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/Release -I/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/Release/include -Iguilib -Ixbmc -Ixbmc/linux -Ixbmc/cores -Ixbmc/cores/dvdplayer -Ixbmc/cores/ffmpeg -Ixbmc/utils -Ixbmc/lib -Ixbmc/lib/libRTMP -Ixbmc/lib/libportaudio -Ixbmc/lib/libPython/Python/Include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/mysql5 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -I/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/XBMC.build/Release/XBMC.build/DerivedSources -c /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/GUIWindowLoginScreen.cpp -o /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/XBMC.build/Release/XBMC.build/Objects-normal/i386/GUIWindowLoginScreen.o
In file included from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/XBPyThread.h:25,
from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/XBPython.h:24,
from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/GUIWindowLoginScreen.cpp:30:
/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/Python/Include/Python.h:8:22: error: pyconfig.h: No such file or directory
In file included from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/Python/Include/Python.h:55,
from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/XBPyThread.h:25,
from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/XBPython.h:24,
from /opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/GUIWindowLoginScreen.cpp:30:
/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/xbmc/lib/libPython/Python/Include/pyport.h:616:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."


Are you doing the xcode build of python? It does a configure with makes pyconfig.h

jeremyhu
2009-01-11, 04:12
Yep... that was it. The 'build python' target failed to build, but xcode continued anyways:


setenv ZERO_LINK NO
/bin/sh -c "\"/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/XBMC.build/Release/build python.build/Script-882630930E1B6FAD00DC9524.sh\""
/opt/macports-macports_x11/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC/build/XBMC.build/Release/build python.build/Script-882630930E1B6FAD00DC9524.sh: line 9: ./configure: Permission denied
sed: pyconfig.h: No such file or directory
sed: pyconfig.h: No such file or directory
sed: pyconfig.h: No such file or directory
sed: pyconfig.h: No such file or directory
sed: pyconfig.h: No such file or directory
sed: pyconfig.h: No such file or directory
sed: pyconfig.h: No such file or directory
cp: pyconfig.h: No such file or directory
make: *** No rule to make target `clean'. Stop.
make: *** No targets specified and no makefile found. Stop.
ar: ../libpython2.4.a: No such file or directory
i686-apple-darwin9-gcc-4.0.1: tmp/*.o: No such file or directory
i686-apple-darwin9-gcc-4.0.1: no input files
cp: build/lib.macosx-10.4-i386-2.4/*.so: No such file or directory
adding: __future__.py (stored 0%)
adding: __phello__.foo.py (stored 0%)


configure and install-sh in xbmc/lib/libPython/Python are not executable in the tarball for some reason...

jeremyhu
2009-01-11, 04:22
Actually, yeah... that entire tarball has bad permissions... who generated it? You should roll a new tarball since it's not usable:


-rw-r--r-- 1 root admin 416608 Nov 9 19:58 configure
-rw-r--r-- 1 root admin 13184 Nov 9 19:58 install-sh
-rw-r--r-- 1 root admin 66035 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/ffmpeg/configure
-rw-r--r-- 1 root admin 9233 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libDVDCSS/autotools/install-sh
-rw-r--r-- 1 root admin 746824 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libDVDCSS/configure
-rw-r--r-- 1 root admin 5599 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/liba52/autotools/install-sh
-rw-r--r-- 1 root admin 330570 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/liba52/configure
-rw-r--r-- 1 root admin 7122 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libdts/autotools/install-sh
-rw-r--r-- 1 root admin 290954 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libdts/configure
-rw-r--r-- 1 root admin 741922 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libdvdnav/configure
-rw-r--r-- 1 root admin 8986 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libdvdnav/install-sh
-rw-r--r-- 1 root admin 800774 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libfaad2/configure
-rw-r--r-- 1 root admin 13620 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libfaad2/install-sh
-rw-r--r-- 1 root admin 732223 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libmad/configure
-rw-r--r-- 1 root admin 6315 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libmad/install-sh
-rw-r--r-- 1 root admin 13620 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libmpeg2/.auto/install-sh
-rw-r--r-- 1 root admin 903204 Nov 9 19:58 xbmc/cores/dvdplayer/Codecs/libmpeg2/configure
-rw-r--r-- 1 root admin 732222 Nov 9 19:58 xbmc/cores/paplayer/MP3Codec/libmad-0.15.1b/configure
-rw-r--r-- 1 root admin 6315 Nov 9 19:58 xbmc/cores/paplayer/MP3Codec/libmad-0.15.1b/install-sh
-rw-r--r-- 1 root admin 9233 Nov 9 19:58 xbmc/cores/paplayer/MPCCodec/config/install-sh
-rw-r--r-- 1 root admin 774851 Nov 9 19:58 xbmc/cores/paplayer/MPCCodec/configure
-rw-r--r-- 1 root admin 9505 Nov 9 19:58 xbmc/cores/paplayer/SIDCodec/libsidplay/unix/install-sh
-rw-r--r-- 1 root admin 810778 Nov 9 19:58 xbmc/cores/paplayer/flac-1.2.1/configure
-rw-r--r-- 1 root admin 7122 Nov 9 19:58 xbmc/cores/paplayer/flac-1.2.1/install-sh
-rw-r--r-- 1 root admin 719151 Nov 9 19:58 xbmc/cores/paplayer/vorbisfile/libvorbis/configure
-rw-r--r-- 1 root admin 13184 Nov 9 19:58 xbmc/cores/paplayer/vorbisfile/libvorbis/install-sh
-rw-r--r-- 1 root admin 729820 Nov 9 19:58 xbmc/cores/paplayer/vorbisfile/ogg/configure
-rw-r--r-- 1 root admin 9233 Nov 9 19:58 xbmc/cores/paplayer/vorbisfile/ogg/install-sh
-rw-r--r-- 1 root admin 13167 Nov 9 19:58 xbmc/lib/cximage-6.0/zlib/configure
-rw-r--r-- 1 root admin 600546 Nov 9 19:58 xbmc/lib/libPython/Python/configure
-rw-r--r-- 1 root admin 7122 Nov 9 19:58 xbmc/lib/libPython/Python/install-sh
-rw-r--r-- 1 root admin 809124 Nov 9 19:58 xbmc/lib/libass/configure
-rw-r--r-- 1 root admin 13184 Nov 9 19:58 xbmc/lib/libass/install-sh
-rw-r--r-- 1 root admin 863134 Nov 9 19:58 xbmc/lib/libcdio/libcdio/configure
-rw-r--r-- 1 root admin 13184 Nov 9 19:58 xbmc/lib/libcdio/libcdio/install-sh
-rw-r--r-- 1 root admin 1299982 Nov 9 19:58 xbmc/lib/libcurl/libcurl_win32/curl-7.19.0/configure
-rw-r--r-- 1 root admin 5584 Nov 9 19:58 xbmc/lib/libcurl/libcurl_win32/curl-7.19.0/install-sh
-rw-r--r-- 1 root admin 236510 Nov 9 19:58 xbmc/lib/libcurl/libcurl_win32/yassl-1.9.2/configure
-rw-r--r-- 1 root admin 13184 Nov 9 19:58 xbmc/lib/libcurl/libcurl_win32/yassl-1.9.2/install-sh
-rw-r--r-- 1 root admin 13184 Nov 9 19:58 xbmc/lib/libcurl/libcurl_win32/yassl-1.9.2/taocrypt/install-sh
-rw-r--r-- 1 root admin 692639 Nov 9 19:58 xbmc/lib/libid3tag/libid3tag/configure
-rw-r--r-- 1 root admin 6315 Nov 9 19:58 xbmc/lib/libid3tag/libid3tag/install-sh
-rw-r--r-- 1 root admin 13626 Nov 9 19:58 xbmc/lib/libid3tag/zlib/configure
-rw-r--r-- 1 root admin 583855 Nov 9 19:58 xbmc/screensavers/rsxs-0.9/configure
-rw-r--r-- 1 root admin 9233 Nov 9 19:58 xbmc/screensavers/rsxs-0.9/install-sh
-rw-r--r-- 1 root admin 754607 Nov 9 19:58 xbmc/visualizations/Goom/goom2k4-0/configure
-rw-r--r-- 1 root admin 123469 Nov 9 19:58 xbmc/visualizations/Goom/goom2k4-0/gtk-gui-devel/configure
-rw-r--r-- 1 root admin 5561 Nov 9 19:58 xbmc/visualizations/Goom/goom2k4-0/gtk-gui-devel/install-sh
-rw-r--r-- 1 root admin 5598 Nov 9 19:58 xbmc/visualizations/Goom/goom2k4-0/install-sh

jeremyhu
2009-01-11, 04:31
There are too many files to hand pick:

XBMC-16965 $ find . -type f -perm 755 | wc -l
782


And some filenames like ./visualisations/projectM/Geiss & Sperl - Cruzin' (Moody).prjm
make me want to shoot someone in the head for making scripting difficult.

davilla
2009-01-11, 04:32
There are too many files to hand pick:

XBMC-16965 $ find . -type f -perm 755 | wc -l
782


And some filenames like ./visualisations/projectM/Geiss & Sperl - Cruzin' (Moody).prjm
make me want to shoot someone in the head for making scripting difficult.

:)

davilla
2009-01-11, 04:35
Actually, yeah... that entire tarball has bad permissions... who generated it? You should roll a new tarball since it's not usable:


Not a clue who generated it. It might be better to follow through with your first idea and roll a tar ball from svn.

jeremyhu
2009-01-11, 08:30
I ended up just doing a massive foreach / chmod on them... I've got an issue with the XBMCHelper still:


---> Building XBMC
xcodebuild: Error: the project name build XBMCHelper does not have a valid extension.
Error: Target org.macports.build returned: shell command "cd "/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC" && xcodebuild -project "build XBMCHelper" -target "" -configuration Release build OBJROOT=build/ SYMROOT=build/ -parallelizeTargets" returned error 1
Command output: xcodebuild: Error: the project name build XBMCHelper does not have a valid extension.

Warning: the following items did not execute (for XBMC): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

davilla
2009-01-11, 08:53
I ended up just doing a massive foreach / chmod on them... I've got an issue with the XBMCHelper still:


---> Building XBMC
xcodebuild: Error: the project name build XBMCHelper does not have a valid extension.
Error: Target org.macports.build returned: shell command "cd "/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_XBMC/work/XBMC" && xcodebuild -project "build XBMCHelper" -target "" -configuration Release build OBJROOT=build/ SYMROOT=build/ -parallelizeTargets" returned error 1
Command output: xcodebuild: Error: the project name build XBMCHelper does not have a valid extension.

Warning: the following items did not execute (for XBMC): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.


single quotes around 'build XBMCHelper' maybe

jeremyhu
2009-01-11, 09:46
single quotes around 'build XBMCHelper' maybe

No... not being an idiot would be what helps. I put the build target as the -project ;p

davilla
2009-01-11, 21:14
No... not being an idiot would be what helps. I put the build target as the -project ;p

haha, been there :)