-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
obs-scripting fails to build on Ubuntu 18.04 with python 3.8 (Upstream SWIG issue) #6225
Comments
cmake output:
|
We no longer disable functionality if you dont have the required dependencies. It is expected that you will disable all the functionality your build doesnt support explicitly now. |
This is a strange error - we don't define any |
We recommend running a clean build / full rebuild to ensure any stray bits from an outdated OBS build (or an outdated dependency definition) get replaced properly. |
@WizardCM @kkartaltepe please re-open, this was a clean build and as seen I have python 3.8. I did exactly as my steps listed. there was no source folder previously. I have just double verified with another clean pull of the sourcec and build in a totally separate directly and this does happen. |
Since python3 is currently appears to be 3.6.5 on ubuntu 18 and your claim python 3.8, im not sure we support building in whatever configuration you seem have managed for yourself. If this occurs in a clean build you likely have an unsupportable system. |
ubuntu 18.04 has python 3.6.9, python 3.7.5, and python 3.8.0 all available in the official repos. this is not custom and an officially supported install of ubuntu you can find all of them here: python apt packages (other dependencies that ubuntu distributes via apt) are based on the python3.6 version. 3.7 and 3.8 are minimal installs |
also I am just "claming" python3.8 at all, see it in the cmake output I posted |
anyway... the error originates in an autogenerated file from SWIG during the buildprocess it appears this was a longstanding issue in swig and was never fixed until switch 4.0.1. bionic does not have 4.0.1 |
I've filed a bug report upstream at the ubuntu swig package in hopes they add the patch to bionic swig No changes here should be necessary |
I'm still on the fence if we keep upstream bugs open just for reference/tracking on our side, but I'll leave this for now. Updated the title to reflect it's an upstream issue. |
I would argue in favor of keeping them open as tracking issues so that they can be closed once we've integrated the upstream change. |
there is nothing to integrate, its just a question of if canonical patches their package or not. considering the existing 4 year queue of bugs for swig the likely hood of them incorporating a one off patch (or even responding) seems low. So we would likely leave this open until we drop support for 18.04 or 18.04 end of lifes in 2023. |
Well this issue doesn't block building for 18.04 on most systems. It just happens to be I have python 3.8 installed (alongside the default 3.6.9). |
To clarify, this is an issue with the SWIG package for Ubuntu 18.04 (as noted in https://bugs.launchpad.net/ubuntu/+source/swig/+bug/1966617), which is version 3.0.12. The SWIG PR was merged for SWIG version 4.0.1, which is the version of the package for Ubuntu 20.04. This is nothing for us to change on our end here. If the Ubuntu SWIG package maintainer backports the SWIG fix to the 18.04 package, then this will be fixed. As we will be dropping Ubuntu 18.04 support in OBS Studio 28, we consider this Issue closed as not planned. |
Operating System Info
Ubuntu 18.04
Other OS
No response
OBS Studio Version
Other
OBS Studio Version (Other)
Master (which is commit 525c535)
OBS Studio Log URL
Not relevant
OBS Studio Crash Log URL
No response
Expected Behavior
The ability to build with obs-scripting enabled since it has now been enabled by default.
Current Behavior
Unable to build, errors with the following
Steps to Reproduce
git clone --recursive https://github.com/obsproject/obs-studio.git
cd obs-studio
mkdir build
cd build
cmake .. -DUNIX_STRUCTURE=1 -DENABLE_PIPEWIRE=OFF -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_BROWSER=OFF -DENABLE_AJA=0
make
Anything else we should know?
I recently built 27.2.3 without any issues.
and yes, with python scripting disabled I am able to build
The text was updated successfully, but these errors were encountered: