크로스 컴파일을 위한 커널 xconfig가 "'qt-mt' 패키지 없음 오류"와 함께 실패합니다.

크로스 컴파일을 위한 커널 xconfig가 "'qt-mt' 패키지 없음 오류"와 함께 실패합니다.

임베디드 ARM 시스템용 Kernel.org Linux 커널(linux-3.0.4)을 크로스 컴파일하고 있습니다. 며칠 전 gcc와 크로스 컴파일러를 사용하여 Ubuntu 11.04 Natty(64비트) 호스트 데스크탑에서 xconfig 커널을 성공적으로 빌드할 수 있었습니다. 또한 Ubuntu 11.10(64비트) 데스크톱에서 동일한 컴파일 프로세스를 시도했습니다. 그러나 이제 '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

xconfig는 크로스 컴파일된 커널 이미지에 대한 커널 옵션을 준비하기 위해 호스트 Ubuntu 데스크탑에서 실행됩니다. xconfig는 호스트에서 실행되므로 크로스 컴파일러로 빌드되지 않습니다. 여기서 무슨 일이 일어나고 있는지 전혀 모르지만 우분투에서 qt 라이브러리가 설치된 위치와 관련이 있을 수 있다고 생각합니다.

Fedora 포럼에서 다음 스레드를 찾았지만 그것이 Ubuntu에서의 내 상황에 적용되는지는 모르겠습니다.

http://forums.fedoraforum.org/showthread.php?t=139653

또한 apt 도구를 사용하여 QT3 및 QT4를 제거하고 다시 설치하려고 시도했지만 위에 제공된 오류가 여전히 지속됩니다. xconfig를 성공적으로 컴파일하기 위해 내가 할 수 있는 일에 대한 제안이 있습니까?

답변1

이 질문에 OP가 답변했습니다.

더 많은 실험을 통해

make distclean

문제를 해결하는 것 같았습니다. 이제 커널 xconfig를 성공적으로 빌드할 수 있습니다.

관련 정보