-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building for Mac; Undefined symbols for architecture x86_64 #19
Comments
I am not a mac developer and I don't have mac , theoretically it can run on mac . But I think I can make some guess. This project needs same libraries (but don't need QT5) as the other popular plugin obs-ndi, so according to the guides of obs-ndi. You need to add some additions to the cmakelist.txt in motion-filter
And use this command to compile
Once again, I am not really sure if it's working. If there's anyone can contribute for this mac issue , that will be nice. |
Thanks. That did it! :) added these to cmakelists.txt and then which results in |
manually placed files to |
Thanks a lot! :) |
@JHeartyP Can you please share the files? I'm trying to build them, but not having much luck myself. Not much experience with this. |
Hey! Sorry unfortunately my mac died and I don't have the files anymore. :( I can build again after 25th but I suggest you try and compile it yourself. Where do you get stuck? |
Stuck trying to make obs. Assuming I need to do that to have the libobs files to reference as indicated above.
|
I'm also trying to compile this plugin on Mac. I've got OBS built successfully, and I get as far as:
I've tried adding
to /motion-filter/CMakeLists.txt and using @JHeartyP 's cmake commands with my file paths. However I get the following error:
|
Resolved. in /motion-filter/CMakeLists.txt the code needs to be:
|
It turns out, while it appeared to build successfully, and the motion-filter element works as expected, the transition element doesn't appear in the list of available transitions. @JHeartyP, can you confirm that the motion transitions work for you? after placing files as follows: /Library/Application\ Support/obs-studio/plugins/motion-effect/bin/libmotion-transition.so thanks! Any thoughts as to why the filter would work but not the transition? |
Ok, I got it built and then I renamed libmotion-transition.so to motion-effect.so and it loaded in OBS. Therefore it now fully compiles and loads on Mac.
|
Anyone can share those files maybe ? |
@wackazong could you please share your .so files? I tried to build myself but I coudn't. |
I was able to run the cmake But the make -j4 is giving error Could this be a problem with OBS Version, I was able to download it from GIT and build IT. |
I was able to achieve this effect using this plugin instead, works out of the box |
I tried to build this for mac this is where I'm stuck. Help? :)
$ make -j4
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/m3lodq/git/motion-filter/build
Scanning dependencies of target motion-filter
[ 50%] Built target motion-transition
[ 66%] Building C object src/motion-filter/CMakeFiles/motion-filter.dir/__/helper.c.o
[ 83%] Building C object src/motion-filter/CMakeFiles/motion-filter.dir/motion-filter.c.o
[100%] Linking C shared module libmotion-filter.so
Undefined symbols for architecture x86_64:
"_obs_frontend_add_event_callback", referenced from:
_register_trigger_event in motion-filter.c.o
"_obs_frontend_get_current_scene", referenced from:
_scene_change in motion-filter.c.o
"_obs_frontend_remove_event_callback", referenced from:
_unregister_trigger_event in motion-filter.c.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]: *** [src/motion-filter/libmotion-filter.so] Error 1
make[1]: *** [src/motion-filter/CMakeFiles/motion-filter.dir/all] Error 2
make: *** [all] Error 2
Had to edit some include lines in /external/FindLibObs and /src/motion-filter/CMakeLists.txt to get this far.
FindLibObs.cmake.txt
CMakeCache.txt
CMakeLists.txt
CMakeOutput.log
The text was updated successfully, but these errors were encountered: