Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] qt/6.4.1: issues with fontconfig #14610

Closed
EricAtORS opened this issue Dec 6, 2022 · 2 comments
Closed

[package] qt/6.4.1: issues with fontconfig #14610

EricAtORS opened this issue Dec 6, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@EricAtORS
Copy link
Contributor

EricAtORS commented Dec 6, 2022

Description

I'm trying to build qt/6.4.1 and I keep getting build errors with fontconfig missing symbols.
The symbols come from expat.

I tried addiing a self.cpp_info.requires = ["expat::expat"] to the package_info of fontconfig and rebuilding it, but it did not resolve the issue.

Package and Environment Details

  • Package Name/Version: qt/6.4.1
  • Operating System+version: AlmaLinux 8.6
  • Compiler+version: GCC 10
  • Conan version: conan 1.55.0

Conan profile

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=10
compiler.libcxx=libstdc++
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

conan install -r conancenter qt/6.4.1@

I don't know how to specify version dependencies in the command line, but these are the versions that were outputted from conan info for my recipe:

depencies for qt
        zlib/1.2.13
        openssl/1.1.1s
        pcre2/10.37
        double-conversion/3.2.1
        freetype/2.12.1
        fontconfig/2.13.93
        icu/70.1
        harfbuzz/5.2.0
        libjpeg/9e
        libpng/1.6.39
        xorg/system
        xkbcommon/1.4.1
        opengl/system
        zstd/1.5.2
        wayland/1.21.0
        brotli/1.0.9
        dbus/1.15.0
        md4c/0.4.8

And these are my build options for qt

Buid options
        -o shared=True
        -o qttools=True
        -o qtwebchannel=False
        -o qtwebengine=False
        -o qtwebsockets=False
        -o qt5compat=True
        -o qtsvg=True
        -o qtimageformats=True
        -o qtscxml=True
        -o qtmultimedia=False
        -o qtactiveqt=False
        -o qtdatavis3d=False
        -o qtdeclarative=False
        -o qtlanguageserver=False
        -o qtshadertools=True  # needed for the web engine and for certain aspects of font rendering
        -o qtcoap=False
        -o qtcharts=False
        -o qtconnectivity=False
        -o qtvirtualkeyboard=False
        -o qtwayland=True
        -o qtserialbus=False
        -o qtsensors=False
        -o with_sqlite3=False
        -o with_mysql=False
        -o with_pq=False
        -o with_odbc=False
        -o with_libjpeg=libjpeg
        -o with_libpng=True
        -o with_zstd=True
        -o with_md4c=True
        -o with_freetype=True
        -o with_glib=False
        -o with_dbus=True
        -o with_icu=True
        -o gui=True
        -o widgets=True      
Logs
Click to expand log
/opt/rh/gcc-toolset-10/root/usr/bin/ld: /work/linux/.conan/data/fontconfig/2.13.93/_/_/package/ebf14a7c2e256d19a84a210a82
1beaa67f0a0a9c/lib/libfontconfig.a(fcxml.c.o): in function `FcConfigMessage.constprop.1':
fcxml.c:(.text+0x6d6): undefined reference to `XML_GetCurrentLineNumber'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0x749): undefined reference to `XML_GetCurrentLineNumber'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: /work/linux/.conan/data/fontconfig/2.13.93/_/_/package/ebf14a7c2e256d19a84a210a82
1beaa67f0a0a9c/lib/libfontconfig.a(fcxml.c.o): in function `FcConfigMessage.constprop.0':
fcxml.c:(.text+0xd16): undefined reference to `XML_GetCurrentLineNumber'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0xd91): undefined reference to `XML_GetCurrentLineNumber'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: /work/linux/.conan/data/fontconfig/2.13.93/_/_/package/ebf14a7c2e256d19a84a210a82
1beaa67f0a0a9c/lib/libfontconfig.a(fcxml.c.o): in function `FcConfigParseAndLoadFromMemoryInternal':
fcxml.c:(.text+0x1a3a): undefined reference to `XML_ParserCreate'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0x1ac3): undefined reference to `XML_SetUserData'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0x1ad9): undefined reference to `XML_SetDoctypeDeclHandler'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0x1aef): undefined reference to `XML_SetElementHandler'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0x1afe): undefined reference to `XML_SetCharacterDataHandler'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0x1b11): undefined reference to `XML_GetBuffer'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0x1b7a): undefined reference to `XML_ParseBuffer'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0x1b86): undefined reference to `XML_GetErrorCode'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0x1b8d): undefined reference to `XML_ErrorString'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0x1bdf): undefined reference to `XML_ParserFree'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: fcxml.c:(.text+0x1c77): undefined reference to `XML_ParseBuffer'
collect2: error: ld returned 1 exit status```

Here's the full build log:
https://pastebin.com/XmJecmWV

@EricAtORS EricAtORS added the bug Something isn't working label Dec 6, 2022
@ericLemanissier
Copy link
Contributor

Are you really using the vanilla qt recipe from conan-center ? because your log has qt/6.4.1 from 'ors' - Cache. also, it has no qt/6.4.1: Generator cmake_find_package, and you have the exact same error as my pr #14592

@EricAtORS
Copy link
Contributor Author

That is it.
I'll close the issue for now.

I wanted to use the same recipe on both windows and linux and you previously suggested to patch conanfile as per #13144 from #14327

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants