← 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

 

Add -DwxWidgits_CONFIG_EXECUTABLE=/path/to/the/correct/wx-config when
running cmake.  Otherwise, the cmake module that finds wxWidgets will
find the first one it discovers which in you case is 2.8.12.  The other
option it to remove the the wxWidgets 2.8.12 development package.

On 10/10/2014 11:34 AM, Benoît Roehr wrote:
> Aw sorry everyone. I just noticed my previous mail was only sent to
> Brian. It was a reply made in the build-under-windows subject. I join it
> in this subject here:
> On 09/10/2014 11:28, Brian Sidebotham wrote:
>> Lastly, if you do want to develop KiCad I would strongly urge moving
>> to Linux for development because it's just soooo much easier and
>> faster! We always require heavy testing on Windows, but developing on
>> Windows is a real pain.
> It has been a while I want to switch OS. I'm proud to announce this mail
> is sent from an Ubuntu VM ! However, I fail here:
> 
> purebasic@purebasic-VirtualBox:~/build/kicad/kicad.bzr/build$ cmake
> -DKICAD_STABLE_VERSION=ON ../
> 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
> -L/usr/lib/i386-linux-gnu;-pthread;;;-lwx_gtk2u_unofficial_gl-3.0;-lwx_gtk2u_unofficial_aui-3.0;-lwx_gtk2u_unofficial_adv-3.0;-lwx_gtk2u_unofficial_html-3.0;-lwx_gtk2u_unofficial_core-3.0;-lwx_baseu_unofficial_net-3.0;-lwx_baseu_unofficial-3.0;-lwx_baseu_unofficial_xml-3.0)
> 
> Call Stack (most recent call first):
>   CMakeModules/FindPackageHandleStandardArgs.cmake:341
> (_FPHSA_FAILURE_MESSAGE)
>   CMakeModules/FindwxWidgets.cmake:901 (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".
> 
> For info, I've installed wxWidget 3.0.2 Trusty (i'm on u14.04) using
> Synaptic. Do I need to change something else manually ? For me it looks
> like cmake try to use the last wx version which is still installed...
> 
> Le 10/10/2014 15:41, Benoît Roehr a écrit :
>> 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