#68 Can't install python swig

open
nobody
General (20)
5
2009-12-09
2009-12-09
kaouete
No

Hello,

When I want to install the python swig generated libs with the following commands:
cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCREATE_PYTHON=TRUE
make
make install

I get this error:
Install the project...
-- Install configuration: ""
CMake Error at cmake_install.cmake:36 (FILE):
file INSTALL cannot find
"/home/victor/code/pkgbuild/yarp/src/yarp-2.2.5/example/swig/yarp.py".

I think this is because yarp.py is in generated_src.

Discussion

  • Paul Fitzpatrick

    Thanks for the report! Sounds like interference between the Java wrappers build and the Python wrappers build. It is safer to just turn on and build one language at a time, since combinations don't get tested much by users (and this stuff is basically user-maintained). Try turning off the CREATE_JAVA flag if it is turned on (delete your CMakeCache.txt file if necessary, or use ccmake .)

     
  • kaouete

    kaouete - 2009-12-09

    Hello, why don't you just choose the same CMAKE_SWIG_OUTDIR for every language and rely on it for the install?
    Or choose a different subdirectory in generated_src for each language for example?
    It would then be easier to install.

     
  • Paul Fitzpatrick

    In practice, the CMake code for each language is maintained by different users so there is no coherent strategy. It might be better to break the CMakeLists.txt file up across a separate directory per language to reflect this reality and avoid interference. It is difficult for one person to make even safe-sounding global changes because of the variety of versions and environments out there.

     
  • kaouete

    kaouete - 2009-12-09

    Yes, anyway, the important is that the problem is known :)

    Thanks for you help on this!

     
  • Nobody/Anonymous

    I'm having a small issue I cannot make my reader pick up your rss feed, I'm using google reader by the way. [url=http://www.coachkau.com/]??? ??? ??\??? ?????? ??[/url] <a href="http://www.coachkau.com/" title="??? ??? ??\??? ?????? ??">??? ??? ??\??? ?????? ??</a>