Menu

#44 Support for gtk3+

v1.0 (example)
open
nobody
None
5
2018-07-21
2018-07-17
No

I have been packaging golly for pkgsrc (see http://pkgsrc.se/wip/golly ) In the previous quarterly release of pkgsrc, I had golly depend on wxGTK30. wx used gtk2+ at the time, but in the mean time it has been upgraded to use gtk3+.

This causes the configure script to fail:

checking for wxWidgets version >= 2.8.0 (--version=)... yes (version 3.0.4)
checking for wxWidgets static library... no
checking if wxWidgets was built with UNICODE enabled... yes
checking if wxWidgets was built in DEBUG mode... no
checking if wxWidgets was built in STATIC mode... no
checking which wxWidgets toolkit was selected... configure: error:
Cannot detect the currently installed wxWidgets port !
Please check your 'wx-config --cxxflags'...

*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/wip/golly
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/golly

This caused some headscratching, until I saw in the configure script that it tries to determine (for some unknown reason) on which graphics library wxWidgets is built.

This is of course rather unportable. Can't you leave that check out? Or otherwise, also recognize gtk3+?

Discussion

  • Andrew Trevorrow

    Maks Verver has just committed a fix so please retry using the latest version of the code in the Git repository, or using this source code bundle created by Maks:

    https://aurora.verver.ch/~maks/golly/golly-3.3b1-src.tar.gz

     
  • Andrew Trevorrow

    Reply via email from Olaf Seibert:

    Yes! That works. I compiled it and gave it a quick trial run.
    Gtk3+ looks a bit different from gtk2+ but that is to be expected.
    I observed nothing obviously weird.

    Thanks!