Results 1 to 3 of 3

Thread: Error in compiling OpenSSL & Qt statically

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Error in compiling OpenSSL & Qt statically

    I build OpenSSL static library successfully using "nmake -f ms\nt.mak".
    Copy \include\openssl, libeay32.lib & ssleay32.lib to Qt folder.
    When compile Qt, always get same error:
    Qt Code:
    1. libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function _readscreen
    2. libeay32.lib(rand_win.obj) : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function _readscreen
    3. ...
    To copy to clipboard, switch view to plain text mode 

    My system envirement is VC 2008, Openssl_SRC_v0.9.8k & Qt_SRC_v4.5.3. Here is my configuration parameters for Qt:

    configure.exe -static -release -qt-gif -qt-libjpeg -no-sql-sqlite -openssl-linked -webkit -qt-zlib -no-dbus -no-phonon -no-qt3support -no-accessibility -no-opengl -qt-style-windowsce

    Any suggestion?

  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: Error in compiling OpenSSL & Qt statically

    DeleteDC sounds like you need to add Gdi32.lib to your list of libraries. I'm not sure about DeleteObject, so add that lib and see if its happy.

  3. #3

    Default Re: Error in compiling OpenSSL & Qt statically

    Thanks fatjuicymole!

    Gdi32.lib helps. But got another error:
    Qt Code:
    1. main.obj : error LNK2019: unresolved external symbol "class QObject * __cdecl qt_plugin_instance_qjpeg(void)" (?qt_plugin_instance_qjpeg@@YAPAVQObject@@XZ) referenced in function "public: __thiscall StaticqjpegPluginInstance::StaticqjpegPluginInstance(void)" (??0StaticqjpegPluginInstance@@QAE@XZ)
    To copy to clipboard, switch view to plain text mode 

    Any clue?

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.