Results 1 to 3 of 3

Thread: [Solved] static build probs (Visual Studio.Net 2003)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    68
    Thanks
    9
    Thanked 8 Times in 8 Posts

    Default [Solved] static build probs (Visual Studio.Net 2003)

    hi there,

    I just tried to compile my project(no pobs with a shared qt release) with a fresh static build of qt, but somehow, I still have link errors because of some windows dependencies:

    changed win32-msvc.net mkspecs as described here
    Qt Code:
    1. //from
    2. QMAKE_CFLAGS_RELEASE = -O1 -MD -DNDEBUG
    3. //to
    4. QMAKE_CFLAGS_RELEASE = -O2 -MT -DNDEBUG
    To copy to clipboard, switch view to plain text mode 

    static build configuration (using qtwin patch):
    Qt Code:
    1. qconfigure msvc.net -prefix C:\devel\qt4s -static -release -qt-sql-odbc -qt-sql-sqlite -no-exceptions
    To copy to clipboard, switch view to plain text mode 

    compiled using just
    Qt Code:
    1. nmake sub-src
    To copy to clipboard, switch view to plain text mode 

    added
    Qt Code:
    1. CONFIG += staticlib
    To copy to clipboard, switch view to plain text mode 
    to my *.pro file

    then I created the VS Project file using
    Qt Code:
    1. qmake -tp -vc -spec
    To copy to clipboard, switch view to plain text mode 

    I get the following link errors, when compiling my project:
    QtGui.lib(qwininputcontext_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_ImmGetDefaultIMEWnd@4', verwiesen in Funktion '"struct HWND__ * __cdecl getDefaultIMEWnd(struct HWND__ *)" (?getDefaultIMEWnd@@YAPAUHWND__@@PAU1@@Z)'
    QtGui.lib(qwininputcontext_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_ImmGetContext@4', verwiesen in Funktion '"struct HIMC__ * __cdecl getContext(struct HWND__ *)" (?getContext@@YAPAUHIMC__@@PAUHWND__@@@Z)'
    QtGui.lib(qwininputcontext_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_ImmReleaseContext@8', verwiesen in Funktion '"void __cdecl releaseContext(struct HWND__ *,struct HIMC__ *)" (?releaseContext@@YAXPAUHWND__@@PAUHIMC__@@@Z)'
    QtGui.lib(qwininputcontext_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_ImmNotifyIME@16', verwiesen in Funktion '"void __cdecl notifyIME(struct HIMC__ *,unsigned long,unsigned long,unsigned long)" (?notifyIME@@YAXPAUHIMC__@@KKK@Z)'
    QtGui.lib(qwininputcontext_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_ImmGetCompositionStringA@16', verwiesen in Funktion '"long __cdecl getCompositionString(struct HIMC__ *,unsigned long,void *,unsigned long,bool *)" (?getCompositionString@@YAJPAUHIMC__@@KPAXKPA_N@Z) '
    QtGui.lib(qwininputcontext_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_ImmGetCompositionStringW@16', verwiesen in Funktion '"long __cdecl getCompositionString(struct HIMC__ *,unsigned long,void *,unsigned long,bool *)" (?getCompositionString@@YAJPAUHIMC__@@KPAXKPA_N@Z) '
    QtGui.lib(qwininputcontext_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_ImmAssociateContext@8', verwiesen in Funktion '"public: static void __cdecl QWinInputContext::enable(class QWidget *,bool)" (?enable@QWinInputContext@@SAXPAVQWidget@@_N@Z)'
    QtGui.lib(qwininputcontext_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_ImmSetCandidateWindow@8', verwiesen in Funktion '"public: virtual void __thiscall QWinInputContext::update(void)" (?update@QWinInputContext@@UAEXXZ)'
    QtGui.lib(qwininputcontext_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_ImmSetCompositionWindow@8', verwiesen in Funktion '"public: virtual void __thiscall QWinInputContext::update(void)" (?update@QWinInputContext@@UAEXXZ)'
    QtGui.lib(qwininputcontext_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_ImmSetCompositionFontA@8', verwiesen in Funktion '"public: virtual void __thiscall QWinInputContext::update(void)" (?update@QWinInputContext@@UAEXXZ)'
    QtGui.lib(qwininputcontext_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_ImmSetCompositionFontW@8', verwiesen in Funktion '"public: virtual void __thiscall QWinInputContext::update(void)" (?update@QWinInputContext@@UAEXXZ)'
    QtGui.lib(qaccessible_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '__imp__PlaySoundA@12', verwiesen in Funktion '"public: static void __cdecl QAccessible::updateAccessibility(class QObject *,int,enum QAccessible::Event)" (?updateAccessibility@QAccessible@@SAXPAVQObject@@ HW4Event@1@@Z)'
    QtCore.lib(qeventdispatcher_win.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_WSAAsyncSelect@16', verwiesen in Funktion '"public: void __thiscall QEventDispatcherWin32Private::doWsaAsyncSelect(int )" (?doWsaAsyncSelect@QEventDispatcherWin32Private@@Q AEXH@Z)'
    release\myapp.exe : fatal error LNK1120: 13 unaufgelöste externe Verweise
    EDIT:
    recompiled without changing the win32-msvc.net mkspecs, but the link errors are the same as above

    so where's the prob???

    regards
    darksaga
    Last edited by jacek; 4th September 2007 at 14:44. Reason: changed [code] to [quote]

Similar Threads

  1. Replies: 16
    Last Post: 23rd May 2008, 10:12
  2. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  3. Compile App using OpenGL and Visual Studios 2003
    By Rayven in forum General Programming
    Replies: 3
    Last Post: 26th April 2007, 15:43
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. link error for visual studio.net 2003
    By berlin in forum Newbie
    Replies: 9
    Last Post: 29th September 2006, 16:06

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.