← Back to team overview

kicad-developers team mailing list archive

Re: CMake fails to find wxWidget in a fresh Ubuntu 14.04 install when trying to build KiCad

 


Le 10/10/2014 21:33, inkblotter a écrit :
been there, done that.

You are close.. All that removing of this and that is/should be unnecessary and even undesirable

you should be using
-DwxWidgits_CONFIG_EXECUTABLE=/path/to/the/correct/wx-config
Oh noes ! I totally forgot to try that !!! Well, I'll remove the wx-2.8 fake folder I made once the build is finished and try this option.
config option to cmake.  Also make sure that  the path to the wx bin directory is on your PATH so it can execute wx-config

Even with the development files gone you should still use this option.
If it still fails for you after doing that (and it did so for me on fedora 20) then we can change (hack) a couple lines in a cmake file.

Some day I will figure out why this is necessary and how to rearrange the culprit cmake file.

Let me know and I will tell you what to do further.


On 10/10/2014 08:41 AM, Benoît Roehr wrote:
Hello guys,

My problem with wxWidget 3.0 and CMake continues, I've tried to make this work for at least 10 hours now, and can't find any solution anywhere. I'm too noob with linux for the moment.

List of what I tried:
    Installing latest wxWidget package (3.0.2)
    Removing wx2.8
    Removing wx3.0.2
    Installing wx3.0.0...

Each of the wx3.0.2 and 3.0.0 install were returning correct version number to the command wx-config --verion-full. I created a link each tim using sudo ln -sv wx-3.0/wx wx ...But still, cmake try to find a 3.0 minimum required version in a wx-2.8 folder which doesn't exist anymore... Here is the terminal output below: I give up for today...

purebasic@purebasic-VirtualBox:~/build/kicad/kicad.bzr/build$ cmake ../CMake Error at CMakeModules/FindwxWidgets.cmake:868 (file):
  file Internal CMake error when trying to open file:
  /usr/include//_*wx-2.8*_//wx/version.h for reading.
Call Stack (most recent call first):
  CMakeLists.txt:411 (find_package)


CMake Error at CMakeModules/FindPackageHandleStandardArgs.cmake:136 (message): Could NOT find wxWidgets: Found unsuitable version "..", but required is at
  least "3.0.0" (found
-L/usr/lib/i386-linux-gnu;-pthread;;;-lwx_gtk2u_gl-3.0;-lwx_gtk2u_aui-3.0;-lwx_gtk2u_adv-3.0;-lwx_gtk2u_html-3.0;-lwx_gtk2u_core-3.0;-lwx_baseu_net-3.0;-lwx_baseu-3.0;-lwx_baseu_xml-3.0)
Call Stack (most recent call first):
CMakeModules/FindPackageHandleStandardArgs.cmake:341 (_FPHSA_FAILURE_MESSAGE) CMakeModules/FindwxWidgets.cmake:902 (find_package_handle_standard_args)
  CMakeLists.txt:411 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/purebasic/build/kicad/kicad.bzr/build/CMakeFiles/CMakeOutput.log".







_______________________________________________
Mailing list:https://launchpad.net/~kicad-developers
Post to     :kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe :https://launchpad.net/~kicad-developers
More help   :https://help.launchpad.net/ListHelp



Follow ups

References