Trying to install obs-ghostscript from Aur I get the following error:
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
What are the needed steps to ;
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
As I said: I don’t have the first clue about obs and making presentations with it, but this sounds like a reasonable alternative way of achieving what this plugin does.
Can’t help with the PKGBUILD - I’d first try to compile without it, from source
and once it works, use what you learned about the options and needed steps to translate that into the PKGBUILD.
It’s likely a lot of work and a steep learning curve for you.
Perhaps the source is just too old to make it work with the modern tools Arch and Manjaro uses?
Even with using the -DCMAKE_POLICY_VERSION_MINIMUM='3.5' Cmake flag, it appears it will need upstream changes for GCC 14. Doesn’t seem likely since there’s been no upstream activity in about 5 years.
[ 50%] Building C object CMakeFiles/obs-ghostscript.dir/src/obs-ghostscript.c.o
/build/obs-ghostscript/src/obs-ghostscript-1.3/src/obs-ghostscript.c: In function ‘ghostscript_display_page’:
/build/obs-ghostscript/src/obs-ghostscript-1.3/src/obs-ghostscript.c:115:37: error: passing argument 5 of ‘gs_texture_create’ from incompatible pointer type [-Wincompatible-pointer-types]
115 | GS_BGRX, 1, &context->cached_raster, GS_DYNAMIC);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| unsigned char **
In file included from /usr/include/obs/obs.h:24,
from /usr/include/obs/obs-module.h:20,
from /build/obs-ghostscript/src/obs-ghostscript-1.3/src/obs-ghostscript.c:1:
/usr/include/obs/graphics/graphics.h:619:73: note: expected ‘const uint8_t **’ {aka ‘const unsigned char **’} but argument is of type ‘unsigned char **’
619 | uint32_t levels, const uint8_t **data, uint32_t flags);
| ~~~~~~~~~~~~~~~~^~~~
make[2]: *** [CMakeFiles/obs-ghostscript.dir/build.make:79: CMakeFiles/obs-ghostscript.dir/src/obs-ghostscript.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/obs-ghostscript.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Sorry but this isn’t a valid advice, the issue is that cmake minimum required version too low for cmake 4.0, it want at least 3.5, it can be avoided passing a cmake flag or by updating CMakeLists.txt in the source