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. Build Qt Qml using Bazel
Forum Updated to NodeBB v4.3 + New Features

Build Qt Qml using Bazel

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 3 Posters 2.4k Views 2 Watching
  • 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.
  • G Offline
    G Offline
    Gannu Bangalore
    wrote on last edited by Gannu Bangalore
    #1

    Need help on How to build Qt Qml application using Bazel build. There is a way to incude Qt Widget ui and header, source files in Bazel. But not know how to add qml files in Bazel and build.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean like show in this example project but adding the QtQuick library ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gannu Bangalore
        wrote on last edited by
        #3

        Hi, Yes, But not sure how to include .qml files in bazel build files as it supports C++.

        sierdzioS 1 Reply Last reply
        0
        • G Gannu Bangalore

          Hi, Yes, But not sure how to include .qml files in bazel build files as it supports C++.

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @Gannu-Bangalore said in Build Qt Qml using Bazel:

          Hi, Yes, But not sure how to include .qml files in bazel build files as it supports C++.

          QML is read from disk at runtime. There is no need for a build system to "support" it.

          If you want to bake QML files into your application, then use QRC (Qt Resource System). I don't know bezel but it should have some means of running external tools, right? If so, you can simply write your QRC file and run rcc binary (from QtDirectory/bin folder) on it to generate a c++ file with embedded resources. Then you include that c++ file in your build instructions. Should work :-)

          (Z(:^

          1 Reply Last reply
          2
          • G Offline
            G Offline
            Gannu Bangalore
            wrote on last edited by
            #5

            Bazel is a build system for Tensorflow code...I am using tensor flow with Qt qml .... so Qt Qml has to be build using bazel...there is method to include cpp files and build ....but there are no instructions how to add qml files in bazel build system for compilation.

            sierdzioS 1 Reply Last reply
            0
            • G Gannu Bangalore

              Bazel is a build system for Tensorflow code...I am using tensor flow with Qt qml .... so Qt Qml has to be build using bazel...there is method to include cpp files and build ....but there are no instructions how to add qml files in bazel build system for compilation.

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @Gannu-Bangalore said in Build Qt Qml using Bazel:

              Bazel is a build system for Tensorflow code...I am using tensor flow with Qt qml .... so Qt Qml has to be build using bazel...there is method to include cpp files and build ....but there are no instructions how to add qml files in bazel build system for compilation.

              I just wrote you how to do it... just put that description into practice. If you're fine with reading QML files from your hard drive (that might be a good solution fo a quick start), then you don't need to do anything in bezel. Just point your QQmlEngine to main.qml file, wherever it is on your disk.

              (Z(:^

              1 Reply Last reply
              2
              • G Offline
                G Offline
                Gannu Bangalore
                wrote on last edited by
                #7

                Thank you Man. Got it :-)

                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