Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can't find installed QT4 when using 'make .... xconfig' command
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
qmake makefileqt4.8.4make xconfigmackernel
12 Posts 2 Posters 10.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vel.
    wrote on last edited by
    #3

    Ahh I see, thank you so much SGaist. Sorry I'm so new to this, how do I add the folder containing qmake to my PATH variable? (sorry for the dublicate question I thought I deleted the other one)

    I see my qmake is in this directory:

    /Developer/Tools/Qt/qmake

    I looked at these links but not too sure:
    http://doc.qt.io/qt-4.8/qmake-variable-reference.html
    http://doc.qt.io/qt-4.8/qmake-environment-reference.html

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      It's not qmake related it's bash configuration.

      PATH=$PATH:/Developer/Tools/Qt/
      

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      V 1 Reply Last reply
      0
      • SGaistS SGaist

        It's not qmake related it's bash configuration.

        PATH=$PATH:/Developer/Tools/Qt/
        
        V Offline
        V Offline
        Vel.
        wrote on last edited by
        #5

        @SGaist said:

        PATH=$PATH:/Developer/Tools/Qt/

        Thank you, I'll keep looking cause I did that and re-started my computer and same error :((

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          That line doesn't change PATH permanently, just for the current terminal until you close it.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          V 1 Reply Last reply
          0
          • SGaistS SGaist

            That line doesn't change PATH permanently, just for the current terminal until you close it.

            V Offline
            V Offline
            Vel.
            wrote on last edited by
            #7

            Right, sorry I did that too. and this is what I got ..... hmm I installed from here https://download.qt.io/archive/qt/4.8/4.8.5/ both qt-mac-opensource-4.8.5.dmg && qt-mac-opensource-4.8.5-debug-libs.dmg

            Pavels-MacBook-Pro:android-x86 Pavel$
            Pavels-MacBook-Pro:android-x86 Pavel$
            Pavels-MacBook-Pro:android-x86 Pavel$
            Pavels-MacBook-Pro:android-x86 Pavel$ PATH=$PATH:/Developer/Tools/Qt/
            Pavels-MacBook-Pro:android-x86 Pavel$ 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 by scripts/kconfig/qconf.o'. Stop.
            make[1]: *** [xconfig] Error 2
            make: *** [sub-make] Error 2
            Pavels-MacBook-Pro:android-x86 Pavel$

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #8

              Are you sure that qmake is there ? what does ls -la /Developers/Tools/Qt return ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              V 1 Reply Last reply
              0
              • SGaistS SGaist

                Are you sure that qmake is there ? what does ls -la /Developers/Tools/Qt return ?

                V Offline
                V Offline
                Vel.
                wrote on last edited by
                #9

                @SGaist said:

                ls -la /Developers/Tools/Qt

                That's a good point you have. I checked and got the following below... seems like it's executable and there.

                Pavels-MacBook-Pro:Qt Pavel$ pwd
                /Developer/Tools/Qt
                Pavels-MacBook-Pro:Qt Pavel$ ls -la
                total 200
                drwxrwxr-x 27 root admin 918 Nov 8 20:16 .
                drwxrwxr-x 4 root admin 136 Nov 10 13:33 ..
                lrwxr-xr-x 1 macports wheel 40 Nov 8 20:16 Assistant.app -> /Developer/Applications/Qt/Assistant.app
                lrwxr-xr-x 1 macports wheel 39 Nov 8 20:16 Designer.app -> /Developer/Applications/Qt/Designer.app
                lrwxr-xr-x 1 macports wheel 39 Nov 8 20:16 Linguist.app -> /Developer/Applications/Qt/Linguist.app
                lrwxr-xr-x 1 macports wheel 40 Nov 8 20:16 QMLViewer.app -> /Developer/Applications/Qt/QMLViewer.app
                lrwxr-xr-x 1 macports wheel 19 Nov 8 20:16 findtr -> /usr/bin/findtr-4.8
                lrwxr-xr-x 1 macports wheel 21 Nov 8 20:16 lconvert -> /usr/bin/lconvert-4.8
                lrwxr-xr-x 1 macports wheel 21 Nov 8 20:16 lrelease -> /usr/bin/lrelease-4.8
                lrwxr-xr-x 1 macports wheel 20 Nov 8 20:16 lupdate -> /usr/bin/lupdate-4.8
                lrwxr-xr-x 1 macports wheel 24 Nov 8 20:16 macdeployqt -> /usr/bin/macdeployqt-4.8
                lrwxr-xr-x 1 macports wheel 16 Nov 8 20:16 moc -> /usr/bin/moc-4.8
                lrwxr-xr-x 1 macports wheel 40 Nov 8 20:16 pixeltool.app -> /Developer/Applications/Qt/pixeltool.app
                lrwxr-xr-x 1 macports wheel 33 Nov 8 20:16 qcollectiongenerator -> /usr/bin/qcollectiongenerator-4.8
                lrwxr-xr-x 1 macports wheel 18 Nov 8 20:16 qdbus -> /usr/bin/qdbus-4.8
                lrwxr-xr-x 1 macports wheel 25 Nov 8 20:16 qdbuscpp2xml -> /usr/bin/qdbuscpp2xml-4.8
                lrwxr-xr-x 1 macports wheel 42 Nov 8 20:16 qdbusviewer.app -> /Developer/Applications/Qt/qdbusviewer.app
                lrwxr-xr-x 1 macports wheel 25 Nov 8 20:16 qdbusxml2cpp -> /usr/bin/qdbusxml2cpp-4.8
                lrwxr-xr-x 1 macports wheel 18 Nov 8 20:16 qdoc3 -> /usr/bin/qdoc3-4.8
                lrwxr-xr-x 1 macports wheel 45 Nov 8 20:16 qhelpconverter.app -> /Developer/Applications/Qt/qhelpconverter.app
                lrwxr-xr-x 1 macports wheel 27 Nov 8 20:16 qhelpgenerator -> /usr/bin/qhelpgenerator-4.8
                lrwxr-xr-x 1 macports wheel 18 Nov 8 20:16 qmake -> /usr/bin/qmake-4.8
                lrwxr-xr-x 1 macports wheel 19 Nov 8 20:16 qt3to4 -> /usr/bin/qt3to4-4.8
                lrwxr-xr-x 1 macports wheel 16 Nov 8 20:16 rcc -> /usr/bin/rcc-4.8
                lrwxr-xr-x 1 macports wheel 16 Nov 8 20:16 uic -> /usr/bin/uic-4.8
                lrwxr-xr-x 1 macports wheel 17 Nov 8 20:16 uic3 -> /usr/bin/uic3-4.8
                lrwxr-xr-x 1 macports wheel 24 Nov 8 20:16 xmlpatterns -> /usr/bin/xmlpatterns-4.8
                Pavels-MacBook-Pro:Qt Pavel$

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  And if you call qmake directly in the console ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  V 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    And if you call qmake directly in the console ?

                    V Offline
                    V Offline
                    Vel.
                    wrote on last edited by
                    #11

                    @SGaist

                    :) seems to output (shown below) the required :/ .... The installation seemed to have went correctly. I'm doing the 'make......xconfig' command (for a linux kernel modification) in a folder on my desktop. Simply going by this guide: http://arachnoid.com/android/Android-x86/
                    That's where I realized I need the Qt libraries so I installed them from the website. Is possible there is some conflict between some other systems?
                    I know I can use 'make ... menue config' instead since it doesn't use Qt libraries but it is case-sensitive which sucks on a mac since you need to do modifications there too (source: http://www.linuxchix.org/content/courses/kernel_hacking/lesson2 ) so I'd prefer 'make ... xconfig'

                    Pavels-MacBook-Pro:Qt Pavel$
                    Pavels-MacBook-Pro:Qt Pavel$ qmake
                    Usage: qmake [mode] [options] [files]

                    QMake has two modes, one mode for generating project files based on
                    some heuristics, and the other for generating makefiles. Normally you
                    shouldn't need to specify a mode, as makefile generation is the default
                    mode for qmake, but you may use this to test qmake on an existing project

                    Mode:
                    -project Put qmake into project file generation mode
                    In this mode qmake interprets files as files to
                    be built,
                    defaults to *.c; *.ui; *.y; *.l; *.ts; *.xlf; *.qrc; *.h; *.hpp; *.hh; *.hxx; *.H; *.cpp; *.cc; *.cxx; *.C
                    Note: The created .pro file probably will
                    need to be edited. For example add the QT variable to
                    specify what modules are required.
                    -makefile Put qmake into makefile generation mode (default)
                    In this mode qmake interprets files as project files to
                    be processed, if skipped qmake will try to find a project
                    file in your current working directory

                    Warnings Options:
                    -Wnone Turn off all warnings; specific ones may be re-enabled by
                    later -W options
                    -Wall Turn on all warnings
                    -Wparser Turn on parser warnings
                    -Wlogic Turn on logic warnings (on by default)
                    -Wdeprecated Turn on deprecation warnings (on by default)

                    Options:

                    • You can place any variable assignment in options and it will be *
                    • processed as if it was in [files]. These assignments will be parsed *
                    • before [files]. *
                      -o file Write output to file
                      -d Increase debug level
                      -t templ Overrides TEMPLATE as templ
                      -tp prefix Overrides TEMPLATE so that prefix is prefixed into the value
                      -help This help
                      -v Version information
                      -after All variable assignments after this will be
                      parsed after [files]
                      -norecursive Don't do a recursive search
                      -recursive Do a recursive search
                      -set <prop> <value> Set persistent property
                      -unset <prop> Unset persistent property
                      -query <prop> Query persistent property. Show all if <prop> is empty.
                      -cache file Use file as cache [makefile mode only]
                      -spec spec Use spec as QMAKESPEC [makefile mode only]
                      -nocache Don't use a cache file [makefile mode only]
                      -nodepend Don't generate dependencies [makefile mode only]
                      -nomoc Don't generate moc targets [makefile mode only]
                      -nopwd Don't look for files in pwd [project mode only]
                      Pavels-MacBook-Pro:Qt Pavel$
                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      Just thought of something: you are trying to cross-compile a linux kernel on OS X. You should rather create a virtual machine using e.g. VirtualBox and do everything directly form Linux. That will save you time.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved