#54 Build with Qt 4.8.3 on Mac OS X 10.8.2 not working


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:


According to the README the following commands should build qcachegrind: qmake; make

When I try this, the following happens:

(1)$ pwd
(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.


  • Josef Weidendorfer

    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"?


  • jcowles-w

    jcowles-w - 2013-02-20

    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.

    • Anonymous - 2013-04-08

      I compiled it on OS X 10.8.3 with QT 5.0.1 without any problems. I just followed the README file instructions.

    • Josef Weidendorfer

      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.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks