Page 1 of 1

OSX Compile Errors

Posted: 30 May 2013 05:04
by Hanley
I'm following the OS X compile instructions from http://wiki.videolan.org/OSXCompile. I've tried this every which way and I keep getting the same error when I try to build vlc:

Code: Select all

AR libtar.a ar: can't find or exec: /Developer/usr/bin/ranlib (No such file or directory) ar: internal ranlib command failed make[4]: *** [libtar.a] Error 1 make[3]: *** [all] Error 2 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [.tar] Error 2
What is ranlib?

Re: OSX Compile Errors

Posted: 30 May 2013 15:48
by Hanley
Well, looking at it closer, it also can't find libtool. I looked in Developer/usr/bin and neither ranlib or libtool are there. However, I did find them in usr/bin as well as in Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin. How do I get the build to look there instead of Developer/usr/bin?

Re: OSX Compile Errors

Posted: 30 May 2013 18:32
by Hanley
OK, I made it past the ranlib problem. Now it's making the prebuilt no problem, BUT I'm now encountering a different error:

Code: Select all

CCLD libvlccore.la Undefined symbols for architecture x86_64: "_iconv", referenced from: __nl_find_msg in libintl.a(dcigettext.o) (maybe you meant: _vlc_iconv_open, _vlc_iconv , _vlc_iconv_close ) "_iconv_open", referenced from: __nl_find_msg in libintl.a(dcigettext.o) (maybe you meant: _vlc_iconv_open) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [libvlccore.la] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Any ideas?

Re: OSX Compile Errors

Posted: 11 Jun 2013 20:40
by fkuehne
Probably a competing libiconv installation in either Homebrew or MacPorts. Uninstall it or remove it from your terminal variables to fix it.