![Kernel xconfig para compilação cruzada falha com "nenhum pacote 'qt-mt' encontrado erro"](https://rvso.com/image/1036643/Kernel%20xconfig%20para%20compila%C3%A7%C3%A3o%20cruzada%20falha%20com%20%22nenhum%20pacote%20'qt-mt'%20encontrado%20erro%22.png)
Estou compilando um kernel Linux Kernel.org (linux-3.0.4) para um sistema ARM incorporado. Alguns dias atrás, consegui construir com sucesso o kernel xconfig em um desktop host Ubuntu 11.04 Natty (64 bits) usando gcc e um compilador cruzado. Também tentei o mesmo processo de compilação em um desktop Ubuntu 11.10 (64 bits). No entanto, agora recebo os seguintes erros relacionados ao pacote 'qt-mt':
$ make ARCH=arm xconfig
Package qt-mt was not found in the pkg-config search path.
Perhaps you should add the directory containing `qt-mt.pc'
to the PKG_CONFIG_PATH environment variable
No package 'qt-mt' found
Package qt-mt was not found in the pkg-config search path.
Perhaps you should add the directory containing `qt-mt.pc'
to the PKG_CONFIG_PATH environment variable
No package 'qt-mt' found
Package qt-mt was not found in the pkg-config search path.
Perhaps you should add the directory containing `qt-mt.pc'
to the PKG_CONFIG_PATH environment variable
No package 'qt-mt' found
Package qt-mt was not found in the pkg-config search path.
Perhaps you should add the directory containing `qt-mt.pc'
to the PKG_CONFIG_PATH environment variable
No package 'qt-mt' found
HOSTCXX scripts/kconfig/qconf.o
scripts/kconfig/qconf.cc:6:21: fatal error: qglobal.h: No such file or directory
compilation terminated.
make[1]: *** [scripts/kconfig/qconf.o] Error 1
make: *** [xconfig] Error 2
O xconfig está sendo executado no desktop host do Ubuntu para preparar as opções do kernel para uma imagem de kernel compilada cruzada. Como o xconfig é executado no host, ele não está sendo compilado com o compilador cruzado. Não tenho ideia do que está acontecendo aqui, mas acho que pode estar relacionado ao local onde as bibliotecas qt estão instaladas no Ubuntu.
Encontrei o seguinte tópico no fórum do Fedora, mas não sei se ele se aplica à minha situação no Ubuntu.
http://forums.fedoraforum.org/showthread.php?t=139653
Também tentei desinstalar e reinstalar QT3 e QT4 usando as ferramentas apt, mas o erro fornecido acima ainda persiste. Alguma sugestão sobre o que eu poderia fazer para compilar o xconfig com sucesso?
Responder1
Esta pergunta foi respondida pelo OP
Com mais experimentação, um
make distclean
pareceu resolver o problema. Agora posso construir o kernel xconfig com sucesso.