Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Generate MOC files

    General and Desktop
    2
    3
    2889
    Loading More Posts
    • 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.
    • T
      teknopaul last edited by

      Hi I have a QT project that is large and I did not write and I am trying to write a plugin.

      It uses CMake and the build process is not generating moc_foo.cxx files.

      Any one have any idea of how to do this

      I'm struggling with reading blogs that all assume you know what a macro is and where you put one.

      I'm using QtCreator but there was no pro file so its just an elaborate text editor and it does nto seem to have an features for running cmake or generating mocs or anything like that.

      Any help much appreciated

      1 Reply Last reply Reply Quote 0
      • G
        goetz last edited by

        Have a look in this "Qt Quarterly article on Qt an CMake":/quarterly/view/using_cmake_to_build_qt_projects, this should solve pretty much of your problems.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • T
          teknopaul last edited by

          I found that build was a little more complicated than that, however I was able to generate the moc_foo.cxx in my build pocess by just running.

          moc foo.h > moc_foo.h

          1 Reply Last reply Reply Quote 0
          • First post
            Last post