QT Embedded에서 qmake사용 중 일어나는 문제
# qmake -project -o hello.pro hello.cpp
# ls
hello.cpp hello.pro
# qmake -spec $QTDIR/mkspecs/
Display all 105 possibilities? (y or n)
aix-g++ irix-g++-64 modules wince50standard-armv4i-msvc2005
aix-g++-64 linux-arm-gnueabi-g++ netbsd-g++ wince50standard-armv4i-msvc2008
aix-xlc linux-clang openbsd-g++ wince50standard-mipsii-msvc2005
aix-xlc-64 linux-cxx qconfig.pri wince50standard-mipsii-msvc2008
android-g++ linux-g++ qdevice.pri wince50standard-mipsiv-msvc2005
blackberry-armv7le-qcc linux-g++-32 qmodule.pri wince50standard-mipsiv-msvc2008
blackberry-x86-qcc linux-g++-64 qnx-armv7le-qcc wince50standard-sh4-msvc2005
common linux-g++-maemo qnx-x86-qcc wince50standard-sh4-msvc2008
cygwin-g++ linux-icc sco-cc wince50standard-x86-msvc2005
darwin-g++ linux-icc-32 sco-g++ wince50standard-x86-msvc2008
devices linux-icc-64 solaris-cc wince60standard-armv4i-msvc2005
features linux-kcc solaris-cc-64 wince60standard-x86-msvc2005
freebsd-g++ linux-llvm solaris-cc-64-stlport wince70embedded-armv4i-msvc2008
freebsd-g++46 linux-lsb-g++ solaris-cc-stlport wince70embedded-x86-msvc2008
freebsd-icc linux-pgcc solaris-g++ wincewm50pocket-msvc2005
hpux-acc lynxos-g++ solaris-g++-64 wincewm50pocket-msvc2008
hpux-acc-64 macx-clang tru64-cxx wincewm50smart-msvc2005
hpux-acc-o64 macx-clang-32 tru64-g++ wincewm50smart-msvc2008
hpux-g++ macx-clang-libc++ unixware-cc wincewm60professional-msvc2005
hpux-g++-64 macx-clang-libc++-32 unixware-g++ wincewm60professional-msvc2008
hpuxi-acc-32 macx-g++ unsupported wincewm60standard-msvc2005
hpuxi-acc-64 macx-g++-32 win32-g++ wincewm60standard-msvc2008
hpuxi-g++-64 macx-g++40 win32-icc wincewm65professional-msvc2005
hurd-g++ macx-g++42 win32-msvc2005 wincewm65professional-msvc2008
irix-cc macx-icc win32-msvc2008
irix-cc-64 macx-llvm win32-msvc2010
irix-g++ macx-xcode win32-msvc2012
# qmake -spec $QTDIR/mkspecs/linux-arm-gnueabi-g++ hello.pro
/opt/Qt/5.1.0/gcc/mkspecs/features/qt_config.prf:3: Missing ] terminator [found /]
/opt/Qt/5.1.0/gcc/mkspecs/features/qt_functions.prf:212: Unknown replace function: shell_path
/opt/Qt/5.1.0/gcc/mkspecs/features/qt_functions.prf:249: Unknown replace function: resolve_depends
#
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hello.cpp입니다.
#include
#include
#include
#include
#include
class MyWidget : public QWidget{
public :
MyWidget();
~MyWidget();
void paintEvent(QPaintEvent*);
};
MyWidget::MyWidget(void){
setWindowTitle("Hello World!");
}
MyWidget::~MyWidget(void){
kill(getpid(),SIGKILL);
}
void MyWidget::paintEvent(QPaintEvent*){
QPainter p(this);
p.drawText(20,20,"ssibal EDK-P320 motherfucker");
}
int main(int argc,char *argv[]){
QApplication app(argc,argv);
MyWidget mw;
mw.resize(300,100);
mw.show();
return app.exec();
}
hello.pro의 내용입니다.
######################################################################
# Automatically generated by qmake (2.01a) ? 8? 16 01:27:29 2013
######################################################################
TEMPLATE = app
TARGET = hello
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += hello.cpp
왜 자꾸 이런 문제가 발생하는걸까요?
qmake에서 spec을 주지 않았을 때에는 제대로 응용프로그램이 만들어지고 실행됩니다.
하지만 spec을 주면 자꾸 저렇게 되면서 컴파일이 안되네요...
QTDIR=/opt/Qt/5.1.0/gcc
입니다.
댓글 달기