./installer.sh compile errors on macOS, is this supported on Mac?
Compiling sysfex...
In file included from src/sysfex.cpp:19:
src/functions.h:9:37: error: 'auto' not allowed in function prototype
void print(string icon, string key, auto value)
^~~~
src/functions.h:43:5: error: no matching function for call to 'print'
print("", "--help", "Print this screen");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [18]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
src/functions.h:44:5: error: no matching function for call to 'print'
print("", "--ascii <value>", "If value == 0, don't print the ascii art, else do");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [50]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
src/functions.h:45:5: error: no matching function for call to 'print'
print("", "--ascii-dir <path-to-ascii>", "Specify the file which you want to be shown as ascii-art");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [57]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
src/functions.h:46:5: error: no matching function for call to 'print'
print("", "--ascii-beside-txt <value>", "Choose whether ascii art will be printed beside infos or not");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [61]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
src/functions.h:47:5: error: no matching function for call to 'print'
print("", "--icons <value>", "If value == 0, don't print font-icons beside informations, else do");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [67]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
src/functions.h:48:5: error: no matching function for call to 'print'
print("", "--config <path-to-config>", "Specify the file which you want to be used as the config file");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [62]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:4:
src/modules/cpu.h:30:5: error: no matching function for call to 'print'
print("", "CPU", cpu);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:5:
src/modules/de.h:12:9: error: no matching function for call to 'print'
print("", "DE/WM", desktop_session);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char *' to 'int' for 3rd argument; dereference the argument with *
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:6:
src/modules/host.h:18:5: error: no matching function for call to 'print'
print("", "Host", name+" "+version);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'basic_string<char>' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:7:
src/modules/kernel.h:5:2: error: no matching function for call to 'print'
print("", "Kernel", uname_info.release);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'char [256]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:8:
src/modules/os.h:24:5: error: no matching function for call to 'print'
print("", "OS", name+" "+uname_info.machine);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'basic_string<char>' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:9:
src/modules/pkgs.h:48:5: error: no matching function for call to 'print'
print("", "Pkgs", pkg);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:10:
src/modules/ram.h:27:5: error: no matching function for call to 'print'
print("", "Mem", ram);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:11:
src/modules/resolution.h:12:5: error: no matching function for call to 'print'
print("", "Res", res);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:12:
src/modules/shell.h:3:2: error: no matching function for call to 'print'
print("", "Shell", std::getenv("SHELL"));
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'char *' to 'int' for 3rd argument; dereference the argument with *
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:14:
src/modules/uptime.h:49:5: error: no matching function for call to 'print'
print("", "Uptime", time);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
17 errors generated.
An error occured. Failed to install sysfex
[email protected] ~/sysfex (main) [1]> ./installer.sh
An existing installation of Sysfex is found. Remove or override it? [Y/n] y
Removing old sysfex installation
rm: /usr/bin/sysfex: No such file or directory
Install Sysfex? [Y/n] y
Compiling sysfex...
In file included from src/sysfex.cpp:19:
src/functions.h:9:37: error: 'auto' not allowed in function prototype
void print(string icon, string key, auto value)
^~~~
src/functions.h:43:5: error: no matching function for call to 'print'
print("", "--help", "Print this screen");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [18]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
src/functions.h:44:5: error: no matching function for call to 'print'
print("", "--ascii <value>", "If value == 0, don't print the ascii art, else do");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [50]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
src/functions.h:45:5: error: no matching function for call to 'print'
print("", "--ascii-dir <path-to-ascii>", "Specify the file which you want to be shown as ascii-art");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [57]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
src/functions.h:46:5: error: no matching function for call to 'print'
print("", "--ascii-beside-txt <value>", "Choose whether ascii art will be printed beside infos or not");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [61]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
src/functions.h:47:5: error: no matching function for call to 'print'
print("", "--icons <value>", "If value == 0, don't print font-icons beside informations, else do");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [67]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
src/functions.h:48:5: error: no matching function for call to 'print'
print("", "--config <path-to-config>", "Specify the file which you want to be used as the config file");
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char [62]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:4:
src/modules/cpu.h:30:5: error: no matching function for call to 'print'
print("", "CPU", cpu);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:5:
src/modules/de.h:12:9: error: no matching function for call to 'print'
print("", "DE/WM", desktop_session);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'const char *' to 'int' for 3rd argument; dereference the argument with *
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:6:
src/modules/host.h:18:5: error: no matching function for call to 'print'
print("", "Host", name+" "+version);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'basic_string<char>' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:7:
src/modules/kernel.h:5:2: error: no matching function for call to 'print'
print("", "Kernel", uname_info.release);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'char [256]' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:8:
src/modules/os.h:24:5: error: no matching function for call to 'print'
print("", "OS", name+" "+uname_info.machine);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'basic_string<char>' to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:9:
src/modules/pkgs.h:48:5: error: no matching function for call to 'print'
print("", "Pkgs", pkg);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:10:
src/modules/ram.h:27:5: error: no matching function for call to 'print'
print("", "Mem", ram);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:11:
src/modules/resolution.h:12:5: error: no matching function for call to 'print'
print("", "Res", res);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:12:
src/modules/shell.h:3:2: error: no matching function for call to 'print'
print("", "Shell", std::getenv("SHELL"));
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'char *' to 'int' for 3rd argument; dereference the argument with *
void print(string icon, string key, auto value)
^
In file included from src/sysfex.cpp:20:
In file included from src/modules.h:14:
src/modules/uptime.h:49:5: error: no matching function for call to 'print'
print("", "Uptime", time);
^~~~~
src/functions.h:9:6: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'int' for 3rd argument
void print(string icon, string key, auto value)
^
17 errors generated.
An error occured. Failed to install sysfex