Results 1 to 4 of 4

Thread: Mixing static and dynamic libraries using Qt Creator

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Mixing static and dynamic libraries using Qt Creator

    Thanks! I've compiled opencv statically and problem was solved.

  2. #2
    Join Date
    Feb 2015
    Posts
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Mixing static and dynamic libraries using Qt Creator

    Hi, can you explain how you static compile opencv for qt. In cmake when i set BUILD_SHARED_LIBS=off i got this error Make Error at apps/haartraining/CMakeLists.txt:37 (add_library):
    Target "opencv_haartraining_engine" links to itself.
    And then in vs when i compile opencv i got lot of this errors:
    Error 45 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QMutex::QMutex(enum QMutex::RecursionMode)" (__imp_??0QMutex@@QAE@W4RecursionMode@0@@Z) referenced in function "void __cdecl `dynamic initializer for 'mutexKey''(void)" (??__EmutexKey@@YAXXZ) C:\ocv\myocv\apps\annotation\opencv_highgui2411.li b(window_QT.obj) opencv_annotation
    I use staticly compile Qt 5.4.1 with mingw32 and opencv 2.4.
    Thanks for any help

Similar Threads

  1. static and dynamic libraries linking
    By buddax2 in forum Newbie
    Replies: 2
    Last Post: 27th December 2010, 15:55
  2. Static and Dynamic Libraries
    By waynew in forum Newbie
    Replies: 29
    Last Post: 1st December 2010, 02:29
  3. Mixing static and dynamic Qt builds.
    By End in forum Newbie
    Replies: 3
    Last Post: 2nd March 2010, 22:04
  4. Replies: 17
    Last Post: 26th January 2010, 20:21
  5. having both static and dynamic libraries?
    By gfunk in forum Qt Programming
    Replies: 2
    Last Post: 7th May 2007, 07:33

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.