Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-16976

QObject based files generated by rule are not processed by moc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.2.0
    • Qt Creator 4.1.0
    • None
    • * Ubuntu 16.04.1/64bit
      * Qt 5.7 from qt.io installed under ~/local/qt/5.7
      * KDSoap built locally and installed under ~/local/kdsoap
      * the builds are done by loading the .qbs in QtCreator (from ~/local/qt/)
    • 9e6d470c3ae4922ff582e41ed18e796c1bb90537

    Description

      I am trying to create a qbs module for KDSoap (https://github.com/KDAB/KDSoap).

      A qmake project using KDSoap and the ksdoap.pri provided by KDSoap worked without issues.

      I have created a simple kdsoap.qbs module to do the similar steps kdsoap.pri does; that is, from a given foo.wsdl:

      1) create a wsdl_foo.h
      2) create a wsdl_foo.cpp
      3) link them to my app

      Steps 1) and 2) work and wsdl_foo.h and wsdl_foo.cpp are generated. These files contains Qt classes and they should now be parsed by moc.

      However, if I am building from scratch (I close QtCreator, delete the build dir, open QtCreator, open the project, build), the moc is never run.

      Sometimes it is enough to touch the kdsoap.qbs and, on the next build, the moc starts being run.

      I have attached a sample project.

      Attachments

        1. kdsoap-logs.tar.gz
          17 kB
        2. kdsoap-qbs.tar.gz
          5 kB
        3. QBS-1021.tar
          10 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            iborco Ionutz Borcoman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes