Page 1 of 1

Adventures in compiling on 10.5 PPC-32

Posted: 10 Jun 2010 08:11
by davidfstr
I attempted to build VLC from the 1.0.4 and 1.0.6 releases on Mac OS X 10.5.8 PPC-32 using the instructions on the wiki at http://wiki.videolan.org/OSXCompile#Qui ... _OS_X_10.5.

In both cases (1.0.4 and 1.0.6), I obtained errors along the following lines:

Code: Select all

export MACOSX_DEPLOYMENT_TARGET=10.5 make all-recursive Making all in po Making all in compat /bin/sh ../libtool --tag=CC --mode=compile /Developer/usr/bin/llvm-gcc-4.2 -std=gnu99 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I/Users/davidf/svn/vlc-1.0.6/./extras/contrib/include -DSYS_DARWIN -I/Users/davidf/svn/vlc-1.0.6/./extras/contrib/include -D_INTL_REDIRECT_MACROS -DMACOSX_DEPLOYMENT_TARGET=10.5 -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -MT strndup.lo -MD -MP -MF .deps/strndup.Tpo -c -o strndup.lo strndup.c ../libtool: line 844: X--tag=CC: command not found ../libtool: line 877: libtool: ignoring unknown tag : command not found ../libtool: line 844: X--mode=compile: command not found ../libtool: line 1011: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 1012: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 1155: X/Developer/usr/bin/llvm-gcc-4.2: No such file or directory ../libtool: line 1155: X-std=gnu99: command not found ../libtool: line 1155: X-isysroot: command not found ../libtool: line 1155: X/Developer/SDKs/MacOSX10.5.sdk: No such file or directory ../libtool: line 1155: X-mmacosx-version-min=10.5: command not found ../libtool: line 1155: X-DHAVE_CONFIG_H: command not found ../libtool: line 1155: X-I.: command not found ../libtool: line 1155: X-I..: command not found ../libtool: line 1155: X-I../include: No such file or directory ../libtool: line 1155: X-I../include: No such file or directory ../libtool: line 1155: X-I/Users/davidf/svn/vlc-1.0.6/./extras/contrib/include: No such file or directory ../libtool: line 1155: X-DSYS_DARWIN: command not found ../libtool: line 1155: X-I/Users/davidf/svn/vlc-1.0.6/./extras/contrib/include: No such file or directory ../libtool: line 1155: X-D_INTL_REDIRECT_MACROS: command not found ../libtool: line 1155: X-DMACOSX_DEPLOYMENT_TARGET=10.5: command not found ../libtool: line 1155: X-Wall: command not found ../libtool: line 1155: X-Wextra: command not found ../libtool: line 1155: X-Wsign-compare: command not found ../libtool: line 1155: X-Wundef: command not found ../libtool: line 1155: X-Wpointer-arith: command not found ../libtool: line 1155: X-Wbad-function-cast: command not found ../libtool: line 1155: X-Wcast-align: command not found ../libtool: line 1155: X-Wwrite-strings: command not found ../libtool: line 1155: X-Wmissing-prototypes: command not found ../libtool: line 1155: X-Wvolatile-register-var: command not found ../libtool: line 1155: X-Werror-implicit-function-declaration: command not found ../libtool: line 1155: X-MT: command not found ../libtool: line 1155: Xstrndup.lo: command not found ../libtool: line 1155: X-MD: command not found ../libtool: line 1155: X-MP: command not found ../libtool: line 1155: X-MF: command not found ../libtool: line 1155: X.deps/strndup.Tpo: No such file or directory ../libtool: line 1155: X-c: command not found ../libtool: line 1208: Xstrndup.lo: command not found ../libtool: line 1213: libtool: compile: cannot determine name of library object from `': command not found make[2]: *** [strndup.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
It looked like the problem was in libtool, so I took a closer look at it. Apparently the checked in version of libtool is v1.5.26, so I decided to replace it with the latest v2.2.8. That problem seemed to be solved.

I tried to update the instructions on the wiki at http://wiki.videolan.org/OSXCompile#Qui ... _OS_X_10.5, but I can't seem to edit the page, even after creating an account. Would it make sense to just upgrade the version of libtool in the trunk?

After making it over that hurdle, the scripts tripped up on:

Code: Select all

Making install in test make[6]: Nothing to be done for `install-exec-am'. make[6]: Nothing to be done for `install-data-am'. rm -Rf ./tmp mkdir -p "./tmp/extras/package/macosx" rm -Rf ./VLC.app for i in vlc.xcodeproj Resources README.MacOSX.rtf; do \ cp -R ./extras/package/macosx/$i ./tmp/extras/package/macosx/; \ done REVISION=`git describe --always` && \ cat ./extras/package/macosx/Info.plist | \ sed "s/#REVISION#/$REVISION/g" > ./tmp/extras/package/macosx/Info.plist fatal: Not a git repository (or any of the parent directories): .git make[2]: *** [VLC.app] Error 128 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Why would the build scripts be unable to build outside of a git repository? I assume that the source tarballs are provided standalone under the assumption that they can be built in a standalone fashion.

So I'm stuck at the git-repo-check now. :(

Re: Adventures in compiling on 10.5 PPC-32

Posted: 10 Jun 2010 15:17
by ajmas
Best join the developer mailing list and ask the question there, since you will find an audience with more appropriate knowledge.