Page 1 of 1

recipe for target 'all' failed

Posted: Thu Jan 26, 2017 8:00 pm
by rrlangly
These are the steps I use to build ogre, which I think is pulling down 1.10.

$ 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
Any ideas where I'm going wrong?

Re: recipe for target 'all' failed

Posted: Thu Jan 26, 2017 8:33 pm
by frostbyte
this should'nt happen...if you dont have swig and python installed then the python binding module is supposed to be ignored...
https://bitbucket.org/sinbad/ogre/src/3 ... ew-default

i remember from the days of using gcc that using -j option always caused the build process to break at some point( do you realy have 8 cores? :shock: ) but if i typed make again then the build would continue( IIRC make without the -j option )
so i think maybe you can just ignore it and try to continue your build with just make, if it doesn't work call us again...
but if you want fixed ogre with cool python bindings just install python and swig :wink:
btw..fastest safest way to build ogre is enabling "unity build" option in cmake( why not use cmake-gui? )
and using make without -j( unity builds are single threaded anyway )

Re: recipe for target 'all' failed

Posted: Fri Jan 27, 2017 10:52 am
by Feanor16
try with a

Code: Select all

hg update
if you just do a clone, you will not have the last update

Re: recipe for target 'all' failed

Posted: Fri Jan 27, 2017 12:04 pm
by paroj
are you building the Python component on purpose? And if so which version of SWIG do you have? Probably this whole block can just be deleted:
https://github.com/OGRECave/ogre/blob/m ... .h#L50-L57