Invalid wxPython version string passed to CMake find_package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Undecided
|
Seth Hillbrand |
Bug Description
CMake reports this error:
-- KiCad install dir: </usr>
-- Check for installed GLEW -- found
-- Boost version: 1.68.0
-- Check for installed Python Interpreter -- found
-- Python module install path: lib/python2.
-- wxPython/Phoenix version 4.0.0b1/gtk2 found.
CMake Error at CMakeLists.txt:822 (find_package):
find_package called with invalid argument "4.0.0b1"
CMake Error at CMakeLists.txt:825 (include):
include called with wrong number of arguments. include() only takes one
file.
-- S3DSG version: 2.0.0
-- Boost version: 1.68.0
-- Found the following Boost libraries:
-- unit_test_framework
-- Boost version: 1.68.0
-- Found the following Boost libraries:
-- unit_test_framework
-- Boost version: 1.68.0
-- Found the following Boost libraries:
-- unit_test_framework
-- Configuring incomplete, errors occurred!
This is caused by passing a version string into the CMake "find_package" function not matching the required numerical format: "[0-9]+
Adding, at line 817 of CMakeLists.txt, a string filter will remove the illegal characters from the version string:
string( REGEX MATCH "[0-9]+
But the real problem is how that "b1" suffix ended up in the requested version in the first place, of course.
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Hi Stefan,
It seems that Seth has already added a workaround for the problem. Could you tell me what is the output of 'import wx;print( wx.version( ))' executed in Python shell on your system? My suspicion is that Phoenix reports the version in the wxPython style that confuses the CMake script (if condition in line 762).