[vlc-devel] VLC source compilation issues for Mac OS X (Snow Leopard)

Raj Kondabala raj at medxchange.com
Mon Dec 28 21:09:41 CET 2009


Hi all,

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.

My goal is to eventually compile VLCKit for Mac so I can create Cocoa
objective-C video viewing app around it.

I initially got the tar ball file for VLC 1.0.4 and started compilation from
extras/Contrib directory as directed on  http://wiki.videolan.org/OSXCompile
web site.

Since the 64bit compilation is not guaranteed to work, I am just trying it
for 32 bit only for now.
My process is as follows:

I initially set following environment variables:
$ export CC=/Developer/usr/bin/llvm-gcc-4.2
$ export CXX=/Developer/usr/bin/llvm-g++-4.2
$ export OBJC=/Developer/usr/bin/llvm-gcc-4.2

Then, I performed following commands in extras/contrib:
Downloaded contrib-macosx-i386-1.0.3.tar.bz2 to extras/contrib
 ./bootstrap i386-apple-darwin10
./make

Then, I performed following in vlc root dir:
./bootstrap
./configure --build=i386-apple-darwin10 CFLAGS="-arch i386" CXXFLAGS="-arch
i386" LDFLAGS="-arch i386" OBJCFLAGS="-arch i386"

All these steps went very well, but the make I did from vlc root seems to
fail with libtool error pasted below.
----------------------------------------------------------------------------
---------------------------------------------
[ ~/vlc/vlc-1.0.4]$ make
export MACOSX_DEPLOYMENT_TARGET=10.5
make  all-recursive
make[1]: Entering directory `/Users/raj/vlc/vlc-1.0.4'
Making all in po
make[2]: Entering directory `/Users/raj/vlc/vlc-1.0.4/po'
make[2]: Leaving directory `/Users/raj/vlc/vlc-1.0.4/po'
Making all in compat
make[2]: Entering directory `/Users/raj/vlc/vlc-1.0.4/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/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
../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/raj/vlc/vlc-1.0.4/./extras/contrib/include:
No such file or directory
../libtool: line 1155: X-DSYS_DARWIN: command not found
../libtool: line 1155: X-arch: command not found
../libtool: line 1155: Xi386: command not found
../libtool: line 1155: X-I/Users/raj/vlc/vlc-1.0.4/./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[2]: Leaving directory `/Users/raj/vlc/vlc-1.0.4/compat'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Users/raj/vlc/vlc-1.0.4'
make: *** [all] Error 2

----------------------------------------------------------------------------
---------------------------------------------
Could somebody with Mac expertise throw some light how I can get around this
issue?

Is compiling entire source code needed to use VLCKit for Mac?

Any help is appreciated. I am a new developer in VLC domain.

Regards,
Raj



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091228/966b90d9/attachment.html>


More information about the vlc-devel mailing list