Results 1 to 3 of 3

Thread: Problem compile QT embedded 3.3.6

  1. #1
    Join Date
    May 2008
    Location
    Spain
    Posts
    92
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Problem compile QT embedded 3.3.6

    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???

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem compile QT embedded 3.3.6

    It seems that you invoke the wrong set of Qt tools. Try using qmake from /home/john/Descargas/Geode/qt-embedded-free-3.3.8b/bin, not the one that is installed on your system.

  3. #3
    Join Date
    May 2008
    Location
    Spain
    Posts
    92
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Problem compile QT embedded 3.3.6

    Quote Originally Posted by jacek View Post
    It seems that you invoke the wrong set of Qt tools. Try using qmake from /home/john/Descargas/Geode/qt-embedded-free-3.3.8b/bin, not the one that is installed on your system.
    Hello jacek,

    Thank you very much. With qmake from bin folder of qt-embedded, now I can generate Makefile and I can compile without problems.

    Best regards

Similar Threads

  1. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  2. problem to compile exemple qt4 with xlC compiler
    By poulacou in forum Qt Programming
    Replies: 1
    Last Post: 16th April 2008, 14:59
  3. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02
  4. Qwt plot problem on compile
    By sincnarf in forum Qwt
    Replies: 2
    Last Post: 14th October 2007, 11:36
  5. Installling Qt 3.3.6 on Mac OS X - Problem with .profile
    By Shambhavi in forum Installation and Deployment
    Replies: 5
    Last Post: 8th April 2006, 10:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.