How do you Build Older OBS Version from Source?

monkeybananas

New Member
Cheers all.

I've successfully built OBS from source, however it's not the version I was hoping for.
* The following references the instructions located here: https://obsproject.com/wiki/install-instructions#debian-based-build-directions
* When I follow the directions listed at the link above, it builds version 27.2.0 Beta 4.
* The version I would like to build is 27.1.3.

Questions:
1) How do I build 27.1.3 with the latest commits that are available for it?
2) In general, how do I find a list of the previous versions, different commits, etc if that makes sense.

tia
 

monkeybananas

New Member
Thank you. I'm a bit new to git and still in the learning process.

At the end of the information supplied after running the checkout command was displayed:
HEAD is now at 3c14e4ece libobs: Update version to 27.1.2"

Which I then did the following:
git checkout master
git pull

Was the above more or less the correct approach to take before I try building OBS Studio 27.1.3?
 

monkeybananas

New Member
Perhaps this is out of scope for my initial inquiry, but when I try to build this version of OBS, I end up with two errors:
Code:
/home/myusername/obs-studio/plugins/obs-browser/obs-browser-plugin.cpp:7513:17: error: 'OBSDataAutoRelease' was not declared in this scope
  753 | OBSDataAutoRelease event_data =
           ^~~~~~~~~~~~~~~~~~
/home/myusername/obs-studio/plugins/obs-browser/obs-browser-plugin.cpp:756:25: error: 'event_data' was not declared in this scope; did you mean 'os_event_data'?
  756 | event_data ? obs_data_get_json(event_data) : "{}";
           ^~~~~~~~~~

So far the only reference I've found to trouble like the above is found here:
* https://github.com/obsproject/obs-browser/issues/337

Do you have any insights as to what I might try?

If it's better I post a new thread with this issue I can do so.
 

Tuna

Member
probably needs a "git submodule update" command to set the submodules to the version matching to the tag you have checked out.
 

monkeybananas

New Member
Ahh yes, that was it. I'll read up more about the command.

Does the CEF binary version matter? Do you have a version you think good to try?
 

monkeybananas

New Member
Looks like I figured out the correct version of the cef_binary: 4280. I also successfully cleaned up left over files from previous installation attempts so that the newly compiled version could be installed and run.

What all of the above has let me do is install OBS v27.1.3 with commits through October 4th 2021. However there's a commit reverted at a later date which fixes a bug and I would like to make sure that bug fix is included in my build. How do I make sure the following revert is part of my build?
https://github.com/obsproject/obs-studio/commit/0815d5c887c934c7ad9e03cfd18fb1103fabf49b

Is the answer to further investigate listing tags and checking out tags?
 

monkeybananas

New Member
All sorted. I had done all of this kind of thing back before December 2021, but in the interim forgot the entire process. Thanks for helping me out. Hopefully the info will stick this time.
 
Top