I tried to build kcachegrind-0.7.3 on Mac OS X 10.8.2 according to the instructions in the README file, but it does not work.
I downloaded and installed Qt 4.8.3 for Mac OS X from the following link:
http://releases.qt-project.org/qt4/source/qt-mac-opensource-4.8.3.dmg
According to the README the following commands should build qcachegrind: qmake; make
When I try this, the following happens:
(1)$ pwd
/Users/stm/Documents/CTEST/kcachegrind-0.7.3
(1)$ qmake -v
QMake version 2.01a
Using Qt version 4.8.3 in /Library/Frameworks
(1)$ qmake
WARNING: Ignored (not found) '/Users/stm/Documents/CTEST/kcachegrind-0.7.3/cgview/cgview.xcodeproj'
WARNING: Ignored (not found) '/Users/stm/Documents/CTEST/kcachegrind-0.7.3/qcachegrind/qcachegrind.xcodeproj'
bruno.piripiri.de (1)$ ls
AUTHORS NEWS kcachegrind.spec.cmake
CMakeLists.txt README libcore
COPYING README-sfrelease libviews
ChangeLog TODO pics
INSTALL cgview qcachegrind
KnownBugs converters qcg.pro
Mainpage.dox kcachegrind qcg.xcodeproj
Messages.sh kcachegrind.lsm.cmake version.h.cmake
(1)$ make
make: *** No targets specified and no makefile found. Stop.
No Makefile was generated by qmake.
I known that compiling qcachegrind worked on MacOS, but I do not really check this.
I expected "qmake" to pick up the "qcg.pro" project description file in the top directory
to build the Makefile (as is done on Linux).
So, if you can help me correcting the README, that would be cool.
I see that your qmake call had an effect: it produced a "qcg.xcodproj".
Can you load that with xcode, and check if you can build it? There should
be a "qcachegrind" binary in subdirectory "qcachegrind/".
Or you could run qmake directly in qcachegrind subdir:
"cd qcachegrind; qmake; make". If that works, it probably
again generates a *.xcodeproj".
To switch qmake into Makefile generation, perhaps it
needs to be called with "qmake -unix"?
Josef
Qt 4.8.4 worked for me by using the following instead of plain qmake:
qmake -spec 'macx-g++'
As a side note, I could not get Qt 5.x to work at all. Both of these points should be added to the install guide.
I compiled it on OS X 10.8.3 with QT 5.0.1 without any problems. I just followed the README file instructions.
I would expect that qmake on OSX chooses a fitting qmake spec file automatically.
Did you use Qt 5.0.1 when trying to compile for that?
If you had "make" working successfully with Qt 4.8.4 before from the same directory,
there may be generated files lay around which break the compile with Qt5 afterwards.
You should run "make clean" before.