Error compiling Qt5 with openssl linked

前端 未结 2 1617
名媛妹妹
名媛妹妹 2021-01-12 07:05

My head will explode soon... I want to compile qt with -openssl-linked so the openssl libraries get linked into the qt libraries. I already tried many options and my output

2条回答
  •  旧巷少年郎
    2021-01-12 07:41

    I had to build Qt with the openssl version 1.0.1, don't know if it work with the 1.0.2. I had to change the path of the system's openssl libraries so that Qt was forced to use the ones I made. Lines to compile openssl running at the source's directory:

    ./config --prefix=/opt/openssl_build_stable -shared
    make
    make test
    sudo make install
    

    My conf line for Qt:

    OPENSSL_LIBS='-L/opt/openssl_build_stable/lib -lssl -lcrypto' ./configure -prefix /opt/qt5.5.1_linux_staticssl -opensource -confirm-license -release -nomake examples -nomake tests -static -openssl-linked -I /opt/openssl_build_stable/include/openssl -L /opt/openssl_build_stable/lib
    

    Thanks to simon-warta

提交回复
热议问题