Results 1 to 2 of 2

Thread: qmake and .mm files

  1. #1
    Join Date
    Jan 2008
    Posts
    155
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default qmake and .mm files

    Hi!

    A strange thing happens when I try to include a .mm file in my .pro file for the generation of my Xcode project.

    qmake runs without complaints.

    In the Xcode project, the .mm file is included but it is apparently ignored since i get link errors to it.

    However, it works if I change the extension to .cpp and use that name in the .pro file, run qmake, and after the Xcode project is generated I rename it back to .mm again and build.

    Any clues?

    Of course I can do all this, but it is ugly and not very elegant.

    The reason for needing .mm files is that I need to do some native Mac code in my Qt project.

    BN
    MacOSX user dabbling with Linux and Windows.

  2. #2
    Join Date
    Jan 2008
    Posts
    155
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: qmake and .mm files

    Just found that the .mm file was not enabled for the project target, the project built properly after I enabled it.
    The issue persists, however. Why is this?

    BN
    MacOSX user dabbling with Linux and Windows.

Similar Threads

  1. QMake to Build Help Files
    By ChrisW67 in forum Newbie
    Replies: 4
    Last Post: 30th July 2011, 22:45
  2. Portable qmake .pro files...
    By andy.fillebrown in forum Qt Programming
    Replies: 0
    Last Post: 19th September 2009, 23:34
  3. QMake Project Files....
    By TemporalBeing in forum Qt Programming
    Replies: 2
    Last Post: 6th May 2009, 16:15
  4. qmake: include files?
    By Doug Broadwell in forum Newbie
    Replies: 2
    Last Post: 16th May 2007, 23:34
  5. QMake / headers / lot of files
    By jcr in forum Qt Programming
    Replies: 7
    Last Post: 10th January 2006, 12:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.