Results 1 to 5 of 5

Thread: mac qmake .obj/debug-shared

  1. #1
    Join Date
    Jun 2007
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X

    Default mac qmake .obj/debug-shared

    Folks,
    what qmake variables / .pro / libs determine whether qmake generates
    OBJECTS_DIR = .obj/debug-shared
    or OBJECTS_DIR = ./
    in Makefile ?
    I used to get .obj/debug-shared with qt-mac-opensource-src-4.1.0,
    was happy if clueless;
    then I installed
    1) qt-mac-opensource-4.3.0.dmg
    2) configure + make qt-mac-opensource-src-4.3.0 libs, default no -debug
    3) qt-mac-opensource-4.3.0-debug-libs.dmg
    and now get
    OBJECTS_DIR = ./

    which gums up ./*.o ./moc*
    (I don't care about debugging for now, just want .obj .moc subdirs).

    Thanks
    -- denis

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: mac qmake .obj/debug-shared

    Simply set OBJECTS_DIR to desirable value in the .pro file.

  3. #3
    Join Date
    Jun 2007
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: mac qmake .obj/debug-shared

    Jacek,
    qmake 'OBJECT_DIR = .obj'
    doesn't mkdir .obj and doesn't do .moc;
    sure you could do that yourself,
    but the question is, what turns .obj/debug-shared on/off ?
    Thanks

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: mac qmake .obj/debug-shared

    Quote Originally Posted by denis.bz View Post
    qmake 'OBJECT_DIR = .obj'
    doesn't mkdir .obj
    Because it should be OBJECTS_DIR.

    Quote Originally Posted by denis.bz View Post
    and doesn't do .moc;
    You have to set MOC_DIR to get this. There's also UI_DIR.

    Quote Originally Posted by denis.bz View Post
    but the question is, what turns .obj/debug-shared on/off ?
    I don't remember well, but qmake defaults could have changed between 4.1 and 4.3.

  5. #5
    Join Date
    Jun 2007
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: mac qmake .obj/debug-shared

    It turns out that "configure" on macs generates a 30-line

    .../qt-mac-opensource-src-4.3.0/.qmake.cache

    which qmake uses -- unless it's gone, e.g. not in the .dmg release,
    arrrrrrrrgh.
    (A modest suggestion for qmake people: put it in mkspecs/macxx instead).

Similar Threads

  1. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57
  2. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  3. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.