<html><body bgcolor="#FFFFFF"><div>Hi Raj,</div><div><br></div><div>Just try to build VLCKit, using the doc in the wiki. This should be a one click build that just works. Hopefully.<br><br><div>Pierre</div></div><div><br>On Dec 28, 2009, at 21:09, Raj Kondabala <<a href="mailto:raj@medxchange.com">raj@medxchange.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
<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"><a href="http://wiki.videolan.org/OSXCompile">http://wiki.videolan.org/OSXCompile</a></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>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>vlc-devel mailing list</span><br><span>To unsubscribe or modify your subscription options:</span><br><span><a href="http://mailman.videolan.org/listinfo/vlc-devel">http://mailman.videolan.org/listinfo/vlc-devel</a></span><br></div></blockquote></body></html>