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
Re: mac qmake .obj/debug-shared
Simply set OBJECTS_DIR to desirable value in the .pro file.
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
Re: mac qmake .obj/debug-shared
Quote:
Originally Posted by
denis.bz
qmake 'OBJECT_DIR = .obj'
doesn't mkdir .obj
Because it should be OBJECTS_DIR.
Quote:
Originally Posted by
denis.bz
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
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.
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).