Menu

#1386 Configure fails version check against wxWidgets 3.2.2.1

Undefined
invalid
nobody
None
Undefined
2023-03-14
2023-03-09
mwoodj
No

On February 13, 2023 the wxWidgets project announced a patch release for the stable branch. The version number is 3.2.2.1. Traditionally wxWidgets uses a 3 part version number which is defined as the major, minor, and micro values. The codeblocks configure script expects, and handles, a 3 part version number. The introduction of a fourth value results in a configure error which causes it to report that wxWidgets is too old. The fourth part (patch version?) of the version number needs to be handled in the configure script in order to configure and build against wxWidgets 3.2.2.1. A work around is to install wxWidgets 3.2.1 or 3.2.2 and build Code::Blocks. Then wxWidgets can be updated to 3.2.2.1 and Code::Blocks will run against the updated libraries.

The relevant output from configure follows.

checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 3.0.0... ./configure: line 23077: test: 3.1: integer expression expected
./configure: line 23080: test: 3.1: integer expression expected
no (version 3.2.2.1 is not new enough)
configure: error: 
    The requested wxWidgets build couldn't be found.


    If you still get this error, then check that 'wx-config' is
    in path, the directory where wxWidgets libraries are installed
    (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
    or equivalent variable and wxWidgets version is 3.0.0 or above.

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2023-03-11

    AM_PATH_WXCONFIG is deprecated since wxWidgets 2.9.1, WX_CONFIG_CHECK (from wxwin.m4) should be used instead. Probably this will fix the issue, but I am far to be an autotools expert.

     
    • mwoodj

      mwoodj - 2023-03-11

      That doesn't appear to solve the problem. There is a report of the same problem here and, based on that exchange, this may actually be an issue specific to wxWidgets installed through Gentoo's portage which is what I'm using. https://github.com/wxWidgets/wxWidgets/pull/23289

       
  • Miguel Gimenez

    Miguel Gimenez - 2023-03-14
    • status: open --> invalid
     
  • Miguel Gimenez

    Miguel Gimenez - 2023-03-14

    So it is a problem with the wx-config implementation on Gentoo, unrelated to C::B.

     

Log in to post a comment.

MongoDB Logo MongoDB