도와주세요!!
글 수 15,339
2008.05.04 18:24:10 (*.167.30.147)
16395
올려주신 따라하기 강좌중 QT4 - Hello 프로그램 을 하고 있습니다. 좋은 강좌 감사하구요..
그런데 제가 이걸 따라하는 과정에서 일반 x11은 전혀 문제가 없었는데 Qt/Embedded 로 변환하는 과정에서
에러가 났습니다. 정말 동등한 qt버전에 동등한 것만 사용했는데.. 왜이러는지 모르겠네요..
이것때문에 이틀밤을 새고 있는데도 잘 모르겠네요 ㅠㅠ
일단 제가 한 결과를 보여드릴게요~
[root@localhost qtex]# qmake -spec $QTDIR/mkspecs/qws/linux-arm-g++ hello.pro
[root@localhost qtex]# make
/qt4/qt-arm/bin/uic frmMain.ui -o ui_frmMain.h
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/qt4/qt-arm/mkspecs/qws/linux-arm-g++ -I. -I/qt4/qt-arm/include/QtCore -I/qt4/qt-arm/include/QtCore -I/qt4/qt-arm/include/QtNetwork -I/qt4/qt-arm/include/QtNetwork -I/qt4/qt-arm/include/QtGui -I/qt4/qt-arm/include/QtGui -I/qt4/qt-arm/include -I. -I. -I. -o frmMain.o frmMain.cpp
In file included from /qt4/qt-arm/include/QtCore/qnamespace.h:47,
from /qt4/qt-arm/include/QtCore/qobjectdefs.h:47,
from /qt4/qt-arm/include/QtGui/qwindowdefs.h:47,
from /qt4/qt-arm/include/QtGui/qwidget.h:47,
from /qt4/qt-arm/include/QtGui/qdialog.h:47,
from /qt4/qt-arm/include/QtGui/qmessagebox.h:47,
from /qt4/qt-arm/include/QtGui/QMessageBox:1,
from frmMain.cpp:1:
--- 중략 ---
/qt4/qt-arm/include/QtGui/qframe.h:142: warning: `visibility' attribute does not apply to types
In file included from /qt4/qt-arm/include/QtGui/QLabel:1,
from ui_frmMain.h:19,
from frmMain.h:4,
from frmMain.cpp:2:
/qt4/qt-arm/include/QtGui/qlabel.h:169: warning: `visibility' attribute does not apply to types
/qt4/qt-arm/include/QtCore/qatomic_i386.h: In member function `void Ui_TfrmMain::setupUi(QDialog*)':
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
make: *** [frmMain.o] 오류 1
그런데 제가 이걸 따라하는 과정에서 일반 x11은 전혀 문제가 없었는데 Qt/Embedded 로 변환하는 과정에서
에러가 났습니다. 정말 동등한 qt버전에 동등한 것만 사용했는데.. 왜이러는지 모르겠네요..
이것때문에 이틀밤을 새고 있는데도 잘 모르겠네요 ㅠㅠ
일단 제가 한 결과를 보여드릴게요~
[root@localhost qtex]# qmake -spec $QTDIR/mkspecs/qws/linux-arm-g++ hello.pro
[root@localhost qtex]# make
/qt4/qt-arm/bin/uic frmMain.ui -o ui_frmMain.h
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/qt4/qt-arm/mkspecs/qws/linux-arm-g++ -I. -I/qt4/qt-arm/include/QtCore -I/qt4/qt-arm/include/QtCore -I/qt4/qt-arm/include/QtNetwork -I/qt4/qt-arm/include/QtNetwork -I/qt4/qt-arm/include/QtGui -I/qt4/qt-arm/include/QtGui -I/qt4/qt-arm/include -I. -I. -I. -o frmMain.o frmMain.cpp
In file included from /qt4/qt-arm/include/QtCore/qnamespace.h:47,
from /qt4/qt-arm/include/QtCore/qobjectdefs.h:47,
from /qt4/qt-arm/include/QtGui/qwindowdefs.h:47,
from /qt4/qt-arm/include/QtGui/qwidget.h:47,
from /qt4/qt-arm/include/QtGui/qdialog.h:47,
from /qt4/qt-arm/include/QtGui/qmessagebox.h:47,
from /qt4/qt-arm/include/QtGui/QMessageBox:1,
from frmMain.cpp:1:
--- 중략 ---
/qt4/qt-arm/include/QtGui/qframe.h:142: warning: `visibility' attribute does not apply to types
In file included from /qt4/qt-arm/include/QtGui/QLabel:1,
from ui_frmMain.h:19,
from frmMain.h:4,
from frmMain.cpp:2:
/qt4/qt-arm/include/QtGui/qlabel.h:169: warning: `visibility' attribute does not apply to types
/qt4/qt-arm/include/QtCore/qatomic_i386.h: In member function `void Ui_TfrmMain::setupUi(QDialog*)':
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
/qt4/qt-arm/include/QtCore/qatomic_i386.h:102: error: impossible constraint in `asm'
make: *** [frmMain.o] 오류 1
arm-linux-gcc 버전이 어떻게 되시나요?