CMake does not check if wxPython dev files are present

Bug #1785663 reported by Antonio Vázquez Blanco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Low
Wayne Stambaugh

Bug Description

CMake currently checks if wxPython is installed but does not check wether the corresponding development include files and libs are present in the system. For this reason, in a clean ubuntu 18.04 installation, if the following packages are installed:

```
cmake build-essential g++ libwxgtk3.0-gtk3-dev libglew-dev libglm-dev libcurl4 libcurl4-gnutls-dev libcairo2-dev libboost-dev libboost-test-dev git autoconf libtool automake flex bison liboce-foundation-dev liboce-ocaf-dev swig python python-dev ca-certificates python-wxgtk3.0 doxygen graphviz libssl-dev
```

we are able to execute CMake and start a compilation that will fail with the following error:

```
In file included from /builds/kicad-mirror/kicad-source-mirror/pcbnew/pcbnew.cpp:32:0:
/builds/kicad-mirror/kicad-source-mirror/pcbnew/swig/python_scripting.h:39:14: fatal error: wx/wxPython/wxPython.h: No such file or directory
     #include <wx/wxPython/wxPython.h>
```

Instead, if we install python-wxgtk3.0-dev on top of the previous packages everything will work.

Should CMake scripts check wether the corresponding files are present?

Tags: cmake
tags: added: cmake
Seth Hillbrand (sethh)
Changed in kicad:
status: New → Triaged
importance: Undecided → Low
Changed in kicad:
assignee: nobody → Wayne Stambaugh (stambaughw)
status: Triaged → In Progress
Changed in kicad:
milestone: none → 5.1.0
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 9519de8ab258d142952026f3bbebd1997e85ef16
https://git.launchpad.net/kicad/patch/?id=9519de8ab258d142952026f3bbebd1997e85ef16

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
Antonio Vázquez Blanco (antoniovazquezblanco) wrote :

Thank you very much!

Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.