Skip to content
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

Port multimedia/obs-studio fails to run #257

Open
mneumann opened this issue Apr 1, 2024 · 10 comments
Open

Port multimedia/obs-studio fails to run #257

mneumann opened this issue Apr 1, 2024 · 10 comments

Comments

@mneumann
Copy link

mneumann commented Apr 1, 2024

It exits with:

/usr/local/lib/libobs.so.0: Undefined symbol "sysinfo"

I tried to fix the CMakeLists.txt of libobs, but somehow failed... might be easier to go the OpenBSD way and simply drop the dependency on sysinfo and use sysctl hw.physmem.

@daftaupe
Copy link
Member

@mneumann I sent DragonFlyBSD/DeltaPorts@b1e9816 to fix the build of the latest obs-studio version.

In the chroot of the build machine I get the following, I think that means that Undefined symbol is gone now.

[root@build /]# /usr/local/bin/obs
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, vkkhrdisplay, vnc, xcb.

Let me know how it goes when that new version get published.

@mneumann
Copy link
Author

@daftaupe thanks! I will try to compile it locally. which reminds me that we need webcam support :)

@mneumann
Copy link
Author

@daftaupe your "fix" didn't fix it :/. Still getting:

~ % obs
Detected locale "C" with character encoding "US-ASCII", which is not UTF-8.
Qt depends on a UTF-8 locale, but has failed to switch to one.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/local/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/local/share/obs/obs-studio/themes/Yami.qss
info: Using EGL/X11
info: Physical Cores: 8, Logical Cores: 8
/usr/local/lib/libobs.so.0: Undefined symbol "sysinfo"

libobs.so might not be properly linked against libsysinfo.

@mneumann
Copy link
Author

@daftaupe
This patch fixes the undefined symbol sysinfo issue:

0001-Fix-undefined-symbol-sysinfo.patch.txt

@mneumann
Copy link
Author

@daftaupe I do not fully understand why cmake is not linking in libsysinfo. I just removed the use of it as a work-around.

@daftaupe
Copy link
Member

That's weird indeed.

@mneumann I didn't really have a fix for this particular issue, I just made the new version built and noticed I didn't have that issue you had reported when I installed the built package in my chroot.

What does ldd /usr/local/bin/obs reports with the regular package ?

@mneumann
Copy link
Author

@daftaupe interesting. maybe I am having an older version in dports

@daftaupe
Copy link
Member

@mneumann it should be in the staged branch of the dports since yesterday c43782c.

@mneumann
Copy link
Author

@daftaupe thanks! openssl causes some problems when compiling obs-studio. I should build with dsynth, right? Maybe I wait for the package build instead :)

@daftaupe
Copy link
Member

It's an option to wait, as we should release the new ones really soon :)

Otherwise, yes dsynth is the way as it builds in proper chroots, so your current env stays out of the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants