Hello,
I am trying to compile KiCad V6.0.0 on Ubuntu Linux 18.04 and stumble over the following cmake error:
…
– Found SWIG: /usr/bin/swig3.0 (found suitable version “3.0.12”, minimum required is “3.0”)
– pybind11 v2.7.1
– Found PythonInterp: /usr/bin/python3 (found version “3.6.9”)
– Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so
– Performing Test HAS_FLTO
– Performing Test HAS_FLTO - Success
– Found PythonInterp: /usr/bin/python3 (found suitable version “3.6.9”, minimum required is “3.6”)
– Check for installed Python Interpreter – found
– Python module install path: lib/python3/dist-packages
– Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found suitable version “3.6.9”, minimum required is “3.6”)
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘wx’
CMake Error at CMakeModules/FindwxPython.cmake:56 (message):
wxPython/Phoenix does not appear to be installed on the system
Call Stack (most recent call first):
CMakeLists.txt:827 (find_package)
There seems to miss the module wx, which seems to belong to wxPython/Phoenix.
Can someone tell me please, how to resolve this. Thanks.
I installed python3-pip and wxpython to get Phoenix 4.1.1/gtk3. Then I compiled and installed wxWidgets to get the required version 3.1.5. Now I get another CMake Error:
…
– Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so
– Performing Test HAS_FLTO
– Performing Test HAS_FLTO - Success
– Found PythonInterp: /usr/bin/python3 (found suitable version “3.6.9”, minimum required is “3.6”)
– Check for installed Python Interpreter – found
– Python module install path: lib/python3/dist-packages
– Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found suitable version “3.6.9”, minimum required is “3.6”)
– Found Phoenix 4.1.1/gtk3 (wxWidgets 3.1.5)
– Found wxWidgets: -L/usr/local/lib;-pthread;;;-lwx_gtk3u_gl-3.1;-lwx_gtk3u_aui-3.1;-lwx_gtk3u_html-3.1;-lwx_gtk3u_core-3.1;-lwx_baseu_net-3.1;-lwx_baseu-3.1;-lwx_gtk3u_propgrid-3.1;-lwx_baseu_xml-3.1;-lwx_gtk3u_stc-3.1;-lwx_gtk3u_richtext-3.1 (found suitable version “3.1.5”, minimum required is “3.1.5”)
– Found Doxygen: /usr/bin/doxygen (found version “1.8.13”) found components: doxygen dot
– Found UnixCommands: /bin/bash
– Checking for module ‘gtk±3.0’
– Found gtk±3.0, version 3.22.30
– S3DSG version: 2.0.0
CMake Error at utils/kicad2step/CMakeLists.txt:34 (target_link_libraries):
Object library target “kicad2step_lib” may not link to anything.
But I cannot find the specified file CMakeLists.txt.
Hmm. I had your original error but adding the correct wxWidgets got me through. I downloaded the tarball and built from that. What are you using as source? I’m on Debian.
I used Synaptic because I really had no flipping idea what supplied Phoenix when I got this error. I had seen this thread but didn’t actually reference it while compiling. Should have because
is the package I found and installed and it ‘just worked’ after that. I know little to nothing about pip. When I asked for ‘source’ I meant Kicad source. I just used the bzip2 tarball form gitlab.
This has nothing to do with python. Ubuntu 18.04 is over 3.5 years old. If you want or need to stick to it, you have to accept some baggage which comes with the age. However, 6.0 seems to be packaged for 18.04 here: https://launchpad.net/~kicad/+archive/ubuntu/kicad-6.0-releases. You should be able to follow the instructions here: https://gitlab.com/eelik-kicad/kicad/-/wikis/How-to-build-KiCad-on-Ubuntu-(the-easy-way), replacing the suggested ppa with the needed one, and then just compile. I haven’t tested with 18.04, so I don’t know which compile flags this ppa package uses and if all the wanted dependencies are satisfied in your case.
and from the few minutes working with it I seem to have a properly working KiCad V6 now.
Before that (just 7 hours earlier) there was some trouble with either launchpad or with the PPA for KiCad V6 on Launchpad, and I could not update. Because of those launchpad problems I did give a compilation of KiCad V6 a try, but I quickly gave up myself when I it a missing dependency for OpenGL. I did not see a list of dependencies, and I was not in the mood of tracking down and fixing them one by one.
thank you eelik (and the others) for trying to help. But I give up for now. Since I am completely satisfied with KiCad V5.x, I will not try again until I have a newer Ubuntu installed.
Regards, Bernd.
cmake now runs without errors. When compiling KiCad I now get the following error:
[ 22%] Building CXX object common/CMakeFiles/gal.dir/draw_panel_gal.cpp.o
In file included from /home/bernd/kicad/kicad-source-mirror-6.0.0/include/gal/opengl/shader.h:32,
from /home/bernd/kicad/kicad-source-mirror-6.0.0/include/gal/opengl/opengl_gal.h:35,
from /home/bernd/kicad/kicad-source-mirror-6.0.0/common/draw_panel_gal.cpp:42:
/home/bernd/kicad/kicad-source-mirror-6.0.0/include/gal/opengl/kiglew.h:53:14:
error: #error “KICAD_USE_EGL must be defined since wxWidgets has been compiled with the EGL canvas”
This looks to me as if I didn’t compile wxWidgets with the correct canvas options.
Is defining KICAD_USE_EGL in the KiCad build options the right way, or must wxWidgets be compiled with other options? Thanks.