-
Notifications
You must be signed in to change notification settings - Fork 130
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
Is it possible to compile in a GNU/Linux environment? #20
Comments
I'm also hoping this can be used with Linux. Thank you |
I'd also like to see this |
Yes, I was able to build it as part of a source build of OBS.
project (obs-shaderfilter)
set(obs-shaderfilter_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/src/obs-shaderfilter.c
)
add_library(obs-shaderfilter MODULE
${obs-shaderfilter_SOURCES}
)
target_link_libraries(obs-shaderfilter
libobs
)
install_obs_plugin_with_data(obs-shaderfilter data)
add_subdirectory(obs-shaderfilter)
cd /somewhere/build
cmake ../obs-studio-source -DCMAKE_INSTALL_PREFIX=/somewhere/install
make -j
make install
cd /somewhere/install
LD_LIBRARY_PATH=./lib bin/obs |
|
I found https://gist.github.com/jessicah/2a07073f9a1e0f9bdb1791d1a9d4480d seemed to work. Ensure you use an absolute path to an OBS installed from source, not a relative path. CMake seems to break with a relative path. |
|
I put all the instructions together and created a solution to build / install obs-shaderfilter, obs-studio and the virtual camera plugin on Ubnuntu. |
@Saravji Doesn't seem to fully work. I was able to compile it all and run but adding any sort of effect will keep the screen black and give me errors. For fisheye.shader for example, this is what I'm getting:
|
@NoelleTGS Hello Fellow Canadian! - I have not verified that all shaders / filters work 100%. The error message reads as thought this is a config problem on the build in / supplied shaders / filters? (I'm not 100% sure here, so more guessing than being able to point you in the right direction.) |
@Saravji I'm using this in Manjaro instead of Ubuntu like it says in your instructions so I wonder if that might be part of the issue. I could try compiling it through an Ubuntu VM quickly to see if the issue persists. I googled some of the lines from the errors I was getting and there really wasn't much aside from "just reinstall" so we'll see. |
Alright looks like it wasn't an issue with that all along! It was the shader itself causing issues, I grabbed @exeldro's fixed version from here and it's working without issues! I tried copying the plugin from that build to my regular Flatpak install and ofc, it didn't work. I was able to make it work by placing the .so in the ridiculous directory of Guess there's a little more troubleshooting to do but regardless, I got it working and that's all I care about lol. 2023 edit: for those coming across this years later, the only thing that's changed is that you will place the |
I see https://github.com/Oncorporation/obs-shaderfilter/blob/master/CMakeLists.txt
references obs.dll file
which seems to be specific to proprietary MS Windows operating system only.
Is it possible the source code could be adjusted to make compiling in GNU/Linux environments also?
For example, in another OBS Studio plugin's CMakeLists.txt file I see:
https://github.com/bazukas/obs-linuxbrowser/blob/master/CMakeLists.txt
and also
https://github.com/bazukas/obs-linuxbrowser/blob/master/cmake/FindOBS.cmake
The text was updated successfully, but these errors were encountered: