Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Location
    Maryland
    Posts
    67

    Error with make xconfig


    I'm trying to recompile my kernel but I can't do make xconfig.
    Code:
    dell:/home/dave/src/linux-2.6.14.3# make xconfig
    *
    * Unable to find the QT installation. Please make sure that the
    * QT development package is correctly installed and the QTDIR
    * environment variable is set to the correct location.
    *
    make[1]: *** [scripts/kconfig/.tmp_qtcheck] Error 1
    make: *** [xconfig] Error 2
    The first time I ran and installed libqt4 which installed the core, qui, and a bunch of other files and libqt4-dev which also installed some other files, but I still get that error. Is ther esomething else I have to install?

  2. #2
    Linux Newbie eerok's Avatar
    Join Date
    Feb 2005
    Location
    Canada
    Posts
    153
    I have no first-hand experience (I just use menuconfig) but I've read that you need qt3 for this, not qt4 ...

    If you can't make qt work, you can always try gconfig, which uses gtk.

    All this seems to me a lot of fuss to config a kernel, though.
    noobus in perpetuum

  3. #3
    Just Joined!
    Join Date
    Jan 2005
    Location
    Maryland
    Posts
    67
    Yea, I know I can use menuconfig, but I'd like to get this working. I'll try using qt3 instead of 4.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Quote Originally Posted by squirrelplayingtag
    Yea, I know I can use menuconfig, but I'd like to get this working. I'll try using qt3 instead of 4.
    Well, in fact you need those package to build a kernel in Debian Sarge:

    Code:
    apt-get install build-essential debhelper devscripts dh-make module-assistant kernel-package rpm libncurses5-dev libqt3-mt-dev libxtst-dev xlibs-dev bzip2 fakeroot
    And then I normally do something like that:

    I put myself in the src group... as root, you type:
    Code:
    adduser <yourself> src
    Then the real work:
    Code:
    $ cd /usr/src
    
    $ tar jxf /path/to/linux-2.6.14.3.tar.bz2
    $ cd linux-2.6.14.3/
    $ cp /boot/config-2.6.8-2-686 .config
    
    $ make oldconfig
    $ make menuconfig
      - enable Code maturity level options -> Select only drivers expected to compile cleanly
      - set Processor type and features -> Processor family &#40;Pentium 4&#41;
      - set Processor type and features -> Preemptible Model -> Low Latency Desktop
      - whatever customisation you want...
    $ make-kpkg clean
    $ fakeroot make-kpkg --append-to-version "-<suffix>" --revision "<revision>"  --initrd kernel_image
    $ fakeroot make-kpkg --append-to-version "-<suffix>" --revision "<revision>" modules_image
    $ cd ..
    $ su
    # dpkg -i kernel-image-2.6.14.3-<suffix>_<revision>_i386.deb
    # depmod -ae 2.6.14.3-<suffix>
    Of course you need to build the module for your video card as well, or wireless cards, etc. (the command modules_image do that -- it takes the modules in /usr/src/modules).

    I don't recommend the use of xconfig/gconfig, as they are more sensitive to buggy configuration input files than menuconfig (hence they tend to work less often than menuconfig) -- xconfig uses the qt libraries; gconfig uses the gtk libraries.

    Check out this for more info:
    http://www.atworkonline.it/~bibe/sarge
    http://www-128.ibm.com/developerwork...show_all=false
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •