@LibertyGM,
Understood, and thank you. It was worth asking here just to make sure. I'll go right ahead and post this issue in the CachyOS forums.
Thanks again for your help and hard work. Much appreciated.
| Git Clone URL: | https://aur.archlinux.org/obs-studio-liberty.git (read-only, click to copy) |
|---|---|
| Package Base: | obs-studio-liberty |
| Description: | Free, open source software for live streaming and recording. With Browser Source support. Without the need to install ffmpeg-obs, etc. |
| Upstream URL: | https://github.com/obsproject/obs-studio |
| Keywords: | obs obs-studio stream |
| Licenses: | GPL-2.0-or-later |
| Conflicts: | obs-browser, obs-linuxbrowser, obs-studio, obs-studio-amf, obs-studio-browser, obs-studio-git, obs-studio-tytan652, obs-vst, obs-websocket |
| Provides: | obs-browser, obs-studio, obs-vst, obs-websocket |
| Submitter: | LibertyGM |
| Maintainer: | LibertyGM |
| Last Packager: | LibertyGM |
| Votes: | 14 |
| Popularity: | 1.54 |
| First Submitted: | 2024-03-31 01:53 (UTC) |
| Last Updated: | 2025-10-29 05:15 (UTC) |
@LibertyGM,
Understood, and thank you. It was worth asking here just to make sure. I'll go right ahead and post this issue in the CachyOS forums.
Thanks again for your help and hard work. Much appreciated.
sevrain, thanks. That was the place to start. This build is made for Arch Linux. I make it taking into account the features, current packages and settings of Arch Linux. The error you are getting is not due to OBS or PKGBUILD, which I made. I assume that the error is related to compilation flags or a different version of the linker. I think you can find help on the forums of your distribution with this problem.
@LibertyGM, You are most welcome and those are well deserved.
Per your suggestion, I've updated the system, cleaned caches, and tried to re-install. Unfortunately I'm still encountering the same error.
Some details:
I'm running CachyOS, Kernel 6.17.1, on an AMD ryzen (x86_64) laptop.
When provided with the error message, ChatGPT (I know I know...) claims:
Your build is failing because:
A static mimalloc (libmimalloc.a) with TLS is being linked into a shared object (libobs-scripting.so).
Fix it by either:
Turning mimalloc off → -DENABLE_MIMALLOC=OFF,
or
Using the shared mimalloc library (libmimalloc.so).
Hope that helps to root cause the issue somehow. Thanks again for the prompt response and for your quality work.
sevrain, thank you for your kind words. I'm glad I'm doing something important. Try updating the system, clearing the cache and installing it again. I've checked it several times and now I've checked it again. I have everything compiled successfully. Do you have x86_64 hardware?
Building the latest version is failing with the following error:
[ 69%] Linking CXX shared module obs-websocket.so
/usr/bin/ld: /tmp/cccPAADK.ltrans0.ltrans.o: relocation R_X86_64_TPOFF32 against hidden symbol `_mi_heap_default' can not be used when making a shared object
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [shared/obs-scripting/CMakeFiles/obs-scripting.dir/build.make:227: shared/obs-scripting/libobs-scripting.so.30] Error 1
make[1]: *** [CMakeFiles/Makefile2:3655: shared/obs-scripting/CMakeFiles/obs-scripting.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Copy obs-websocket to plugin directory (lib/obs-plugins)
Copy obs-websocket resources to data directory (share/obs/obs-plugins/obs-websocket)
[ 69%] Built target obs-websocket
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'obs-studio-liberty-32.0.1-3':
error: packages failed to build: obs-studio-liberty-32.0.1-3
Any idea what's breaking the build? Thank you for making this awesome package by the way.
@chocolateimage Probably related to recent Qt6.10 changed behavior, like mentioned here
thanks still using it.
When building the package, I get this error:
CMake Error at frontend/cmake/os-linux.cmake:6 (target_link_libraries):
Target "obs-studio" links to:
Qt::GuiPrivate
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
frontend/CMakeLists.txt:83 (include)
And more for frontend/plugins, is there some sort of package I am missing? I tried with yay and makepkg -si
ItachiSan I believe it's because Twitch's API requires a client id which OBS doesn't openly share (even though I believe Twitch client IDs are public tmk). If you add the options DTWITCH_CLIENTID=<twitch_client_id> and DTWITCH_HASH=0[1][2], the second being required due to OBS employing a very basic obfustication algorithm in which 0 leaves the input string unchanged[3]. You can do similar for YouTube and other services that OBS communicates with via their APIs[4]. Out of respect I won't post the specific values, but they should be relatively trivial to extract, but if you only want to take advantage of the Twitch API, it's fairly simple to generate a Twitch Client ID for personal use. I can't offer specifics for the other APIs.
Pinned Comments
LibertyGM commented on 2025-05-22 03:05 (UTC)
Friends, thank you all for your kind words. I enjoy reading them.
LibertyGM commented on 2024-04-28 14:53 (UTC) (edited on 2024-04-28 14:54 (UTC) by LibertyGM)
If you liked the obs-studio-liberty build, write in the comments, so I understand that I should work on the project.
Fazzi commented on 2024-04-03 11:02 (UTC)
Thanks for this pkgbuild, I only needed a version of OBS which had the browser source stuff added, and your build seemed to do that! :)