I’d like to use VLCMediaPlayerMBS with Xojo 2021r2.1 and MBS 23.3 to create a Mac/Win cross-platform app.
There seem to be several dylibs needed under MacOS for this class, but I don’t see anything in the documentation about where to get them or how to install them.
When I try to run the example app on an M1 Mac I get some messages about incompatibility with ARM architecture. Is the plugin not compatible with ARM? These are followed by “Failed to load library. No such file.”
When I try to run it under Windows 11 I get a message “Failed to load library. The specified module could not be found.”
Complete instructions would be appreciated, thanks.
I see that SoftDeclareMBS is deprecated, so I tried DeclareLibraryMBS instead, but it gives me an UnsupportedOperationException (Failed to read library), using either FolderItem or path Constructor:
OK, that was stupid of me, thanks. Project now runs and works on my Mac. Every time I quit the app, however, I get a crash:
Process: Show video sample.debug [29421]
Path: /Users/USER/*/Show video sample.debug.app/Contents/MacOS/Show video sample.debug
Identifier: Show video sample.debug
Version: ???
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
VM Region Info: 0x10b3f4bc8 is not in any region. Bytes after previous region: 2821065 Bytes before following region: 898104
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
CoreAnimation 10b140000-10b144000 [ 16K] r–/r-- SM=PRV
—> GAP OF 0x38c000 BYTES
VM_ALLOCATE 10b4d0000-10b4d4000 [ 16K] r–/r-- SM=PRV
The crash may be cause because you set something to nil (too early).
As something gets accessed later when the crash happens, which isn’t there anymore.
If you set NSObject for VLCMediaPlayerMBS to add NSView, maybe set this to nil in window.close event?