Page 1 of 1

Help! VLC build for mac os

Posted: 18 Apr 2014 20:49
by chenxiandiao
I compile the vlc2.1.4 accoring to the official document under mac os10.8 and use xcode 4.6.2.
https://wiki.videolan.org/OSXCompile/

And I come to the last moment.About make.

I run the commond make -j4 .
Now I am stuck with the problem.Can any one give me some advice.Now let me show you the erro.

attribute_deprecated void av_set_cpu_flags_mask(int mask);
^
CCLD libkate_plugin.la
CCLD liblibass_plugin.la
CCLD liblibmpeg2_plugin.la
1 warning generated.
CCLD libopus_plugin.la
CCLD libpng_plugin.la
CCLD libschroedinger_plugin.la
CCLD libspeex_plugin.la
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_sub_recode in libass.a(ass.o)
"_iconv_close", referenced from:
_sub_recode in libass.a(ass.o)
"_iconv_open", referenced from:
_sub_recode in libass.a(ass.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [liblibass_plugin.la] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


I am always waiting for your answer.thanks

Re: Help! VLC build for mac os

Posted: 18 Apr 2014 21:53
by fkuehne
Make sure not to have libiconv installed via homebrew or MacPorts. If you have it, uninstall it, make distclean, configure, and make.

Re: Help! VLC build for mac os

Posted: 21 Apr 2014 03:21
by chenxiandiao
Make sure not to have libiconv installed via homebrew or MacPorts. If you have it, uninstall it, make distclean, configure, and make.
I user the command "port installed" in terminal.app. it showe me libiconv @1.14_0+universal (active).
when i use sudo port uninstall libiconv @1.14_0+universal in terminal.app. it warn me that


WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

why do i need to uninstall libiconv? is it will be ok?

Re: Help! VLC build for mac os

Posted: 21 Apr 2014 14:48
by dfuhrmann
The warning is quite clear. You need to know if its ok to uninstall libiconv (macports might warn that another package depends on the libiconv package, then you need to check if you actually need this package).

Maybe you can also proceed by not touching the macports installation, but instead clear your environment from macports entries. See the compilation instructions for that, which you already linked to.

Re: Help! VLC build for mac os

Posted: 22 Apr 2014 03:10
by chenxiandiao
The warning is quite clear. You need to know if its ok to uninstall libiconv (macports might warn that another package depends on the libiconv package, then you need to check if you actually need this package).

Maybe you can also proceed by not touching the macports installation, but instead clear your environment from macports entries. See the compilation instructions for that, which you already linked to.
As what you said,when i use the command "port uninstall libiconv@1.14_0+universal".
it showed me as follows:

---> Unable to uninstall libiconv @1.14_0+universal, the following ports depend on it:
---> gettext @0.18.2.1_0
---> p5.12-locale-gettext @1.50.0_7
---> help2man @1.41.1_0
---> gmake @3.82_0
---> flac @1.2.1_1
---> xz @5.0.4_0
---> libxml2 @2.9.0_0
---> libxslt @1.1.27_0
---> lame @3.99.5_0
---> pkgconfig @0.28_0
---> gettext @0.18.2.1_0+universal
---> xz @5.0.4_0+universal
---> libxml2 @2.9.0_0+universal
---> libxslt @1.1.27_0+universal
---> pkgconfig @0.28_0+universal
---> fontconfig @2.10.92_0+universal
---> bison @2.7_0+universal
---> glib2 @2.36.1_0+universal
---> popt @1.16_0+universal
---> dbus-glib @0.100.2_0+universal
---> atk @2.8.0_0+universal
---> libidn @1.26_0+universal
---> libidl @0.8.14_2+universal
---> gnome-mime-data @2.18.0_3
---> wine @1.4.1_4
---> libxml2 @2.9.1_0+universal
---> flac @1.2.1_1+universal
---> wxWidgets30 @2.9.4_2+sdl
Error: org.macports.uninstall for port libiconv returned: Please uninstall the ports that depend on libiconv first.


Could you show me how to clear my environment from macports entries. I can not find the compilation instructions for that.Thank you very much.

Re: Help! VLC build for mac os

Posted: 22 Apr 2014 11:32
by dfuhrmann
Please see the instructions in the wiki: https://wiki.videolan.org/OSXCompile/#3 ... s_and_PATH

You need to execute these commands in terminal before _all_ other compilation steps.