Results 1 to 5 of 5

Thread: Problems with static compile for QextSerialPort

  1. #1
    Join Date
    Sep 2008
    Posts
    38
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Question Problems with static compile for QextSerialPort

    Hallo guys,

    now I want to release my program,
    but it don't work with the static compile.
    I got the
    libqextserialport.a
    qextserialport.prl
    after compile, and copy to G:\Qt\4.5.2\lib

    this is the .pro file for my project
    Qt Code:
    1. TEMPLATE = app
    2. TARGET = test
    3. QT += core gui
    4.  
    5. HEADERS += test.h
    6. SOURCES += main.cpp \
    7. test.cpp
    8. FORMS += test.ui
    9. INCLUDEPATH += G:\Qt\4.5.2\include\qextserialport
    10. LIBS += -LG:\Qt\4.5.2\lib\qextserialport -lqextserialport
    11. win32:DEFINES = _TTY_WIN_ QWT_DLL QT_DLL
    To copy to clipboard, switch view to plain text mode 

    there are some error message
    Qt Code:
    1. release/test.o(.text+0x9d5):test.cpp: undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
    2. release/test.o(.text+0xa04):test.cpp: undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
    3. release/test.o(.text+0xa4c):test.cpp: undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
    4. release/test.o(.text$_ZN12Ui_testClass7setupUiEP7QWidget[Ui_testClass::setupUi(QWidget*)]+0x5d):test.cpp: undefined reference to `_imp___ZNK7QObject10objectNameEv'
    5. release/test.o(.text$_ZN12Ui_testClass7setupUiEP7QWidget[Ui_testClass::setupUi(QWidget*)]+0xbc):test.cpp: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
    6. release/test.o(.text$_ZN12Ui_testClass7setupUiEP7QWidget[Ui_testClass::setupUi(QWidget*)]+0xe8):test.cpp: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
    To copy to clipboard, switch view to plain text mode 

    What can i do now?
    thanks for your help!

  2. #2
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problems with static compile for QextSerialPort

    Use QSerialDevice

  3. #3
    Join Date
    Sep 2008
    Posts
    38
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problems with static compile for QextSerialPort

    thanks for yout suggestion,
    can you tell me the what cause the problems?

  4. #4
    Join Date
    Sep 2008
    Posts
    38
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problems with static compile for QextSerialPort

    now i can't get a dll file of QextSerialPort too, under the static Qt

  5. #5
    Join Date
    Sep 2008
    Posts
    38
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problems with static compile for QextSerialPort

    up..
    up..

Similar Threads

  1. Replies: 22
    Last Post: 8th October 2008, 13:54
  2. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  3. Replies: 16
    Last Post: 23rd May 2008, 10:12
  4. Replies: 2
    Last Post: 8th March 2007, 22:22
  5. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52

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.