OpenFunscripter 3.2.0 For MacOS

looking forward to this!

1 Like

finally got the app to compile, when ever I run it now I get:

2025-06-28 15:38:42.700 OpenFunscripter[4558:3290955] DEBUG: Failed loading libmpv.dylib: dlopen(libmpv.dylib, 0x0006): tried: 'libmpv.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OSlibmpv.dylib' (no such file), '/usr/lib/libmpv.dylib' (no such file, not in dyld cache), 'libmpv.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
2025-06-28 15:38:42.700 OpenFunscripter[4558:3290955] ERROR: Failed loading libmpv.dylib: dlopen(libmpv.dylib, 0x0006): tried: 'libmpv.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OSlibmpv.dylib' (no such file), '/usr/lib/libmpv.dylib' (no such file, not in dyld cache), 'libmpv.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
2025-06-28 15:38:42.700 OpenFunscripter[4558:3290955] ERROR: Failed to load mpv library.

I tried compiling mpv for arm. Maybe it can’t find it. I’m at a roadblock. please help

Currently, OFS can only be compiled into programs for the x86 architecture, so it must be used with the x86 version of MPV. In addition, since Homebrew has defaulted to upgrading the MPV version, this has led to incompatibility issues, making the problem rather tricky and difficult to resolve. It is recommended to consider using the Windows version of OFS first.

ugh, I give up! Thanks for your insights! Why can’t we have a modern scripting program!

We could have a modern scripting program, all that is needed is people to work on it. It’s what i would love as well, a next-gen funscript editor focused on automation and AI but keeping the same extendability that made OFS so popular. The only issue is this takes a lot of time and effort and would not be a one man effort. And it should have a proper architecture design, unlike OFS. For now, the closest one gets to something like this is the FunGen project, which has slowly evolved from a home-made attempt to track movement into the biggest open source effort so far to automate the funscripting process. You should consider supporting this project, or if you are a developer, to contribute to it, enhance it into a full fledged next generation editor. It’s already written in Python, which is much easier to maintain than OFS.

1 Like

Thank you for your guidance. Yes, developing a good application requires a lot of time and energy. Currently, I’m a novice in AI.

I was able to get to the two-window-error point of this install, but am quickly losing track of the troubleshooting process. Is there a solution with instructions written for someone not familiar with coding?
I was previously using the web interface, which unfotunately lacks multi-axis support.

1 Like

First think you @codeScripter for this effort. It’s very helpful and greatly appreciate it. I’d appreciate if you can help me get past this error below. I’m trying to install in the latest MacOs. 15.6
On executing make getting following error.

/Users/abc/OpenFunscripter/lib/SDL2/src/hidapi/SDL_hidapi.c:252:72: warning: ā€˜kIOMasterPortDefault’ is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
252 | SDL_HIDAPI_discovery.m_notificationPort = IONotificationPortCreate(kIOMasterPortDefault);
| ^~~~~~~~~~~~~~~~~~~~
| kIOMainPortDefault
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:133:19: note: ā€˜kIOMasterPortDefault’ has been explicitly marked deprecated here
133 | const mach_port_t kIOMasterPortDefault
| ^
In file included from /Users/rahul_india/OpenFunscripter/lib/SDL2/src/hidapi/SDL_hidapi.c:578:
/Users/abc/OpenFunscripter/lib/SDL2/src/hidapi/mac/hid.c:163:23: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
163 | struct input_report *rpt = dev->input_reports;
| ^
/Users/abc/OpenFunscripter/lib/SDL2/src/hidapi/mac/hid.c:265:11: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
265 | CFIndex str_len = CFStringGetLength(str);
| ^
/Users/abc/OpenFunscripter/lib/SDL2/src/hidapi/mac/hid.c:304:11: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
304 | CFIndex str_len = CFStringGetLength(str);
| ^
/Users/abc/OpenFunscripter/lib/SDL2/src/hidapi/mac/hid.c:530:11: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
530 | CFSetRef device_set = IOHIDManagerCopyDevices(hid_mgr);
| ^
/Users/abc/OpenFunscripter/lib/SDL2/src/hidapi/mac/hid.c:742:25: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
742 | CFRunLoopSourceContext ctx;
| ^
/Users/abc/OpenFunscripter/lib/SDL2/src/hidapi/mac/hid.c:848:34: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
848 | struct hid_device_list_node *node = (struct hid_device_list_node *)calloc(1, sizeof(struct hid_device_list_node));
| ^
/Users/abc/OpenFunscripter/lib/SDL2/src/hidapi/mac/hid.c:812:11: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
812 | CFSetRef device_set = IOHIDManagerCopyDevices(hid_mgr);
| ^
/Users/abc/OpenFunscripter/lib/SDL2/src/hidapi/mac/hid.c:1091:6: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
1091 | int skipped_report_id = 0;
| ^
1 warning and 8 errors generated.
make[2]: *** [lib/SDL2/CMakeFiles/SDL2-static.dir/src/hidapi/SDL_hidapi.c.o] Error 1

I’m not sure where I’m tripping but I’m not able to find any .cpp files on my system. Where as I’m able to run OFS with all the errors mentioned above. Appreciate any help or pointers.

.cpp is the text file containing source code. It’s compiled into a binary that are installed on your system. The .cpp files are not distributed with the application so all is good.

Any updates on this?

Hi! Thanks for this.

How do you manage to compile it though? I’m just getting lots of compile errors running make, due to the code standard being old.

Or - if anyone could share a compiled version for M1 Mac with this fix I would be grateful. OFS stopped working for me when installing FunGen, since the mpv and ffmpeg versions got upgraded :cry:

The crux of the problem still lies with the MPV version, and MPV is also associated with FFmpeg. Therefore, there are two approaches to solve the problem:

  1. Improve the code of OFS to be compatible with the latest MPV.
  2. Package the old dependencies into the software package and modify the reference path to point to the files within the software package.
2 Likes

Thanks for clarifying and for the effort!

I thought @iii3iei33iii solved this but maybe I misunderstood:

Sorry if FunGen broke it for you.

To make it up, I spent time on it today and compiled natively OFS 3.2.0 for native Mac Silicon chips.

Works with the current version of MPV via Brew.

I don’t want to hijack this thread, sorry if it looks like this, I would then delete my message and makee a new topic if advised to do so.

Feel free to reach out to me in DM.

Here on my M4 :

4 Likes

Impressive stuff! Must’ve been a time consuming task

3 Likes

Thank you for your efforts. I don’t care what you do; you are free. Besides, Fungen is indeed more advanced, and I’m starting to learn and use it.