Compile errors on the mac platform.
I have failed to compile in the mac platform.
The first compile failed:
-
Get the source code and execute the script.
git clone https://code.videolan.org/videolan/VLCKit.git cd VLCKit && sh buildVLCKit.sh -v
-
Then the script stops running, no error.
install -m 644 libavformat/libavformat.a "/Users/.../VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/lib" ranlib "/Users/.../VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/lib/libavformat.a" ranlib libavcodec/libavcodec.a mkdir -p "/Users/.../VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/lib" install -m 644 libavcodec/libavcodec.a "/Users/.../VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/lib" ranlib "/Users/.../VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/lib/libavcodec.a" touch .ffmpeg
### Use prebuild contrib to try again:
I think the first error is caused by the contrib build, so I changed the following code to `make prebuild` in buildVLCKit.sh.
make -j$MAKE_JOBS fetch ${args} make -j$MAKE_JOBS .gettext ${args} make -j$MAKE_JOBS ${args}
Then the error occurred.
Undefined symbols for architecture x86_64: "__dyld_func_lookup", referenced from: _SDL_LoadObject in libSDL.a(SDL_dlcompat.o) _SDL_LoadFunction in libSDL.a(SDL_dlcompat.o) SDL_UnloadObject in libSDL.a(SDL_dlcompat.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]: *** [libsdl_image_plugin.la] Error 1 make[4]: *** Waiting for unfinished jobs.... libtool: link: /usr/bin/nm -B codec/.libs/cvdsub.o | sed -n -e 's/^.[ ]([BCDEGRST][BCDEGRST])[ ][ ]*([_A-Za-z][A-Za-z0-9])$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' | /usr/bin/sed 's/. //' | sort | uniq > .libs/libcvdsub_plugin.exp libtool: link: /usr/bin/grep -E -e "^vlc_entry" ".libs/libcvdsub_plugin.exp" > ".libs/libcvdsub_plugin.expT" libtool: link: mv -f ".libs/libcvdsub_plugin.expT" ".libs/libcvdsub_plugin.exp" libtool: link: sed -e 's,^,,' < .libs/libcvdsub_plugin.exp > .libs/libcvdsub_plugin-symbols.expsym libtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o .libs/libcvdsub_plugin.dylib -bundle codec/.libs/cvdsub.o ../compat/.libs/libcompat.a -L/Users/.../VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/lib ../src/.libs/libvlccore.dylib -lc -liconv -lm -O2 -arch x86_64 -O3 -Wl,-headerpad_max_install_names -arch x86_64 -Wl,-exported_symbols_list,.libs/libcvdsub_plugin-symbols.expsym libtool: link: ( cd ".libs" && rm -f "liblibass_plugin.la" && ln -s "../liblibass_plugin.la" "liblibass_plugin.la" ) libtool: link: ( cd ".libs" && rm -f "libcvdsub_plugin.la" && ln -s "../libcvdsub_plugin.la" "libcvdsub_plugin.la" ) make[4]: write error make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
### Platform:
macOS High Sierra(10.13) Xcode 8.3.3
Can someone help me? I will always be waiting for your reply, thank you very much.