SWIG could not be found when building on debian linux (wheezy) #5

Jotschi opened this Issue Jul 8, 2011 · 5 comments


None yet

2 participants

Jotschi commented Jul 8, 2011

I had to use the following command to build:
cmake -DSWIG_EXECUTABLE=/usr/bin/swig ..

otherwise i got the following error:

:~/build/psmoveapi/build$ cmake ..

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindSWIG.cmake:67 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:72 (find_package)

thp commented Jul 9, 2011

According to my local CMake installation, /usr/share/cmake-2.8/Modules/FindSWIG.cmake includes the following line at the top:


Could it be that your $PATH is set so that /usr/bin/ is not included when you run cmake? I'm not running Debian, but Ubuntu here - the version of Swig I have installed is 1.3.40-3ubuntu1 and the version of CMake is 2.8.3-1~maverick1 - which versions do you have installed?

Jotschi commented Jul 9, 2011

/usr/bin/swig is accessible via my $PATH
I have:
swig: 1.3.40-3
cmake: 2.8.5~rc2-1

thp commented Jul 10, 2011

That's strange. Do you have any suggestion on how to make it work on your installation as well without the need for the additional -D parameter? If not, would a documentation of this in the README file be helpful, and be enough to close this issue?

@thp thp was assigned Jul 10, 2011
Jotschi commented Jul 10, 2011

Adding this to the documentation will be sufficient. If i find a solution i'll let you know.

thp commented Jul 13, 2011

Added this to the README file in the repo. Closing now, but feel free to reopen when you have found a solution, so I can integrate the solution. Thanks!

@thp thp closed this Jul 13, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment