Nominate our 2022 Qt Champions!

Can't find installed QT4 when using 'make .... xconfig' command

  • Hey folks, (I'm using a Mac OS X Yosemite Version 10.10.2 with the latest xcode installed)

    I'm trying to change a kernel file for an open source project using this guide -- IF ANY OF YOU COULD PLEASE HELP ME FIGURE OUT WHY MY QT (qmake) CAN'T BE FOUND

    When I do the following

    $ . build/
    $ export ARCH=x86
    $ lunch android_x86-eng
    $ make -C kernel O=/work/config/.config xconfig #(THIS IS WHERE THE ERROR HAPPENS)

    I get the following error (even though I installed QT4 from here:

    $ sudo make -C kernel O=/work/config/.config xconfig
    GEN ./Makefile
    CHECK qt

    Unable to find the QT4 tool qmake. Trying to use QT3
    Unable to find any QT installation. Please make sure that
    the QT4 or QT3 development package is correctly installed and
    either qmake can be found or install pkg-config or set
    the QTDIR environment variable to the correct location.
    make[2]: *** No rule to make target scripts/kconfig/.tmp_qtcheck', needed byscripts/kconfig/qconf.o'. Stop.
    make[1]: *** [xconfig] Error 2
    make: *** [sub-make] Error 2

  • Lifetime Qt Champion


    Please don't post the same question multiple times.


    Closing this one