I'm struggling to compile the latest code on Mac OSX 10.7.3 with Xcode 4.2.
Created links as specified in wiki(OSXCompile). But getting
$ ../extras/package/macosx/build.sh
Checking for gcc... /Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [.pkg-config] Error 77
In ../extras/package/macosx/build.sh I did set
CC=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX=..../llvm-g+++-4.2
OBJC=/Applications//Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang
Not sure OBJC setting above is correct? In one of the thread, there was a suggestion to compile with tag --with-gcc=clang. Not sure from where / what command?
There are hard coded path to /Developer/... in different scripts and not positive MACROS and the Links automatically take care different platform specific compile (MacOS, iOS). Also, for VLC newbies, please document what exactly CC, CXX, OBJC etc should point to.
Interested in compiling for both Mac OSX and iOS. Any help from anyone compiled recently will be greatly appreciated.
See similar additional errors
cd /Users/test/vlc/extras/tools
./bootstrap && make
checking for style of include used by make... GNU
checking for gcc... /Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2
yes
.......
checking whether subdir libobjs are useable... yes
checking for gcc... /Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2
no
onfigure: error: C compiler cannot create executables
See `config.log' for more details.
configure: error: in `/Users/test/vlc/extras/tools/yasm':
configure: error: C compiler cannot create executables
See `config.log' for more details
checking whether the C compiler works... no
configure: error: in `/Users/test/vlc/extras/tools/libtool':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [.yasm] Error 77
make: *** [.pkg-config] Error 77
make: *** [.libtool] Error 77