Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1581

Objective C++ and QMake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.10.0 Alpha
    • 4.3.3, 5.7.0
    • Build tools: qmake
    • None
    • fabedd399ebe4d28d6eb62c8a863f1bbcce78d3a

    Description

      On the Mac it is possible to use Objective-C++ to mix the Mac API and C++. These files have .mm extension and must be put in OBJECTIVE_SOURCES variable. This works OK, except when an objective-C++ class uses the Q_OBJECT macro. What is happening is that qmake generate moc file with .cpp extension even for objective-C++ files. When renaming the corresponding moc file with .mm extension and modifying the makefile the project builds fine. The build system should be able to handle to handle .mm files also when using the Q_OBJECT macro.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              typz Francois Ferrand
              sanonymous Nokia Qt Support (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes