ofxHapPlayer icon indicating copy to clipboard operation
ofxHapPlayer copied to clipboard

macOS 10.15 and OF 0.11 compile error

Open stephanschulz opened this issue 4 years ago • 8 comments

Showing Recent Issues : File too small (length=0) file '../../../addons/ofxHapPlayer/libs/ffmpeg/lib/osx/libavutil.55.dylib' for architecture x86_64

Screen Shot 2020-03-13 at 10 18 45 AM

stephanschulz avatar Mar 13 '20 14:03 stephanschulz

Working here with OF 0.11. That's an unusual error. Did you git clone the repo or download it? macOS and Xcode versions?

bangnoise avatar Mar 13 '20 22:03 bangnoise

Xcode 11.3.1 macOS 10.15.? it a remote machine so that I can only VNC to. I downloaded the addon from GitHub as .zip file

stephanschulz avatar Mar 13 '20 22:03 stephanschulz

It works from download here. Can you try the download again, or try doing a git clone? Are you using the Finder to unzip it? libavutil.55.dylib should be a link to libavutil.55.34.101.dylib.

bangnoise avatar Mar 13 '20 23:03 bangnoise

after download the zip is automatically unzipped. I then place the addon in the addon folder.

with a freshly .zip download from GitHub I get this error about libavutil.55.34.101.dylib not coming from an unverified developer. the options are to place it in trash or cancel operation.

Screen Shot 2020-03-14 at 12 02 44 PM

stephanschulz avatar Mar 14 '20 16:03 stephanschulz

FYI, it works fine on Mojave, Xcode 10.3 and OF 0.11

stephanschulz avatar Mar 16 '20 20:03 stephanschulz

I solved it by copping the dylib files from ffmpeg/lib/osx to /usr/local/lib and it worked

ThomasLengeling avatar Mar 23 '20 20:03 ThomasLengeling

it also seems to work after following this suggestion: https://github.com/bangnoise/ofxHapPlayer/issues/27#issuecomment-290357615

stephanschulz avatar May 04 '20 13:05 stephanschulz

I currently had a problem with the above solution when using macOS 10.15.7, OF 0.11.0, Xcode 12.4

Thanks to this video have I learned how to take files out of "quarantine". I ran these two commands in the terminal: sudo xattr -dr com.apple.quarantine /Applications/of_v0.11.0_osx_release/addons/ofxHapPlayer/libs/ffmpeg/lib/osx/lib** sudo xattr -dr com.apple.quarantine /Applications/of_v0.11.0_osx_release/addons/ofxHapPlayer/libs/snappy/lib/osx/lib** After that I ran compile again and the app runs fine.

stephanschulz avatar Aug 01 '21 02:08 stephanschulz