recipe for target 'all' failed

Problems building or running the engine, queries about how to use features etc.
Post Reply
rrlangly
Gnoblar
Posts: 19
Joined: Sat Jan 24, 2009 8:27 pm

recipe for target 'all' failed

Post 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?
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 65

Re: recipe for target 'all' failed

Post 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 )
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos
Feanor16
Halfling
Posts: 46
Joined: Tue Feb 18, 2014 10:49 pm

Re: recipe for target 'all' failed

Post by Feanor16 »

try with a

Code: Select all

hg update
if you just do a clone, you will not have the last update
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: recipe for target 'all' failed

Post 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
Post Reply