← Back to team overview

kicad-developers team mailing list archive

Re: cmake errors wxWidgets

 

On Tue, 2015-02-10 at 01:11 -0600, inkblotter wrote:
> I'll try again to find someone who understands  the ins and out of
> cmake enough to steer me to some solution that make sense.  Below you
> will see what happens on Fedora always with kicad cmake and wxWidgets.
> 
> CMake Error at CMakeModules/FindPackageHandleStandardArgs.cmake:131
> (include):
> 
> include could not find load file:
> 
> Call Stack (most recent call first):
> CMakeModules/FindwxWidgets.cmake:928 (include)
> CMakeLists.txt:444 (find_package)
> CMake Error at CMakeModules/FindPackageHandleStandardArgs.cmake:136
> (message):
> Could NOT find wxWidgets: Found unsuitable version "2.8.12", but
> required is at least "3.0.0" (found

Have you made sure your libs and includes are on your path
(CPLUS_INCLUDE_PATH and LD_LIBRARY_PATH)? When I build I used wxPython
3.0.2.0, and my paths look like this:

   export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$wxPythonPath/wxPython/include
   export LD_LIBRARY_PATH=$wxLibs:$LD_LIBRARY_PATH

Where $wxPythonPath is the root dir of wxPython's source and $wxLibs is
the lib subdirectory of the wxPython build directory.

This process is documented here, but I've never tried on Fedora. I don't
see why it shouldn't be much the same:

   https://gist.github.com/johnbeard/4d1a8e43b05bcb03e9b4   

> One more question for those who know.  I seem to recall that when
> building wxWidgets it is important to use additional flags  so that
> gal will be happy.   I don't remember the libs involved but I seem to
> recall that there were two libs needed.

I don't recall installing any thing particularly for GAL happiness, but
looking at the way I built KiCad, it might be one of:

libgl1-mesa-dev libglew-dev libcairo2-dev libwebkitgtk-dev 

These are Debian packages, but they are similar for Fedora.




References