kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #28818
Re: swig v3.0 not detected during cmake process under linux
Hi Fabrizio,
Have you cleared out (i.e. deleted) your build tree since removing
swig 2 and run CMake from fresh? CMake probably may not pick up the
change otherwise, as it could have cached the result of the original
FindSWIG. Deleting the build tree is drastic but leaves no doubt as
what gets used.
Cheers,
John
On Wed, Mar 22, 2017 at 4:43 PM, Fabrizio Tappero
<fabrizio.tappero@xxxxxxxxx> wrote:
> Hi JP,
> ah OK thanks for the reply.
>
> Removing swig2 does not really solve the problem.
>
>
>
> fabrizio@ln1 /opt/kicad-source-mirror/build/release $ sudo apt-get remove
> swig2.0
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package 'swig2.0' is not installed, so not removed
> 0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
> fabrizio@ln1 /opt/kicad-source-mirror/build/release $ cmake
> -DCMAKE_BUILD_TYPE=Release -DKICAD_SCRIPTING=ON
> -DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_WXPYTHON=ON
> ../../
> -- Kicad install dir: </usr/local>
> -- Found Glew: /usr/lib/x86_64-linux-gnu/libGLEW.so
> -- Check for installed GLEW -- found
> -- Boost version: 1.54.0
> -- Found the following Boost libraries:
> -- system
> CMake Error at CMakeModules/FindSWIG.cmake:68 (message):
> Command "/usr/bin/swig2.0 -swiglib" failed with output:
>
> Call Stack (most recent call first):
> CMakeLists.txt:612 (find_package)
>
>
> CMake Error at
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
> (message):
> Could NOT find SWIG: Found unsuitable version "2.0.11", but required is at
> least "3.0" (found /usr/bin/swig2.0)
> Call Stack (most recent call first):
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:313
> (_FPHSA_FAILURE_MESSAGE)
> CMakeModules/FindSWIG.cmake:93 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
> CMakeLists.txt:612 (find_package)
>
>
> -- Configuring incomplete, errors occurred!
> See also
> "/opt/kicad-source-mirror/build/release/CMakeFiles/CMakeOutput.log".
> See also "/opt/kicad-source-mirror/build/release/CMakeFiles/CMakeError.log".
>
> cheers
> Fabrizio
>
>
> On Tue, Mar 21, 2017 at 5:29 PM, jp charras <jp.charras@xxxxxxxxxx> wrote:
>>
>> Le 21/03/2017 à 16:55, Fabrizio Tappero a écrit :
>> > Hello,
>> > in refernece to this bug report
>> > https://bugs.launchpad.net/kicad/+bug/1592027
>> >
>> > I still experience the same problem.
>> >
>> > Regards
>> > Fabrzio
>> >
>> >
>>
>> bug 1592027 has nothing to do with you issue.
>>
>> Your issue looks like you have both swig2.0 and swig (swig3) installed.
>> Perhaps you should try to remove swig2.0
>>
>> >
>> >
>> >
>> > fabrizio@ln1 /opt/kicad-source-mirror/build/release $ swig -version
>> >
>> > SWIG Version 3.0.12
>> >
>> > Compiled with g++ [x86_64-pc-linux-gnu]
>> >
>> > Configured options: +pcre
>> >
>> > Please see http://www.swig.org for reporting bugs and further
>> > information
>> > fabrizio@ln1 /opt/kicad-source-mirror/build/release $ cmake
>> > -DCMAKE_BUILD_TYPE=Release
>> > -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=OFF
>> > -DKICAD_SCRIPTING_WXPYTHON=OFF
>> > ../../
>> > -- Kicad install dir: </usr/local>
>> > -- Found Glew: /usr/lib/x86_64-linux-gnu/libGLEW.so
>> > -- Check for installed GLEW -- found
>> > -- Boost version: 1.54.0
>> > -- Found the following Boost libraries:
>> > -- system
>> > CMake Error at CMakeModules/FindSWIG.cmake:68 (message):
>> > Command "/usr/bin/swig2.0 -swiglib" failed with output:
>> >
>> > Call Stack (most recent call first):
>> > CMakeLists.txt:612 (find_package)
>> >
>> >
>> > CMake Error at
>> > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
>> > (message):
>> > Could NOT find SWIG: Found unsuitable version "2.0.11", but required
>> > is at
>> > least "3.0" (found /usr/bin/swig2.0)
>> > Call Stack (most recent call first):
>> > /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:313
>> > (_FPHSA_FAILURE_MESSAGE)
>> > CMakeModules/FindSWIG.cmake:93 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>> > CMakeLists.txt:612 (find_package)
>> >
>> >
>> > -- Configuring incomplete, errors occurred!
>> > See also
>> > "/opt/kicad-source-mirror/build/release/CMakeFiles/CMakeOutput.log".
>> > See also
>> > "/opt/kicad-source-mirror/build/release/CMakeFiles/CMakeError.log".
>> > fabrizio@ln1 /opt/kicad-source-mirror/build/release $ uname -a
>> > Linux ln1 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40
>> > UTC 2015 x86_64 x86_64 x86_64
>> > GNU/Linux
>> >
>> >
>> >
>> > _______________________________________________
>> > 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
>> >
>>
>>
>> --
>> Jean-Pierre CHARRAS
>>
>> _______________________________________________
>> 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
>
>
>
> _______________________________________________
> 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
>
References