Menu

libfontconfig and libcrypto can not be linked statically?

JohnYork
2015-04-06
2015-04-24
  • JohnYork

    JohnYork - 2015-04-06

    Hello!
    I'm compiling the static version of Qt v5.4.1,but while linking with some libraries such as fontconfig, crypto ..., the linker reports linking error :
    can not find -lfontconfig , -lcrypto : No such file or directory.
    While compiling the dynamic version of Qt, the error does not appear.
    Maybe is there something wrong ?

     
  • JohnYork

    JohnYork - 2015-04-06

    While compiling the shared-link version,the linking error is not produced.
    Do these libraries not provide static linking ?
    PS:The libraries which have relationship with static-link error are: fontconfig,openssl

     
  • David Macek

    David Macek - 2015-04-24

    mingw openssl seems to have static libraries. mingw fontconfig doesn't. I don't know if it's difficult to provide it. You can try playing with the fontconfig PKGBUILD (https://github.com/alexpux/mingw-packages/tree/master/mingw-w64-fontconfig), building a static version of fontconfig and then contributing the patch back to us. Information on building packages is on our wiki.