[완료]왕초보 질문! qmake 버젼이 이상합니다.
우분투에서 qt4를 깔아볼려고 인터넷 뒤져서 깔았어요.
sudo apt-get install libqt4-core [libqt4-dev, libqt4-gui, libqt4-dbg, qt4-designer, qt4-dev-tools]
잘 깔린것 같은데 qmake 버젼을 확인하면
dreamer@dreamer-desktop:~$ qmake --version
Qmake version: 1.07a (Qt 3.3.8b) <- 이렇게 qt버젼이 QT 3.3.8b로 나오는것은 무엇때문일까요?
Qmake is free software from Trolltech ASA.
그래서 컴파일할때 다음과 같은 에러가 나요.
dreamer@dreamer-desktop:~/Test$ qmake -project
dreamer@dreamer-desktop:~/Test$ qmake
dreamer@dreamer-desktop:~/Test$ make
g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/include/qt3 -o hello.o hello.cpp <- 자꾸 qt3경로을 탐색합니다.
hello.cpp:1:24: error: QApplication: No such file or directory
hello.cpp:2:18: error: QLabel: No such file or directory
hello.cpp: In function ‘int main(int, char**)’:
hello.cpp:6: error: ‘QApplication’ was not declared in this scope
hello.cpp:6: error: expected ‘;’ before ‘app’
hello.cpp:7: error: ‘QLabel’ was not declared in this scope
hello.cpp:7: error: ‘hello’ was not declared in this scope
hello.cpp:7: error: expected type-specifier before ‘QLabel’
hello.cpp:7: error: expected ‘;’ before ‘QLabel’
hello.cpp:9: error: ‘app’ was not declared in this scope
hello.cpp: At global scope:
hello.cpp:4: warning: unused parameter ‘argc’
hello.cpp:4: warning: unused parameter ‘argv’
make: *** [hello.o] 오류 1
어떻게 하면 되는 거죠?
제발 좀 갈켜 주세요. 흐흐흑
whivh qmake로 qmake확인해보세여
qmake가 이전에 /usr/local/bin에 설치한게 있다면
/usr/bin에 있는 거보다 먼저 실행됩니다
아니면
혹시
ibqt3-core같이 이미 qt3가 깔려있어서 그럴수도
즐린
즐린
예 qt3가 먼저 깔려 있었습니다.
그래서 우분투 업고 새로 깔고 있습니다.
답글 감사합니다.
qmake의 위치나
qmake의 위치나 파일명은 배포판에 따라 다를수 있습니다.
지금도 그런진 모르겠지만, 예전에 우분투계열에서는 Qt4용 qmake는 qmake-qt4라는 이름으로 설치되어있었습니다.
일단 qmake가 먼저 설치되어 있는 qt3 버전에 링크되어 있어서 그렇습니다.
이도 저도 잘 모르시겠다면 기존의 qmake 를 백업해 두시고 새로 설치하신 qmake로 대체 하세요
---------------------------------------------
git init
git add .
git commit -am "project init"
---------------------------------------------
---------------------------------------------
git init
git add .
git commit -am "project init"
---------------------------------------------
댓글 달기