$ hg clone https://bitbucket.org/sinbad/ogre
$ cd ogre
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ogre
$ make -j8
$ sudo make install
However, after executing make, I get the following error ...
Code: Select all
...
[ 80%] Linking CXX shared module ../../lib/_OgreRTShader.so
[ 81%] Building CXX object RenderSystems/GL/CMakeFiles/RenderSystem_GL.dir/src/StateCacheManager/OgreGLNullUniformCacheImp.cpp.o
[ 81%] Built target _OgreRTShader
[ 81%] Swig source
~/ogre/Components/Bites/include/OgreApplicationContext.h:54: Error: Unknown SWIG preprocessor directive: import (if this is a block of target language code, delimit it with %{ and %})
Components/Python/CMakeFiles/_OgreBites.dir/build.make:61: recipe for target 'Components/Python/OgreBitesPYTHON_wrap.cxx' failed
make[2]: *** [Components/Python/OgreBitesPYTHON_wrap.cxx] Error 1
CMakeFiles/Makefile2:1285: recipe for target 'Components/Python/CMakeFiles/_OgreBites.dir/all' failed
make[1]: *** [Components/Python/CMakeFiles/_OgreBites.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 81%] Linking CXX shared library ../../lib/RenderSystem_GL.so
[ 81%] Built target RenderSystem_GL
[ 81%] Linking CXX shared module ../../lib/_Ogre.so
[ 81%] Built target _Ogre
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2