nowrep / obs-vkcapture

OBS Linux Vulkan/OpenGL game capture
GNU General Public License v2.0
532 stars 25 forks source link

Unable to compile - wl_proxy_marshal_flags #104

Closed GFA-SkyRanger closed 1 year ago

GFA-SkyRanger commented 2 years ago

[ 23%] Built target VkLayer_obs_vkcapture [ 61%] Built target obs_glcapture [ 69%] Building C object CMakeFiles/linux-vkcapture.dir/src/vkcapture.c.o In file included from /_data/ramdisk/Download/obs-vkcapture-1.2.0/src/wlcursor.h:24, from /_data/ramdisk/Download/obs-vkcapture-1.2.0/src/vkcapture.c:44: /_data/ramdisk/Download/obs-vkcapture-1.2.0/src/screencopy_unstable_v1.h: In function ‘ext_screencopy_manager_v1_capture_output’: /_data/ramdisk/Download/obs-vkcapture-1.2.0/src/screencopy_unstable_v1.h:196:12: warning: implicit declaration of function ‘wl_proxy_marshal_flags’; did you mean ‘wl_proxy_marshal_array’? [-Wimplicit-function-declaration] 196 | surface = wl_proxy_marshal_flags((struct wl_proxy *) ext_screencopy_manager_v1, | ^~~~~~~~~~~~~~~~~~~~~~ | wl_proxy_marshal_array /_data/ramdisk/Download/obs-vkcapture-1.2.0/src/screencopy_unstable_v1.h:196:10: warning: assignment to ‘struct wl_proxy *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 196 | surface = wl_proxy_marshal_flags((struct wl_proxy *) ext_screencopy_manager_v1, | ^ /_data/ramdisk/Download/obs-vkcapture-1.2.0/src/screencopy_unstable_v1.h: In function ‘ext_screencopy_surface_v1_destroy’: /_data/ramdisk/Download/obs-vkcapture-1.2.0/src/screencopy_unstable_v1.h:641:115: error: ‘WL_MARSHAL_FLAG_DESTROY’ undeclared (first use in this function) 641 | EXT_SCREENCOPY_SURFACE_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) ext_screencopy_surface_v1), WL_MARSHAL_FLAG_DESTROY); | ^~~~~~~~~~~~~~~~~~~~~~~ /_data/ramdisk/Download/obs-vkcapture-1.2.0/src/screencopy_unstable_v1.h:641:115: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [CMakeFiles/linux-vkcapture.dir/build.make:63: CMakeFiles/linux-vkcapture.dir/src/vkcapture.c.o] Fehler 1 make[1]: *** [CMakeFiles/Makefile2:134: CMakeFiles/linux-vkcapture.dir/all] Fehler 2 make: *** [Makefile:130: all] Fehler 2

GFA-SkyRanger commented 1 year ago

Thank you, it compiles now! now testing it, if it works.