Page 1 of 1

Compile errors on the mac platform.

Posted: 27 Oct 2017 11:24
by Williams_
I have failed to compile in the mac platform.

The first compile failed:
1. Get the source code and execute the script.

Code: Select all

git clone https://code.videolan.org/videolan/VLCKit.git cd VLCKit && sh buildVLCKit.sh -v
2. Then the script stops running, no error.

Code: Select all

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 failed is caused by the contrib build, so I changed the following code to make prebuild in buildVLCKit.sh.

Code: Select all

make -j$MAKE_JOBS fetch ${args} make -j$MAKE_JOBS .gettext ${args} make -j$MAKE_JOBS ${args}
Then the error occurred.

Code: Select all

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:

Code: Select all

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.

Re: Compile errors on the mac platform.

Posted: 31 Oct 2017 07:34
by Williams_
I guess the environment is the problem, but I can not find the reason. Does anyone have ideas? Welcome to give any ideas, thank you.

Re: Compile errors on the mac platform.

Posted: 06 Nov 2017 03:00
by Williams_
I have solved this problem, by reducing the system version to 10.12, and then compile successfully.