Results 1 to 9 of 9

Thread: I got two problems when I used static compiled library of QT4

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default static linked error ???

    static compile Qt4 libs on linux

    configure shell under:
    Qt Code:
    1. ./configure --prefix=/usr/lib/qt-4.1.2-static -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-db2 -no-sql-oci -no-sql-tds -fast -static -release -no-qt3support
    To copy to clipboard, switch view to plain text mode 

    Error infomation under:
    Qt Code:
    1. g++ -static -Wl,-rpath,/usr/lib/qt-4.1.2-static/lib -Wl,-rpath,/usr/lib/qt-4.1.2-static/lib -o complexwizard .obj/release-static/complexwizard.o .obj/release-static/licensewizard.o .obj/release-static/main.o .obj/release-static/moc_complexwizard.o -L/root/qt-x11-opensource-src-4.1.2/lib -lQtGui -L/root/qt-x11-opensource-src-4.1.2/lib -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -ldl -lpthread
    2. /root/qt-x11-opensource-src-4.1.2/lib/libQtCore.a(qlibrary_unix.o)(.text+0x62c): In function `QLibraryPrivate::load_sys()':
    3. : warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    4. /root/qt-x11-opensource-src-4.1.2/lib/libQtCore.a(qfsfileengine_unix.o)(.text+0x22f4): In function `QFSFileEngine::owner(QAbstractFileEngine::FileOwner) const':
    5. : warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    6. /root/qt-x11-opensource-src-4.1.2/lib/libQtGui.a(qapplication_x11.o)(.text+0x117aa): In function `sm_performSaveYourself(QSessionManagerPrivate*)':
    7. : warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    8. /usr/X11R6/lib/libX11.a(GetDflt.o)(.text+0x9a): In function `GetHomeDir':
    9. : warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    10. /usr/X11R6/lib/libX11.a(GetDflt.o)(.text+0xea): In function `GetHomeDir':
    11. : warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    12. /usr/X11R6/lib/libICE.a(transport.o)(.text+0x35b): In function `_IceTransSocketOpen':
    13. : warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    14. /usr/X11R6/lib/libICE.a(transport.o)(.text+0x3ef0): In function `_IceTransGetPeerNetworkId':
    15. : warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibcversion used for linking
    16. /usr/X11R6/lib/libICE.a(transport.o)(.text+0x1eab): In function `_IceTransSocketINETConnect':
    17. : warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibcversion used for linking
    18. /usr/X11R6/lib/libICE.a(transport.o)(.text+0x1493): In function `_IceTransSocketINETCreateListener':
    19. : warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibcversion used for linking
    20. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2857): In function `FcFreeTypeQuery':
    21. : undefined reference to `FT_Get_BDF_Property'
    22. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2985): In function `FcFreeTypeQuery':
    23. : undefined reference to `FT_Get_BDF_Property'
    24. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2ad0): In function `FcFreeTypeQuery':
    25. : undefined reference to `FT_Get_BDF_Property'
    26. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2c0c): In function `FcFreeTypeQuery':
    27. : undefined reference to `FT_Get_BDF_Property'
    28. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2c8d): In function `FcFreeTypeQuery':
    29. : undefined reference to `FT_Get_BDF_Property'
    30. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2d6a): In function `FcFreeTypeQuery':
    31. : undefined reference to `FT_Get_X11_Font_Format'
    32. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2de6): In function `FcFreeTypeQuery':
    33. : undefined reference to `FT_Get_BDF_Property'
    34. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2e58): In function `FcFreeTypeQuery':
    35. : undefined reference to `FT_Get_BDF_Property'
    36. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x498): In function `FcConfigMessage':
    37. : undefined reference to `XML_GetCurrentLineNumber'
    38. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x52a): In function `FcConfigMessage':
    39. : undefined reference to `XML_GetCurrentLineNumber'
    40. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1947): In function `FcConfigParseAndLoad':
    41. : undefined reference to `XML_ParserCreate'
    42. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1984): In function `FcConfigParseAndLoad':
    43. : undefined reference to `XML_SetUserData'
    44. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x199e): In function `FcConfigParseAndLoad':
    45. : undefined reference to `XML_SetDoctypeDeclHandler'
    46. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x19b8): In function `FcConfigParseAndLoad':
    47. : undefined reference to `XML_SetElementHandler'
    48. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x19c9): In function `FcConfigParseAndLoad':
    49. : undefined reference to `XML_SetCharacterDataHandler'
    50. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x19dd): In function `FcConfigParseAndLoad':
    51. : undefined reference to `XML_GetBuffer'
    52. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1a23): In function `FcConfigParseAndLoad':
    53. : undefined reference to `XML_ParseBuffer'
    54. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1a53): In function `FcConfigParseAndLoad':
    55. : undefined reference to `XML_ParserFree'
    56. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1c44): In function `FcConfigParseAndLoad':
    57. : undefined reference to `XML_GetErrorCode'
    58. /usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1c4c): In function `FcConfigParseAndLoad':
    59. : undefined reference to `XML_ErrorString'
    60. collect2: ld returned 1 exit status
    61. make: *** [complexwizard] 错误 1
    To copy to clipboard, switch view to plain text mode 


    The static compiled Qt4 lib seem not supprot i18n?
    Last edited by qintm; 16th April 2006 at 11:24.

Similar Threads

  1. QMAKE: Building static library without -fPIC
    By rainman110 in forum Qt Programming
    Replies: 1
    Last Post: 2nd May 2012, 16:07
  2. Compiling QCA as static library
    By NoRulez in forum Qt Programming
    Replies: 1
    Last Post: 7th December 2008, 17:32
  3. Replies: 22
    Last Post: 8th October 2008, 13:54
  4. Replies: 16
    Last Post: 23rd May 2008, 10:12
  5. Building qt program with static library
    By JonathanForQT4 in forum Newbie
    Replies: 2
    Last Post: 22nd June 2007, 23:15

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.