obsproject / obs-plugintemplate

GNU General Public License v2.0
307 stars 142 forks source link

FIX for ubuntu as of december 5 of 2022 #58

Closed xor32dotcom closed 1 year ago

xor32dotcom commented 1 year ago

renaming this 2 lines make compilation possible on my machine

i installed the associated libraries by running

sudo apt-get install libobs-dev

Description

Motivation and Context

How Has This Been Tested?

Types of changes

Checklist:

xor32dotcom commented 1 year ago

i mainly wrote this to bring attention to the issue rather than introducing an official fix

xor32dotcom commented 1 year ago

/usr/bin/ld: cannot find -lLibObs: No such file or directory collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/obs-plugintemplate.dir/build.make:97: obs-plugintemplate.so] Error 1 make[1]: [CMakeFiles/Makefile2:83: CMakeFiles/obs-plugintemplate.dir/all] Error 2 make: *** [Makefile:156: all] Error 2

when actually trying to build the file it appears as if you have to manually rename it to -libobs

xor32dotcom commented 1 year ago

renamed line 54 to libobs instead of LibObs and the make file successfully produced an .so file

RytoEX commented 1 year ago

See also #55.

Fenrirthviti commented 1 year ago

Duplicate of #55

libobs-dev is a package that is not maintained by us, and is not supported as a build method. More information in duplicate PR.