Results 1 to 6 of 6

Thread: what is wrong with my qt ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Location
    China
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question what is wrong with my qt ?

    Redhat enterprise linux 5
    gcc 4.1.2
    qt 4.6
    qt creator 1.3

    I am a newbie for qt . It is my first program.

    Qt Code:
    1. #include <QApplication>
    2. #include <QLabel>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication app(argc, argv);
    7. QLabel *label = new QLabel("Hello Qt!");
    8. label->show();
    9. return app.exec();
    10. }
    To copy to clipboard, switch view to plain text mode 

    when I type the commond make,I get the words below!
    [root@loclwb3 hello]# make
    g++ -Wl,-O1 -Wl,-rpath,/opt/qtsdk-2010.02/qt/lib -o hello hello.o -L/opt/qtsdk-2010.02/qt/lib -lQtGui -L/opt/qtsdk-2010.02/qt/lib -L/usr/X11R6/lib -lQtCore -lpthread
    /opt/qtsdk-2010.02/qt/lib/libQtGui.so: undefined reference to `FcFreeTypeQueryFace'
    collect2: ld returned 1 exit status
    make: *** [hello] Error 1

    what can I do? thanks!
    Last edited by lwb422; 12th April 2010 at 13:25.

Similar Threads

  1. PyQt... What am I doing wrong?!
    By Richie in forum Newbie
    Replies: 2
    Last Post: 4th September 2009, 17:14
  2. What's wrong??
    By dreamer in forum Qt Programming
    Replies: 2
    Last Post: 25th June 2008, 08:07
  3. What's wrong with my actions???
    By fullmetalcoder in forum Qt Programming
    Replies: 6
    Last Post: 4th March 2007, 18:49
  4. Help please - what am I doing wrong?
    By Jimmy2775 in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2006, 22:06
  5. what's wrong with my validator?
    By TheKedge in forum Qt Programming
    Replies: 5
    Last Post: 26th January 2006, 21:41

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
  •  
Qt is a trademark of The Qt Company.