Using Scons To Build OgreNewt
Has anyone built OgreNewt on OS X at all? I asked over at the Ogre forums, but since there's only a small number of OS X users over there, I didn't get any responses. So I figured I'd see if anyone here has built it? I tried using scons with it but I get this output:
Any ideas?
Code:
~/Desktop/OgreNewt Folder > ls
Doc OgreNewt_vc71.ncb SConstruct
OgreNewt.sln OgreNewt_vc71.sln demos
OgreNewt.suo OgreNewt_vc71.suo
OgreNewt_Main SConscript
~/Desktop/OgreNewt Folder > scons
scons: Reading SConscript files ...
/bin/sh: line 1: pkg-config: command not found
OSError: 'pkg-config OGRE --cflags --libs' exited 127:
File "/Users/nickgravelyn/Desktop/OgreNewt Folder/SConstruct", line 22:
env.MergeFlags(['!pkg-config OGRE --cflags --libs'])
File "/usr/lib/scons-0.97/SCons/Environment.py", line 662:
args = self.ParseFlags(args)
File "/usr/lib/scons-0.97/SCons/Environment.py", line 651:
do_parse(arg, do_parse)
File "/usr/lib/scons-0.97/SCons/Environment.py", line 532:
for t in arg: me(t, me)
File "/usr/lib/scons-0.97/SCons/Environment.py", line 537:
arg = self.backtick(arg[1:])
File "/usr/lib/scons-0.97/SCons/Environment.py", line 473:
raise OSError("'%s' exited %d" % (command, status))Any ideas?
You need pkg-config (and need to have built OGRE in such a way that pkg-config knows about it). Perhaps this is expecting you to have built OGRE with MacPorts?
I'll take a look into downloading pkg-config. Perhaps if I build Ogre from source using scons that will solve it. Not sure if I can even do that, but I'll see (I've up to now been using the prebuilt SDK of Ogre).

