Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Generate MOC files
QtWS25 Last Chance

Generate MOC files

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.1k 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.
  • T Offline
    T Offline
    teknopaul
    wrote on last edited by
    #1

    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
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      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
      0
      • T Offline
        T Offline
        teknopaul
        wrote on last edited by
        #3

        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
        0

        • Login

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