Ask Your Question
4

Unable to find 'swig.swg' and Unable to find 'python.swg

asked 2012-06-20 03:24:21 -0500

MarkyMark2012 gravatar image

updated 2014-01-28 17:12:44 -0500

ngrennan gravatar image

Hi All,

I'm building a new Debian (wheezy) install.

Following the usual instructions. I've successfully built the swig app - swig.swg & python.swg exist in /swig/1.3.29.

Seems the build script can't find them - anyone any idea what's wrong? Output is:

'[ 61%] Generating rosout_panel_swig_generated.cpp, rxtoolscpp.py
:1: Error: Unable to find 'swig.swg'
:3: Error: Unable to find 'python.swg
/home/pi/ros-underlay/rx/rxtools/src/
rxtools/rxtools.i:2: Error: Unable to
find 'std_string.i'
/home/pi/ros-underlay/rx/rxtools/src/
rxtools/rxtools.i:13: Error: Unable to find 'typemaps.i'
/home/pi/ros-underlay/rx/wxPython_swig_interface/src/wxPython_swig_interface/core.i:25: Error: Unable to find '
typemaps.i'
make[2]: *** [rx/rxtools/rosout_panel_swig_generated.cpp] Error 1
make[1]: *** [rx/rxtools/CMakeFiles/python_rxtools.dir/all] Error 2
make: *** [all] Error 2

Thanks

Mark

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
8

answered 2012-06-20 21:30:31 -0500

MarkyMark2012 gravatar image

Okay found the problem. For some reason the swig installation script thought is had installaed the lib at /usr/local/share/swig/... (Which is normal) however the actual files were in /swig i.e. off top level dir.

Solution

cp -r /swig /usr/local/share

and get on with the build.

edit flag offensive delete link more

Comments

If you don't want to copy the files to the wider filesystem, you can pass swig the -I option to specify where to look for your .swg files: swig-2.0.10/swig -go -intgosize 64 -Iswig-2.0.10/Lib -Iswig-2.0.10/Lib/go example.i

spiffytech gravatar image spiffytech  ( 2013-08-06 12:52:15 -0500 )edit
0

answered 2012-08-19 04:42:47 -0500

slomobile gravatar image

Thank you. This helped me install ROS on Raspberry Pi with current Raspian.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-06-20 03:24:21 -0500

Seen: 12,013 times

Last updated: Aug 19 '12