def __no_qt_package_error(self): import distro cpu_architecture = platform.machine() print('') hifi_utils.color('red') print("Sorry, we don't have a prebuilt Qt package for " + distro.name(pretty=True) + " on " + cpu_architecture + ".") hifi_utils.color('white') print('') print( "If this is a recent distribution, dating from 2021 or so, you can try building" ) print( "against the system Qt by running this command, and trying again:") print(" export VIRCADIA_USE_SYSTEM_QT=1") print("") hifi_utils.color('clear') print( "If you'd like to try to build Qt from source either for building Vircadia, or" ) print( "to contribute a prebuilt package for your distribution, please see the" ) print("documentation at: ", end='') hifi_utils.color('blue') print( "https://github.com/vircadia/vircadia/tree/master/tools/qt-builder" ) hifi_utils.color('clear') print('') raise hifi_utils.SilentFatalError(2)
def __unsupported_error(self): import distro cpu_architecture = platform.machine() print('') hifi_utils.color('red') print("Sorry, " + distro.name(pretty=True) + " on " + cpu_architecture + " is too old and won't be officially supported.") hifi_utils.color('white') print("Please upgrade to a more recent Linux distribution.") hifi_utils.color('clear') print('') raise hifi_utils.SilentFatalError(3)