PDA

View Full Version : mac qmake .obj/debug-shared



denis.bz
22nd June 2007, 17:47
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

jacek
22nd June 2007, 18:49
Simply set OBJECTS_DIR to desirable value in the .pro file.

denis.bz
22nd June 2007, 20:25
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

jacek
22nd June 2007, 22:12
qmake 'OBJECT_DIR = .obj'
doesn't mkdir .obj
Because it should be OBJECTS_DIR.


and doesn't do .moc;
You have to set MOC_DIR to get this. There's also UI_DIR.


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.

denis.bz
2nd July 2007, 17:42
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).