Results 1 to 3 of 3

Thread: LNK-Error when Compiling QtAssistant

  1. #1
    Join Date
    May 2012
    Location
    Germany
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default LNK-Error when Compiling QtAssistant

    Hi,

    I tried to compile the Qt Assistant from source.
    But I got the following Linker-Error:
    Qt Code:
    1. 1>centralwidget.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: class QUrl __thiscall HelpViewer::source(void)const " (?source@HelpViewer@@QBE?AVQUrl@@XZ)" in Funktion ""public: virtual __thiscall CentralWidget::~CentralWidget(void)" (??1CentralWidget@@UAE@XZ)".
    2. 1>centralwidget.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall HelpViewer::setSource(class QUrl const &)" (?setSource@HelpViewer@@QAEXABVQUrl@@@Z)" in Funktion ""public: void __thiscall CentralWidget::setSource(class QUrl const &)" (?setSource@CentralWidget@@QAEXABVQUrl@@@Z)".
    3. 1>centralwidget.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall HelpViewer::home(void)" (?home@HelpViewer@@QAEXXZ)" in Funktion ""public: void __thiscall CentralWidget::home(void)" (?home@CentralWidget@@QAEXXZ)".
    4. 1>..\..\..\..\bin\assistant.exe : fatal error LNK1120: 3 nicht aufgelöste externe Verweise.
    To copy to clipboard, switch view to plain text mode 

    I thought the HelpViewer is derived form QtextBrowser. So why does the linker not find these functions?
    Can anybody help me?

    I’m on Qt 4.7.1 – VisualStudio2008 with Qt-AddInn 1.1.7.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: LNK-Error when Compiling QtAssistant

    because you didn't link it properly. try adding the web kit
    Last edited by amleto; 9th January 2013 at 18:49.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    May 2012
    Location
    Germany
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: LNK-Error when Compiling QtAssistant

    No, I added ...
    Maybe there is an issue with the Qt-AddInn. When I enable WebKit, I got:
    Qt Code:
    1. ERROR: failed to refresh moc step for remotecontrol_win.h
    To copy to clipboard, switch view to plain text mode 
    I have also checked that QtWebKitd4.lib is in the linker settings.
    Any ideas?

Similar Threads

  1. Qt Assistant how to combine QtAssistant with Eclipse?
    By silence in forum Qt Tools
    Replies: 1
    Last Post: 14th April 2010, 12:25
  2. Replies: 0
    Last Post: 1st April 2010, 07:47
  3. QtAssistant won't open help file
    By waynew in forum Qt Programming
    Replies: 2
    Last Post: 2nd March 2010, 01:26
  4. QtAssistant
    By Ferric in forum Newbie
    Replies: 1
    Last Post: 21st December 2009, 22:34
  5. Replies: 1
    Last Post: 25th October 2008, 19:18

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.