Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Does openssl-linked work?
Forum Updated to NodeBB v4.3 + New Features

Does openssl-linked work?

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 1.3k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    danielrr
    wrote on last edited by
    #1

    Hi all,

    I need my apps to use a very specific version of openssl.

    I was told that by default, Qt apps would load the dynamic openssl libs on my system (Mac OSX 10.8.4, libs are in /usr/lib/) and that if I wanted them to use another version I would have to either make the apps look for the dylibs in the local path (how?) or link to openssl libs statically.

    I think the latter can be achieved by building the Qt project using ./configure -openssl-linked, then make,, and then building applications using the Qt libs created (http://qt-project.org/doc/qt-5.1/qtnetwork/ssl.html ).

    I did that, and then built my project but the apps still seem to look for openssl dynamically. Running "otool -L <exec>" still says:
    /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 47.0.0)
    /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 47.0.0)
    ...

    These are the commands I ran:

    export OPENSSL_LIBS="-L /Users/MyUser/Development/MyProject/dependencies/openssl -lssl -lcrypto"

    ./configure -prefix /Users/MyUser/qt-static -openssl-linked -opensource -confirm-license -nomake examples -nomake tests

    make -j 4

    make install

    Am I doing something wrong?

    1 Reply Last reply
    0

    • Login

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