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. Can't build Qt6 from sources: invalid synax of QML modules
Forum Updated to NodeBB v4.3 + New Features

Can't build Qt6 from sources: invalid synax of QML modules

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 246 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.
  • R Offline
    R Offline
    r3d9477
    wrote on 19 Nov 2024, 14:41 last edited by r3d9477
    #1

    Hi everyone, I'm trying to build Qt6 installed via Conan

    [requires]
    boost/1.85.0
    gtest/1.14.0
    qt/6.7.3
    
    [options]
    qt/*:shared=True
    qt/*:qtshadertools=True
    qt/*:qtdeclarative=True
    
    [generators]
    CMakeDeps
    CMakeToolchain
    
    [layout]
    cmake_layout
    
    

    but got strange exception:

    /home/build/cppproject/.devcontainer/conan2_cache/p/qt2bd365c604ca6/s/src/qt3d/usecases/CleanQmlDream.qml:50:Unexpected token `identifier'
    /home/build/cppproject/.devcontainer/conan2_cache/p/qt2bd365c604ca6/s/src/qtdeclarative/src/quick/doc/snippets/qml/image-ext.qml:14:Syntax error
    qmldir file not found at "/home/build/.conan2/p/b/qt9d62bfe7ba39d/p/qml/Qt/test"
    ...
    ...
    ...
    /home/build/cppproject/.devcontainer/conan2_cache/p/qt2bd365c604ca6/s/src/qtdeclarative/tests/auto/quick/qquickloader/data/InvalidSourceComponent.qml:4:Incomplete binding, expected token `:` or `{`
    qmldir file not found at "/home/build/.conan2/p/b/qt9d62bfe7ba39d/p/qml/Qt/test"
    qmldir file not found at "/home/build/.conan2/p/b/qt9d62bfe7ba39d/p/qml/Qt/test"
    /home/build/cppproject/.devcontainer/conan2_cache/p/qt2bd365c604ca6/s/src/qtdeclarative/tests/manual/qmllsformatter/test.qml:21:Syntax error
    /home/build/cppproject/.devcontainer/conan2_cache/p/qt2bd365c604ca6/s/src/qtvirtualkeyboard/src/virtualkeyboard/doc/snippets/qtvirtualkeyboard-custom-language-popup.qml:90:Syntax error
    

    Full error log: https://pastebin.com/gPxDgfgh

    Does anybody know what was happened?
    Thanks

    1 Reply Last reply
    1
    • L Offline
      L Offline
      leadbelly
      wrote on 8 Apr 2025, 09:29 last edited by
      #2

      I was also seeing the same strange error and struggling to work out where it came from:

      qmldir file not found at "some/path"
      

      turned out it was a call to qt_import_qml_plugins.

      Not sure what this means in the context of this conan build, though.

      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