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

[question] wxWidgets requires gtk2-devel even gtk3-devel is installed #26386

Closed
kmreisi opened this issue Jan 15, 2025 · 1 comment
Closed

[question] wxWidgets requires gtk2-devel even gtk3-devel is installed #26386

kmreisi opened this issue Jan 15, 2025 · 1 comment
Labels
question Further information is requested

Comments

@kmreisi
Copy link

kmreisi commented Jan 15, 2025

What is your question?

Hi all,

We use SLES 12 as build environment and using wxWdigets fails.

Error:

package gtk2-devel is not installed

ERROR: gtk/system: Error in system_requirements() method, line 45
zypper.install([f"gtk{self.options.version}-devel"], update=True, check=True)

ConanException: System requirements: 'gtk2-devel' are missing but can't install because tools.system.package_manager:mode is 'check'.Please update packages manually or set 'tools.system.package_manager:mode' to 'install' in the [conf] section of the profile, or in the command line using '-c tools.system.package_manager:mode=install'

Shouldn't the recipe detect hat gtk3-devel is available and use this automatically?

These are the packages we install:

# Install required packages
RUN zypper -n ref -s && \
    zypper -n -q update && \
    zypper -n install --force-resolution -y \
        automake \
        bison \
        bzip2 \
        curl \
        doxygen \
        flex \
        gcc \
        gcc-c++ \
        gdb \
        gettext \
        git-core \
        glibc-32bit \
        glibc-locale \
        gtk3-devel \
        kernel-devel \
        libaio-devel \
        libaio1 \
        libbz2-devel \
        libffi-devel \
        libgcc_s1-32bit \
        liblzma5 \
        libopenssl-1_1-devel \
        libudev-devel \
        libusb-1_0-devel \
        lsb-release \
        make \
        numactl \
        openssl-1_1 \
        pcre-devel \
        pkg-config \
        rpm \
        rpm-build \
        sqlite3-devel \
        sudo \
        tar \
        udev \
        unzip \
        wget \
        which \
        xorg-x11-Xvnc \
        xvfb-run \
        xz \
        xz-devel \
        zlib-devel && \
    zypper -n clean -a

Is there a way / option to force the usage of gtk3 in our conanfile.py

@kmreisi kmreisi added the question Further information is requested label Jan 15, 2025
@kmreisi
Copy link
Author

kmreisi commented Feb 4, 2025

We have switched to use GTK2... I think it would be still cool to add an option to use wxWidgets with GTK3 from conan but since there is no activity at all and there is no need from my side anymore => closed ;-)

@kmreisi kmreisi closed this as completed Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant