레드햇 9.0에 3.1.1의 QTE를 arm용과 x86용 두개로 나누어 설치하고 arm용을
위해 크로스 컴파일러도 구축했습니다.
그리고 각각의 환경 설정도 다 해주었습니다. 위에 첨부한 간단한 프로그램
을 .pro 생성하여, qmake 시켜서 make하여 컴파일 했는데, 아래와 같은 에러
가 발생합니다.
물론 아래의 에러는 arm용으로 컴파일 했을때의 오류입니다만, x86으로 컴파
일 했을경우도 컴파일 플랫폼과 QTE 디렉토리가 다르게 나올뿐 에러 결과는 동
일합니다. 물론 환경 설정도 x86에 맞게 했습니다.
아마 제 생각에는 QTE의 라이브러리가 바인딩 안되는 것 같기는 한데, 도무지
알 수가 없습니다. 어떻게 해야하는지 알려주세요~
도움이 될만한 말씀이면 부탁드립니다.
더 첨부할 내용이 있으면 말씀 드리겠습니다.
읽어 주셔서 감사합니다.


[root@hannim etc]# qmake hello.pro -o Makefile
[root@hannim etc]# make

arm-linux-g++ -DQT_QWS_IPAQ -c -pipe -DQWS -fno-exceptions -fno-rtti -
Wall -W -O2 -DQT_NO_DEBUG -I/root/arm/qt-embedded-free-
3.1.1/mkspecs/qws/linux-ipaq-g++ -I. -I../../include -I.moc/release-
shared-emb-auto/ -o .obj/release-shared-emb-auto/hello.o hello.cpp
hello.cpp:4: parse error before `public'
hello.cpp:11: invalid use of undefined type `struct TestWidget'
hello.cpp:4: forward declaration of `struct TestWidget'
hello.cpp: In constructor `TestWidget::TestWidget()':
hello.cpp:12: `setCaption' undeclared (first use this function)
hello.cpp:12: (Each undeclared identifier is reported only once for each
function it appears in.)
hello.cpp: In function `int main(int, char**)':
hello.cpp:18: aggregate `TestWidget tw' has incomplete type and cannot
be defined
make: *** [.obj/release-shared-emb-auto/hello.o] 오류 1

[root@hannim etc]#