OSX Compile Errors

macOS specific usage questions
Hanley
Blank Cone
Blank Cone
Posts: 22
Joined: 30 May 2013 04:56

OSX Compile Errors

Postby Hanley » 30 May 2013 05:04

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?

Hanley
Blank Cone
Blank Cone
Posts: 22
Joined: 30 May 2013 04:56

Re: OSX Compile Errors

Postby Hanley » 30 May 2013 15:48

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?

Hanley
Blank Cone
Blank Cone
Posts: 22
Joined: 30 May 2013 04:56

Re: OSX Compile Errors

Postby Hanley » 30 May 2013 18:32

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?

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: OSX Compile Errors

Postby fkuehne » 11 Jun 2013 20:40

Probably a competing libiconv installation in either Homebrew or MacPorts. Uninstall it or remove it from your terminal variables to fix it.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 23 guests