Using ENUM type in QML with static library built using Yocto
-
I have a project that uses an ENUM declared in a .h file in a qml file. The .h file is a part of a static library built using QT and then it is registered in the application using the qmlRegisterUncreatableType function. If this is built on a local machine everything functions correctly. If I attempt to build the application using the Yocto bitbake environment which also builds the static library I encounter the "Unable to handle unregistered datatype.." message. The only thing that is changing is some references to the static library from using the build location specification on the local machine to just referencing the use of the library which is part of the linux based system.
(local build)
LIBS += -L$$OUT_PWD/../QCoreData/build/release -lQCoreData(yocto build)
LIBS += -lQCoreDataI am pretty sure that is working because if I do not linclude that reference in the yocto build I get different build time errors and not run time errors. I have also copied the yocto built static library and used it in the local directory structure and produced a working application. Any thoughts on where I should be focusing on, is it related to the .moc files or just something not configured properly with the .pro file for building.