Using Scons To Build OgreNewt

Posts: 1,066
Joined: 2004.07
Post: #1
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:

~/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/", line 662:
    args = self.ParseFlags(args)
  File "/usr/lib/scons-0.97/SCons/", line 651:
    do_parse(arg, do_parse)
  File "/usr/lib/scons-0.97/SCons/", line 532:
    for t in arg: me(t, me)
  File "/usr/lib/scons-0.97/SCons/", line 537:
    arg = self.backtick(arg[1:])
  File "/usr/lib/scons-0.97/SCons/", line 473:
    raise OSError("'%s' exited %d" % (command, status))

Any ideas?
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #2
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?
Quote this message in a reply
Posts: 1,066
Joined: 2004.07
Post: #3
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).
Quote this message in a reply
Post Reply