The latest library crashed on system OSX 10.12.

macOS specific usage questions
Williams_
Blank Cone
Blank Cone
Posts: 15
Joined: 27 Oct 2017 11:10

The latest library crashed on system OSX 10.12.

Postby Williams_ » 05 Jan 2018 03:15

Library compiled on 10.13 system based on branch 3.0 crashes on 10.12 system.
dyld: Symbol not found: _open_memstream
Referenced from: /Users/../Frameworks/VLCKit.framework/Versions/A/lib/libvlccore.9.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib

dfuhrmann
Developer
Developer
Posts: 1183
Joined: 02 Jul 2012 11:09

Re: The latest library crashed on system OSX 10.12.

Postby dfuhrmann » 05 Jan 2018 10:59

Can you please give the full log, mainly which library is supposed to contain that symbol.

Please also tell us which exact version of VLC you tested and if you compiled VLC yourself or not. Note, if you compile for yourself, you need to use build.sh.

Williams_
Blank Cone
Blank Cone
Posts: 15
Joined: 27 Oct 2017 11:10

Re: The latest library crashed on system OSX 10.12.

Postby Williams_ » 08 Jan 2018 02:57

Can you please give the full log, mainly which library is supposed to contain that symbol.

Please also tell us which exact version of VLC you tested and if you compiled VLC yourself or not. Note, if you compile for yourself, you need to use build.sh.
I compiled VLCKit library myself, using the buildVLCKit.sh script, I did not directly compile vlc repository, because it is C language.

VLCKit version of the collapse is the latest 3.0 branch, I first check to the 3.0 branch, and then execute the buildVLCKit.sh script.

It is worth mentioning that the latest 3.0 branch fails to compile on the 10.12 system, which can only be compiled on the 10.13 system, but the 10.13 compiled library crashes at 10.12.

Thank you for your attention.

dfuhrmann
Developer
Developer
Posts: 1183
Joined: 02 Jul 2012 11:09

Re: The latest library crashed on system OSX 10.12.

Postby dfuhrmann » 08 Jan 2018 18:54

VLC itself compiles fine on both 10.13 and 10.12. I'm not sure about VLCKit and the build scripts there, though.

Williams_
Blank Cone
Blank Cone
Posts: 15
Joined: 27 Oct 2017 11:10

Re: The latest library crashed on system OSX 10.12.

Postby Williams_ » 09 Jan 2018 02:53

VLC itself compiles fine on both 10.13 and 10.12. I'm not sure about VLCKit and the build scripts there, though.
First of all thank you for your attention.
This is where I do not understand, VLCKit is described as "libvlc bindings for OS X, iOS and tvOS in Objective-C", but the official Mac VLC APP does not use VLCKit, but direct use of libvlc, why?
Anyone else know about VLCKit? I hope to get some suggestions, thanks.

dfuhrmann
Developer
Developer
Posts: 1183
Joined: 02 Jul 2012 11:09

Re: The latest library crashed on system OSX 10.12.

Postby dfuhrmann » 09 Jan 2018 21:44

The official VLC macOS app consists of internal modules, i.e. it also uses internal APIs not exported by VLCKit yet. But the VLC executable itself is just a simple wrapper around libvlc.

If you want to build a backwards-compatible VLCKit framework, you likely need to modify buildVLCKit.sh by yourself (similar to build.sh in the vlc repository). Alernatively, you can also build VLCKit on the oldest macOS version with the oldest macOS SDK your App wants to support.

Williams_
Blank Cone
Blank Cone
Posts: 15
Joined: 27 Oct 2017 11:10

Re: The latest library crashed on system OSX 10.12.

Postby Williams_ » 24 Jan 2018 10:31

This patch solved my problem.
https://code.videolan.org/videolan/VLCK ... cosx.patch
In addition, developers have fixed this bug in the latest code.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests