Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Using ENUM type in QML with static library built using Yocto
Forum Updated to NodeBB v4.3 + New Features

Using ENUM type in QML with static library built using Yocto

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 169 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JTSlick
    wrote on last edited by
    #1

    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 += -lQCoreData

    I 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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved