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

[FTBS] v0.6.4 on openSUSE Leap 15.6 -- cmake wxWidgets_CONFIG_OPTIONS --toolkit=gtk3 (option not recognized) #39

Open
Corin-EU opened this issue Jan 31, 2025 · 1 comment

Comments

@Corin-EU
Copy link

Corin-EU commented Jan 31, 2025

This is with openSUSE Leap 15.6, cmake version 3.31.3, and wxWidgets-3_2-devel-3.2.6

When running cmake I get the error

           -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
           -- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS) 
           CMake Error at CMakeLists.txt:32 (MESSAGE):
          wxWidgets not found!

I was perplexed because I have the package wxWidgets-3_2-devel installed and there were no obvious other wxWidgets devel packages for other optional features available to be installed.

After numerous web searches I came across the patch on the page of the openSUSE build service for guayadeque

  https://build.opensuse.org/projects/multimedia:apps/packages/guayadeque/files guayadeque.patch

which comments out the CMakeLists.rxt line

              SET(wSET(xWidgets_CONFIG_OPTIONS --toolkit=gtk3)

This must be because the wxWidgets v3.2.6 package on openSUSE is built without gtk3 support

            wx-config --toolkit-gtk3
            *** Error: Unrecognised option: '--toolkit-gtk3'
           Use wx-config --help for information on command line options.

So commenting out this line resulted in a successful build.

Also if I may comment on the lines about this one

          SET( SEARCH_LIBS
                   /usr/lib
                  /usr/local/lib )

The full openSUSE patch comments this out as well (I did not so and the build was successfull so it is not currently an actual problem) but some distributions put some package libraries in /usr/lib64 (in the case of openSUSE and I think Fedora) and others (eg Debian and derivatives) put some package libraries in /usr/lib/ , so in general,restricting search to just lib and not lib64 and not lib/ as well appears to be too limiting.

@filochard
Copy link
Contributor

Hi Corin

Strange indeed

In openSUSE Leap 15.6 you should have wxGTK3-3_2-devel-3.1.5 and not wxGTK3-3_2-devel-3.2.6 which is only inside Tumbleweed

Have you wxGTK3-3_2-devel in your BuildRequires ?
this provides all the necessary include files for wxwidgets

Could you attach your spec file ?
NB If it is the same as inside :
https://build.opensuse.org/projects/multimedia:apps/packages/guayadeque/files/guayadeque.spec?expand=1
In this case you should replace
BuildRequires: wxWidgets-3_2-devel
by
BuildRequires: wxGTK3-3_2-devel

I think there's a problem for pkg-config to find wxGTK3-3_2-devel since there's no
/usr/lib64/pkgconfig/wxgtk.pc nor /usr/lib64/pkgconfig/wxwidgets.pc file inside the rpm of wxGTK3-3_2-devel ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants