QT 에서 JPG 사용할려면 어떻게 컴파일 해야 하나요??

등짝을보자의 이미지

책보고 하다가 막혀서 질문드립니다.

qt-x11-free-3.3.3.tar.gz
./configure --prefix=/usr/local/qtx -system-jpeg

이렇게 하면 된다고 하던데..저는 안되더군요..
아무래도 -system-jpeg 라는 명령이 없는거 같더군요..

컴파일은
qmake -project
qmake
make

이렇게 했었습니다.

main.cpp: undefined reference to `QApplication::QApplication(int &, char **)'
main.o(.text+0x2e):main.cpp: undefined reference to `__builtin_new'
main.o(.text+0x51):main.cpp: undefined reference to `QApplication::setMainWidget(QWidget *)'
main.o(.text+0x9c):main.cpp: undefined reference to `QApplication::exec(void)'
main.o(.text+0xaf):main.cpp: undefined reference to `QApplication::~QApplication(void)'
moc_imageview.o(.text+0x1e5): In function `ImageView::qt_invoke(int, QUObject*)':
/home/dat/source/moc_imageview.cpp:85: undefined reference to `ImageView::slotViewImage(int)'
moc_imageview.o(.gnu.linkonce.r._ZTV9ImageView[vtable for ImageView]+0x20): undefined reference to `ImageView::~ImageView()'
moc_imageview.o(.gnu.linkonce.r._ZTV9ImageView[vtable for ImageView]+0x24): undefined reference to `ImageView::~ImageView()'
moc_imageview.o(.gnu.linkonce.r._ZTV9ImageView[vtable for ImageView]+0x148): undefined reference to `ImageView::paintEvent(QPaintEvent*)'
moc_imageview.o(.gnu.linkonce.r._ZTV9ImageView[vtable for ImageView]+0x1c8): undefined reference to `non-virtual thunk to ImageView::~ImageView()'
moc_imageview.o(.gnu.linkonce.r._ZTV9ImageView[vtable for ImageView]+0x1cc): undefined reference to `non-virtual thunk to ImageView::~ImageView()'
collect2: ld returned 1 exit status
make: *** [source] 오류 1

오류는 대략 이렇게 나옵니다...

jpeg 을 쓰고 싶을때는 QT 을 어떻게 깔아놔야하나요??
그리고 실행파일을 실행해봤는데 그것도 안되더군요..
이렇게 뜨면서요..

./imageview -qws
./imageview: error while loading shared libraries: libqte.so.2: cannot open shared object file: No such file or directory

bushi의 이미지

./configure --help | vi -
로 도움말을 살펴보세요.

김한성의 이미지


./configure -thread -enable-xml
누르면 yes 라고 누르라고 뜹니다.
yes 라고 입력하면 자동 설정되는것 중에 jpeg 도
있다는 사실을 알수 있습니다.