Hello,
Normaly, I develop qt applications for emebedded systems, like PowerPC.
But now I need to develop a project of QT for Geode (x86).
I made same steps than powerpc when I compile but now I have problems to compile.
I have a project.pro:
################################################## ####################
# Automatically generated by qmake (1.07a) Fri Nov 30 12:28:56 2007
################################################## ####################
TEMPLATE = app
INCLUDEPATH += .
# Input
HEADERS += form2.h \
form2.ui.h \
form3.h \
form3.ui.h \
form4.h \
form4.ui.h \
form5.h \
form5.ui.h \
forminit.h \
forminit.ui.h \
global.h \
mydialog.h \
mydialog.ui.h
SOURCES += form2.cpp \
form3.cpp \
form4.cpp \
form5.cpp \
forminit.cpp \
main.cpp \
mydialog.cpp
Now, I use qmake to generate my Makefile with this command:
qmake -makefile -spec /home/john/Descargas/Geode/qt-embedded-free-3.3.8b/mkspecs/qws/linux-x86-g++/
And now, final part, make to compile my project, but .........
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -g -D_REENTRANT -Wall -W -I../qt-embedded-free-3.3.8b/mkspecs/qws/linux-x86-g++ -I. -I/usr/lib/qt3/include -I. -I. -I. -o form2.o form2.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -g -D_REENTRANT -Wall -W -I../qt-embedded-free-3.3.8b/mkspecs/qws/linux-x86-g++ -I. -I/usr/lib/qt3/include -I. -I. -I. -o form3.o form3.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -g -D_REENTRANT -Wall -W -I../qt-embedded-free-3.3.8b/mkspecs/qws/linux-x86-g++ -I. -I/usr/lib/qt3/include -I. -I. -I. -o form4.o form4.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -g -D_REENTRANT -Wall -W -I../qt-embedded-free-3.3.8b/mkspecs/qws/linux-x86-g++ -I. -I/usr/lib/qt3/include -I. -I. -I. -o form5.o form5.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -g -D_REENTRANT -Wall -W -I../qt-embedded-free-3.3.8b/mkspecs/qws/linux-x86-g++ -I. -I/usr/lib/qt3/include -I. -I. -I. -o forminit.o forminit.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -g -D_REENTRANT -Wall -W -I../qt-embedded-free-3.3.8b/mkspecs/qws/linux-x86-g++ -I. -I/usr/lib/qt3/include -I. -I. -I. -o main.o main.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -g -D_REENTRANT -Wall -W -I../qt-embedded-free-3.3.8b/mkspecs/qws/linux-x86-g++ -I. -I/usr/lib/qt3/include -I. -I. -I. -o mydialog.o mydialog.cpp
/usr/lib/qt3/bin/moc -I../qt-embedded-free-3.3.8b/mkspecs/qws/linux-x86-g++ -I. -I/usr/lib/qt3/include -I. -I. -I. form2.h -o moc_form2.cpp
Qt meta object compiler
moc: Invalid argument
Usage: moc [options] <header-file>
-o file Write output to file rather than stdout
-f[file] Force #include, optional file name
-p path Path prefix for included file
-i Do not generate an #include statement
-k Do not stop on errors
-nw Do not display warnings
-v Display version of moc
make: *** [moc_form2.cpp] Error 1
any advice???
Bookmarks