<HTML>
<HEAD>
<TITLE>VLC source compilation issues for Mac OS X (Snow Leopard)</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'>Hi all,<BR>
<BR>
I am trying to compile VLC source code for Mac OS X Snow Leopard (10.6.2) on MacBook based on Intel dual-core processor. I am running into several problems from compilation perspective. <BR>
<BR>
My goal is to eventually compile VLCKit for Mac so I can create Cocoa objective-C video viewing app around it. <BR>
<BR>
I initially got the tar ball file for VLC 1.0.4 and started compilation from extras/Contrib directory as directed on <a href="http://wiki.videolan.org/OSXCompile">http://wiki.videolan.org/OSXCompile</a> web site.<BR>
<BR>
Since the 64bit compilation is not guaranteed to work, I am just trying it for 32 bit only for now.<BR>
My process is as follows:<BR>
<BR>
I initially set following environment variables:<BR>
$ export CC=/Developer/usr/bin/llvm-gcc-4.2<BR>
$ export CXX=/Developer/usr/bin/llvm-g++-4.2<BR>
$ export OBJC=/Developer/usr/bin/llvm-gcc-4.2<BR>
<BR>
Then, I performed following commands in extras/contrib:<BR>
Downloaded contrib-macosx-i386-1.0.3.tar.bz2 to extras/contrib<BR>
./bootstrap i386-apple-darwin10<BR>
./make<BR>
<BR>
Then, I performed following in vlc root dir:<BR>
./bootstrap<BR>
./configure --build=i386-apple-darwin10 CFLAGS="-arch i386" CXXFLAGS="-arch i386" LDFLAGS="-arch i386" OBJCFLAGS="-arch i386"<BR>
<BR>
All these steps went very well, but the make I did from vlc root seems to fail with libtool error pasted below.<BR>
-------------------------------------------------------------------------------------------------------------------------<BR>
[ ~/vlc/vlc-1.0.4]$ make<BR>
export MACOSX_DEPLOYMENT_TARGET=10.5<BR>
make all-recursive<BR>
make[1]: Entering directory `/Users/raj/vlc/vlc-1.0.4'<BR>
Making all in po<BR>
make[2]: Entering directory `/Users/raj/vlc/vlc-1.0.4/po'<BR>
make[2]: Leaving directory `/Users/raj/vlc/vlc-1.0.4/po'<BR>
Making all in compat<BR>
make[2]: Entering directory `/Users/raj/vlc/vlc-1.0.4/compat'<BR>
/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/raj/vlc/vlc-1.0.4/./extras/contrib/include -DSYS_DARWIN -arch i386 -I/Users/raj/vlc/vlc-1.0.4/./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<BR>
../libtool: line 844: X--tag=CC: command not found<BR>
../libtool: line 877: libtool: ignoring unknown tag : command not found<BR>
../libtool: line 844: X--mode=compile: command not found<BR>
../libtool: line 1011: *** Warning: inferring the mode of operation is deprecated.: command not found<BR>
../libtool: line 1012: *** Future versions of Libtool will require --mode=MODE be specified.: command not found<BR>
../libtool: line 1155: X/Developer/usr/bin/llvm-gcc-4.2: No such file or directory<BR>
../libtool: line 1155: X-std=gnu99: command not found<BR>
../libtool: line 1155: X-isysroot: command not found<BR>
../libtool: line 1155: X/Developer/SDKs/MacOSX10.5.sdk: No such file or directory<BR>
../libtool: line 1155: X-mmacosx-version-min=10.5: command not found<BR>
../libtool: line 1155: X-DHAVE_CONFIG_H: command not found<BR>
../libtool: line 1155: X-I.: command not found<BR>
../libtool: line 1155: X-I..: command not found<BR>
../libtool: line 1155: X-I../include: No such file or directory<BR>
../libtool: line 1155: X-I../include: No such file or directory<BR>
../libtool: line 1155: X-I/Users/raj/vlc/vlc-1.0.4/./extras/contrib/include: No such file or directory<BR>
../libtool: line 1155: X-DSYS_DARWIN: command not found<BR>
../libtool: line 1155: X-arch: command not found<BR>
../libtool: line 1155: Xi386: command not found<BR>
../libtool: line 1155: X-I/Users/raj/vlc/vlc-1.0.4/./extras/contrib/include: No such file or directory<BR>
../libtool: line 1155: X-D_INTL_REDIRECT_MACROS: command not found<BR>
../libtool: line 1155: X-DMACOSX_DEPLOYMENT_TARGET=10.5: command not found<BR>
../libtool: line 1155: X-Wall: command not found<BR>
../libtool: line 1155: X-Wextra: command not found<BR>
../libtool: line 1155: X-Wsign-compare: command not found<BR>
../libtool: line 1155: X-Wundef: command not found<BR>
../libtool: line 1155: X-Wpointer-arith: command not found<BR>
../libtool: line 1155: X-Wbad-function-cast: command not found<BR>
../libtool: line 1155: X-Wcast-align: command not found<BR>
../libtool: line 1155: X-Wwrite-strings: command not found<BR>
../libtool: line 1155: X-Wmissing-prototypes: command not found<BR>
../libtool: line 1155: X-Wvolatile-register-var: command not found<BR>
../libtool: line 1155: X-Werror-implicit-function-declaration: command not found<BR>
../libtool: line 1155: X-MT: command not found<BR>
../libtool: line 1155: Xstrndup.lo: command not found<BR>
../libtool: line 1155: X-MD: command not found<BR>
../libtool: line 1155: X-MP: command not found<BR>
../libtool: line 1155: X-MF: command not found<BR>
../libtool: line 1155: X.deps/strndup.Tpo: No such file or directory<BR>
../libtool: line 1155: X-c: command not found<BR>
../libtool: line 1208: Xstrndup.lo: command not found<BR>
../libtool: line 1213: libtool: compile: cannot determine name of library object from `': command not found<BR>
make[2]: *** [strndup.lo] Error 1<BR>
make[2]: Leaving directory `/Users/raj/vlc/vlc-1.0.4/compat'<BR>
make[1]: *** [all-recursive] Error 1<BR>
make[1]: Leaving directory `/Users/raj/vlc/vlc-1.0.4'<BR>
make: *** [all] Error 2<BR>
<BR>
-------------------------------------------------------------------------------------------------------------------------<BR>
Could somebody with Mac expertise throw some light how I can get around this issue?<BR>
<BR>
Is compiling entire source code needed to use VLCKit for Mac?<BR>
<BR>
Any help is appreciated. I am a new developer in VLC domain.<BR>
<BR>
Regards,<BR>
Raj<BR>
<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>