Error 2 compiling slim-fork v1.4.1 (Debian 12 on Raspberry Pi 4; OS updated daily). I'm not a programmer, so I can't fix.
[ 63%] Building CXX object CMakeFiles/slim.dir/main.cpp.o
/bin/c++ -DAPPNAME=\"slim\" -DHAVE_SHADOW -DPKGDATADIR=\"/usr/local/share/slim\" -DSYSCONFDIR=\"/etc\" -DVERSION=\"1.4.1\" -I/home/horen/Downloads/builds/slim-1.4.1/build -I/home/horen/Downloads/builds/slim-1.4.1 -I/usr/include/freetype2 -MD -MT CMakeFiles/slim.dir/main.cpp.o -MF CMakeFiles/slim.dir/main.cpp.o.d -o CMakeFiles/slim.dir/main.cpp.o -c /home/horen/Downloads/builds/slim-1.4.1/main.cpp
In file included from /home/horen/Downloads/builds/slim-1.4.1/main.cpp:14:
/home/horen/Downloads/builds/slim-1.4.1/app.h:63:38: error: ‘std::string’ has not been declared
63 | static void replaceVariables(std::string &input,
| ^~~
/home/horen/Downloads/builds/slim-1.4.1/app.h:64:77: error: ‘string’ in namespace ‘std’ does not name a type
64 | const std::string &var,
| ^~~~~~
/home/horen/Downloads/builds/slim-1.4.1/app.h:17:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
16 | #include <x11 xlib.h="">
+++ |+#include <string>
17 |
/home/horen/Downloads/builds/slim-1.4.1/app.h:65:77: error: ‘string’ in namespace ‘std’ does not name a type
65 | const std::string &value);
| ^~~~~~</string></x11></string></string>
/home/horen/Downloads/builds/slim-1.4.1/app.h:65:72: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
65 | const std::string &value);
| ^~~</string></string>
/home/horen/Downloads/builds/slim-1.4.1/app.h:105:14: error: ‘string’ in namespace ‘std’ does not name a type
105 | std::string themeName; ///< Name of the theme in use
| ^~~~~~
/home/horen/Downloads/builds/slim-1.4.1/app.h:105:9: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
105 | std::string themeName; ///< Name of the theme in use
| ^~~
/home/horen/Downloads/builds/slim-1.4.1/app.h:106:14: error: ‘string’ in namespace ‘std’ does not name a type
106 | std::string mcookie; ///< Randomly generated X auth cookie
| ^~~~~~
/home/horen/Downloads/builds/slim-1.4.1/app.h:106:9: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
106 | std::string mcookie; ///< Randomly generated X auth cookie
| ^~~
make[2]: *** [CMakeFiles/slim.dir/build.make:79: CMakeFiles/slim.dir/main.cpp.o] Error 1
make[2]: Leaving directory '/home/horen/Downloads/builds/slim-1.4.1/build'
make[1]: *** [CMakeFiles/Makefile2:164: CMakeFiles/slim.dir/all] Error 2
make[1]: Leaving directory '/home/horen/Downloads/builds/slim-1.4.1/build'
make: *** [Makefile:139: all] Error 2</string></string></string></string>
I inspected slim-1.4.0/app.h and found that -1.4.1/app.h was missing (purposefully?) these lines:
I added them to -1.4.1/app.h and it compiled without error.
Yes, I know. Unfortunately I'm not able to read it (aphasia).