exeldro / obs-source-record

GNU General Public License v2.0
351 stars 40 forks source link

Compile on arm64 #81

Closed Vitalicus closed 1 year ago

Vitalicus commented 1 year ago

I have a Radxa Rock 5b with Armbian system installed and OBS 28.0.11 version still. I try to compile your plugin, but I recive a error:

error: implicit declaration of function ‘obs_view_add2’; did you mean ‘obs_view_add’? [-Werror=implicit-function-declaration]
  963 |                 context->video_output = obs_view_add2(context->view, &ovi);
      |                                         ^~~~~~~~~~~~~
      |                                         obs_view_add
/home/vitalicus/Downloads/obs-source-record-master/source-record.c:963:39: error: assignment to ‘video_t *’ {aka ‘struct video_output *’} from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion]
  963 |                 context->video_output = obs_view_add2(context->view, &ovi);
      |                                       ^
cc1: all warnings being treated as errors
gmake[2]: *** [CMakeFiles/source-record.dir/build.make:76: CMakeFiles/source-record.dir/source-record.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/source-record.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2
exeldro commented 1 year ago

the master requires obs 29 for obs 28 you can use: https://github.com/exeldro/obs-source-record/releases/tag/0.3.1