VLCKit icon indicating copy to clipboard operation
VLCKit copied to clipboard

When I built on my mac,it turns out ' *** [.harfbuzz] Error 2'

Open vhikd opened this issue 10 years ago • 6 comments

I run sh buildMobileVLCKit.sh in terminal

After a long time building, it turns out *** [.harfbuzz] Error 2

make[4]: *** [main] Error 1 make[3]: *** [install-recursive] Error 1 make[2]: *** [install] Error 2 make[1]: *** [install-recursive] Error 1 make: *** [.harfbuzz] Error 2

Any solutions? Wating for your reply.

vhikd avatar Apr 23 '14 12:04 vhikd

Hi,

Which branch do you try to build? Please try to build branch libde265-2.2.0-unstable.

Best regards

ghost avatar Apr 23 '14 13:04 ghost

Thanks for your reply . I just build the 2.1-stable . And I will try the 265-2.2.0-unstable. I hope it will work .

vhikd avatar Apr 23 '14 14:04 vhikd

Hello, I try the VLCKit-libde265-2.2.0-unstable branch And the errors as before.

I build it on Mac OS 10.9.2 and Xcode 5.1.1

ld: warning: directory not found for option '-L/Users/dzy/Desktop/VLCKit-libde265-2.2.0-unstable/MobileVLCKit/ImportedSources/vlc/contrib/x86_64-apple-darwin11-x86_64/lib' ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/usr/local/Cellar/freetype/2.5.2/lib/libfreetype.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[4]: *** [main] Error 1 make[3]: *** [install-recursive] Error 1 make[2]: *** [install] Error 2 make[1]: *** [install-recursive] Error 1 make: *** [.harfbuzz] Error 2

Did you know what happened to me ?

vhikd avatar Apr 24 '14 04:04 vhikd

The problem might be in that you already have installed freetype library on your machine. VLC tries to compile all the libraries it needs by itself but when it encounters some of the libraries on your system it tries to use yours. As you see it tries to use '/usr/local/Cellar/freetype/2.5.2/lib/libfreetype.dylib' which is not in '/Users/dzy/Desktop/VLCKit-libde265-2.2.0-unstable/MobileVLCKit/ImportedSources/vlc/...'.

I would suggest you to try to remove freetype library from your machine and then recompile VLCKit. You can also run buildMobileVLCKit.sh with '-v' option to get more information regarding your errors.

We had similar problems until we cleaned up our build machine from all the libraries VLC needs in order for it to build and install its own versions.

ghost avatar Apr 24 '14 07:04 ghost

Thanks for your reply. After I remove all of the lib I was built, it works for me finally. But I got two errors like that :

WARNING: 'automake-1.14' is probably too old. You should only need it if you modified 'Makefile.am' or 'configure.ac' or m4 files included by 'configure.ac'. The 'automake' program is part of the GNU Automake package: http://www.gnu.org/software/automake It also requires GNU Autoconf, GNU m4 and Perl in order to run: http://www.gnu.org/software/autoconf http://www.gnu.org/software/m4/ http://www.perl.org/ make[2]: *** [/Users/dzy/Desktop/VLCKit-libde265-2.2.0-unstable/MobileVLCKit/ImportedSources/vlc/modules/Makefile.in] Error 63 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

And the lib and framework was built although.

When I test it on simulator , it works excellent. But on my device , it turns out a lot of errors.

Undefined symbols for architecture armv7: "_x264_param_default", referenced from: _Open in libMobileVLCKit.a(libx264_plugin_la-x264.o) "_x264_param_apply_profile", referenced from: _Open in libMobileVLCKit.a(libx264_plugin_la-x264.o) "_x264_param_default_preset", referenced from: _Open in libMobileVLCKit.a(libx264_plugin_la-x264.o) "_x264_encoder_headers", referenced from: _Open in libMobileVLCKit.a(libx264_plugin_la-x264.o) "_x264_encoder_delayed_frames", referenced from: _Open in libMobileVLCKit.a(libx264_plugin_la-x264.o) _Close in libMobileVLCKit.a(libx264_plugin_la-x264.o) _Encode in libMobileVLCKit.a(libx264_plugin_la-x264.o) "_x264_encoder_encode", referenced from: _Encode in libMobileVLCKit.a(libx264_plugin_la-x264.o) "_x264_encoder_open_125", referenced from: _Open in libMobileVLCKit.a(libx264_plugin_la-x264.o) "_x264_picture_init", referenced from: _Encode in libMobileVLCKit.a(libx264_plugin_la-x264.o) "_x264_encoder_close", referenced from: _Open in libMobileVLCKit.a(libx264_plugin_la-x264.o) _Close in libMobileVLCKit.a(libx264_plugin_la-x264.o) "_x264_bit_depth", referenced from: _Open in libMobileVLCKit.a(libx264_plugin_la-x264.o) "_x264_param_parse", referenced from: _Open in libMobileVLCKit.a(libx264_plugin_la-x264.o) "_vpx_codec_get_frame", referenced from: _Close in libMobileVLCKit.a(libvpx_plugin_la-vpx.o) "_vpx_codec_destroy", referenced from: _Close in libMobileVLCKit.a(libvpx_plugin_la-vpx.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Could you help me to solve this problem?

Thank you very much.

vhikd avatar Apr 24 '14 10:04 vhikd

Don't worry about automake-1.14 warning. The problem you have is that you haven't built libx264 and libvpx for device (armv7, armv7s, arm64 architectures). Unfortunately I can't tell what is wrong with it since build rules are created automatically depending on your setup. It may be caused by recompiling in the same directory though. If you have repeatedly run the script in your old location, I would try to pull repo in new directory and try to build there, in order to have a clean build.

ghost avatar Apr 24 '14 10:04 ghost