diff --git a/libsrc/hyperion/Hyperion.cpp b/libsrc/hyperion/Hyperion.cpp index d40746cb..8a21af4f 100644 --- a/libsrc/hyperion/Hyperion.cpp +++ b/libsrc/hyperion/Hyperion.cpp @@ -82,8 +82,11 @@ LedString Hyperion::createLedString(const Json::Value& ledsConfig) Json::Value Hyperion::loadConfig(const std::string& configFile) { + // make sure the resources are loaded (they may be left out after static linking) + Q_INIT_RESOURCE(resource); + // read the json schema from the resource - QResource schemaData(":/hyperion.schema.json"); + QResource schemaData(":/hyperion-schema"); assert(schemaData.isValid()); Json::Reader jsonReader; diff --git a/libsrc/hyperion/resource.qrc b/libsrc/hyperion/resource.qrc index f11664c4..4181fbe8 100644 --- a/libsrc/hyperion/resource.qrc +++ b/libsrc/hyperion/resource.qrc @@ -1,5 +1,5 @@ - hyperion.schema.json + hyperion.schema.json