Building VLCKit on/for macOS Sierra

This forum is about all development around libVLC.
tmac3k
New Cone
New Cone
Posts: 1
Joined: 04 May 2017 21:41

Building VLCKit on/for macOS Sierra

Postby tmac3k » 04 May 2017 21:56

Hi,
I'm trying to build VLCKit on macOS Sierra, but had no luck so far.
I cloned the VLCKit repo and started the build using the buildVLCKit.sh script.
The first time it failed with an linker error:

Code: Select all

Undefined symbols for architecture x86_64: "_inflateValidate", referenced from: _png_inflate_claim in libpng16.a(pngrutil.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[2]: *** [timepng] Error 1 make[1]: *** [install] Error 2 make: *** [.png] Error 2
after adding libz to the "Other Linker flags (-lz )" this error got fixed.
But the build now stops after compiling x265.

Code: Select all

/usr/local/bin/gmkdir -p '/Users/x/tmp/VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/bin' touch .libarchive [ 84%] Built target common Scanning dependencies of target x265-static [ 86%] Linking CXX static library libx265.a [ 86%] Built target x265-static Scanning dependencies of target cli [ 89%] Building CXX object CMakeFiles/cli.dir/input/input.cpp.o [ 89%] Building CXX object CMakeFiles/cli.dir/output/reconplay.cpp.o [ 92%] Building CXX object CMakeFiles/cli.dir/input/yuv.cpp.o [ 92%] Building CXX object CMakeFiles/cli.dir/input/y4m.cpp.o [ 92%] Building CXX object CMakeFiles/cli.dir/output/output.cpp.o [ 93%] Building CXX object CMakeFiles/cli.dir/output/yuv.cpp.o [ 94%] Building CXX object CMakeFiles/cli.dir/output/y4m.cpp.o [ 96%] Building CXX object CMakeFiles/cli.dir/output/raw.cpp.o [ 97%] Building CXX object CMakeFiles/cli.dir/x265.cpp.o [ 98%] Building CXX object CMakeFiles/cli.dir/x265-extras.cpp.o [100%] Linking CXX executable x265 [100%] Built target cli Install the project... -- Install configuration: "Release" -- Installing: /Users/x/tmp/VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/lib/libx265.a -- Installing: /Users/x/tmp/VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/include/x265.h -- Installing: /Users/x/tmp/VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/include/x265_config.h -- Installing: /Users/x/tmp/VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/lib/pkgconfig/x265.pc -- Installing: /Users/x/tmp/VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/bin/x265 sed -e s/'[^ ]*clang_rt[^ ]*'//g -i.orig "/Users/x/tmp/VLCKit/libvlc/vlc/contrib/x86_64-apple-darwin15/lib/pkgconfig/x265.pc" touch .x265
Can someone give me a tip? Did I miss something?

Sadly the nightly builds are broken two. A precompiled version on the vlc site would be really nice as im always having trouble compiling a new version of vlckit.

GoannaGuy
New Cone
New Cone
Posts: 2
Joined: 07 Jul 2017 01:37

Re: Building VLCKit on/for macOS Sierra

Postby GoannaGuy » 07 Jul 2017 01:45

Has anyone solved this? I'm running into the same issue with VLCKit code pulled fresh today. Also, the "Build libvlc" build target in the Xcode project seems to not work at all. I modified the buildVLCKit.sh file to include an "export OTHER_LDFLAGS=-lz" near the top to even get to the point that tmac3k describes.

GoannaGuy
New Cone
New Cone
Posts: 2
Joined: 07 Jul 2017 01:37

Re: Building VLCKit on/for macOS Sierra

Postby GoannaGuy » 07 Jul 2017 21:31

It appears that the libpng issue is not resolved simply by adding the linker flag. The problem, at least in my case, is the use of libpng version 1.6.29. Versions of libpng >= 1.6.26 apparently require zlib version 1.2.8.1 or higher (inflateValidate isn't officially listed until 1.2.9, but was apparently present but undocumented in 1.2.8.1 and later). macOS Sierra ships (currently) with zlib version 1.2.8.0


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 23 guests