Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.7.0 Static + QtCrypto = compile error
QtWS25 Last Chance

Qt 5.7.0 Static + QtCrypto = compile error

Scheduled Pinned Locked Moved General and Desktop
qt5.7.0windowsvc2013qtcryptostatic
2 Posts 2 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qDebug
    wrote on 24 Nov 2016, 13:28 last edited by
    #1

    Hello guys!

    I do want to get some better understanding in compiling from source so i did compile Qt 5.7.0 shared, static and static with runtime. I still use VC2013. So far i managed to get QtFtp and some other tools working with static and shared builds but QtCrypto (qca 2.2.0) did not compile so far.

    C4273: 'QCA::Provider::Context::qt_static_metacall' : inconsistent dll linkage
    C2491: 'QCA::Provider::Context::staticMetaObject' : definition of dllimport static data member not allowed
    

    Guess i got the latest version from

    git://anongit.kde.org/qca.git
    

    Did a lot of try and error but so far without luck. Is there a way, maybe by editing the "CMakeLists.txt"?

    Thanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Jan 2017, 20:19 last edited by
      #2

      Hi,

      I haven't done any static compilation of QCA but there's a QT_IS_STATIC in the src CMakeLists.txt. Might be worth playing with it.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved