Results 1 to 6 of 6

Thread: what is wrong with my qt ?

  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.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: what is wrong with my qt ?

    Does this help?

  3. #3
    Join Date
    Sep 2009
    Posts
    72
    Thanked 10 Times in 10 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

  4. #4
    Join Date
    Apr 2010
    Location
    China
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: what is wrong with my qt ?

    Quote Originally Posted by fatjuicymole View Post
    Does this help?
    I can't open the links CentOS 5.2 + Qt 4.5 + FcFeeTypeQueryFace and http://theitdepartment.wordpress.com/2009/03/
    on that thread!

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

    Default Re: what is wrong with my qt ?

    I have installed fontconfig-devel-4.2.4, the same errors still exit.

  6. #6
    Join Date
    Apr 2010
    Location
    China
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: what is wrong with my qt ?

    Thanks all. I got the answer on another place. Mybe It is not a perfect answer, but it in fact works.

    download fontconfig-2.6.0 from http://www.fontconfig.org/release/

    ./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man
    make
    make install

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.