Tested Mac OS X (OSXBuildV2) on a Tiger (i.e. v10.4.10 with xcode 2.4.1) report...

40 views
Skip to first unread message

JosephLisee

unread,
Jan 16, 2008, 10:29:43 PM1/16/08
to Python Ogre Developers
Step 1,2 and 3 went ok. Step 4 is failing:

01-16 22:26 PythonOgre.BuildModule INFO Building Source code for
ois
01-16 22:26 PythonOgre.BuildModule DEBUG Spawning 'python
generate_code.py' in '/opt/ram/python-ogre/development/python-ogre/
code_generators/ois'
01-16 22:26 PythonOgre.BuildModule WARNING Task Failed
01-16 22:26 PythonOgre.BuildModule DEBUG
01-16 22:26 PythonOgre.BuildModule DEBUG
INFO Creating xml file "/opt/ram/python-ogre/development/python-ogre/
code_generators/cache/ois_1.1_cache.xml" from source file "/opt/ram/
python-ogre/development/python-o
gre/code_generators/ois/python_ois.h" ...

INFO gccxml cmd: /opt/ram/python-ogre/development/gccxml-build/bin/
gccxml --gccxml-cxxflags "-DCF_OPEN_SOURCE -D_POSIX_C_SOURCE -
isysroot /Developer/SDKs/MacOSX10.4u.s
dk" -I"/opt/ram/python-ogre/development/python-ogre" -I"/opt/ram/
python-ogre/development/root/usr/include/boost-1_34_1" -I"/opt/ram/
python-ogre/development/ogrenew/Dep
endencies/include/OIS" -I"/Developer/SDKs/MacOSX10.4u.sdk/Developer/
Headers/CFMCarbon" -D"OIS_NONCLIENT_BUILD" -D"VERSION_1.1" "/opt/ram/
python-ogre/development/python
-ogre/code_generators/ois/python_ois.h" -fxml="/opt/ram/python-ogre/
development/python-ogre/code_generators/cache/ois_1.1_cache.xml"
Traceback (most recent call last):
File "generate_code.py", line 299, in <module>
generate_code()
File "generate_code.py", line 214, in generate_code
, cflags=environment.ois.cflags
File "/opt/ram/python-ogre/development/python-ogre/root/usr/lib/
python2.5/site-packages/pyplusplus/module_builder/builder.py", line
90, in __init__
File "/opt/ram/python-ogre/development/python-ogre/root/usr/lib/
python2.5/site-packages/pyplusplus/module_builder/builder.py", line
144, in __parse_declarations
File "/opt/ram/python-ogre/development/python-ogre/root/usr/lib/
python2.5/site-packages/pygccxml/parser/project_reader.py", line 225,
in read_files
File "/opt/ram/python-ogre/development/python-ogre/root/usr/lib/
python2.5/site-packages/pygccxml/parser/project_reader.py", line 262,
in __parse_file_by_file
File "/opt/ram/python-ogre/development/python-ogre/root/usr/lib/
python2.5/site-packages/pygccxml/parser/source_reader.py", line 170,
in create_xml_file
pygccxml.parser.source_reader.gccxml_runtime_error_t: Error occured
while running GCC-XML: Could not determine compiler setting.
Could not determine GCCXML_FLAGS setting.

It seems to be a problem with gccxml. I will keep looking at it. May
I also suggest, please fix the CVS version to a specific date. Mac
support has broken for GCC-XML in the past. It does not seem like a
good idea to always be on the leading edge.

-Joe

JosephLisee

unread,
Jan 16, 2008, 11:21:20 PM1/16/08
to Python Ogre Developers
So I fixed the GCC-XML error by pointing it at the GCC-XML installed
in root/usr, still compiling the Ogre as I speak.

-Joe

Andy Miller

unread,
Jan 16, 2008, 11:48:58 PM1/16/08
to python-ogre...@googlegroups.com
Send me the changes you make to environment.py and/or PythonOgreConfig_posix.py and I'll incorporate them..
 
Once we have a fully working release for version 1.2 I'll look to fix the gcc and other cvs/svn modules.
 
Regards
Andy

 

JosephLisee

unread,
Jan 17, 2008, 1:33:51 PM1/17/08
to Python Ogre Developers
Cool. I am still working on getting OgreNewt to work (Ogre, OIS, and
OgreNewt are required for my current project). Ogre and OIS both
built there wrappers successfully and I will try them out in a bit.

Now to brave the snow and get cracking on this.

-Joe

Andy Miller

unread,
Jan 18, 2008, 12:56:37 AM1/18/08
to python-ogre...@googlegroups.com
I updated environment.py in the svn to fix the ogrenewt build..

so you need to do an svn update and then...
BuildModule.py -r -b newton
BuildModule.py -r -b ogrenewt
BuildModule.py -g -c ogrenewt

regards
Andy

JosephLisee

unread,
Jan 18, 2008, 6:00:40 PM1/18/08
to Python Ogre Developers
Well that didn't work, the scons build files needed a lot of updated
to work on OS X. I have done that and OgreNewt builds properly. Now
I just need to be able to wrap it. There is something up with the
includes or something, because this is happening:

INFO gccxml cmd: /opt/ram/python-ogre/development/root/usr/bin/gccxml
-I"/opt/ram/python-ogre/development/python-ogre" -I"/opt/ram/python-
ogre/development/root/usr/include/boost-1_34_1" -I"/opt/ram/python-
ogre/development/root/usr/include" -I"/opt/ram/python-ogre/development/
ogrenew/OgreMain/include" -I"/opt/ram/python-ogre/development/root/usr/
include/OgreNewt" -I"/Library/Frameworks/Python.framework/Versions/2.5/
include/python2.5" -I"/Developer/SDKs/MacOSX10.4u.sdk/Developer/
Headers/CFMCarbon" -D"ogrenewt_NONCLIENT_BUILD" -
D"OGRE_NONCLIENT_BUILD" -D"OIS_NONCLIENT_BUILD" -D"OIS_STATIC_BUILD"
"/opt/ram/python-ogre/development/python-ogre/code_generators/ogrenewt/
python_ogrenewt.h" -fxml="/opt/ram/python-ogre/development/python-ogre/
code_generators/cache/ogrenewt_1.0_cache.xml"
Traceback (most recent call last):
File "generate_code.py", line 281, in <module>
generate_ogrenewt()
File "generate_code.py", line 213, in generate_ogrenewt
, indexing_suite_version=2 )
File "/opt/ram/python-ogre/development/python-ogre/root/usr/lib/
python2.5/site-packages/pyplusplus/module_builder/builder.py", line
90, in __init__
File "/opt/ram/python-ogre/development/python-ogre/root/usr/lib/
python2.5/site-packages/pyplusplus/module_builder/builder.py", line
144, in __parse_declarations
File "/opt/ram/python-ogre/development/python-ogre/root/usr/lib/
python2.5/site-packages/pygccxml/parser/project_reader.py", line 225,
in read_files
File "/opt/ram/python-ogre/development/python-ogre/root/usr/lib/
python2.5/site-packages/pygccxml/parser/project_reader.py", line 262,
in __parse_file_by_file
File "/opt/ram/python-ogre/development/python-ogre/root/usr/lib/
python2.5/site-packages/pygccxml/parser/source_reader.py", line 170,
in create_xml_file
pygccxml.parser.source_reader.gccxml_runtime_error_t: Error occured
while running GCC-XML: In file included from /Developer/SDKs/
MacOSX10.4u.sdk/Developer/Headers/CFMCarbon/CoreFoundation/
CoreFoundation.h:38,
from /opt/ram/python-ogre/development/ogrenew/
OgreMain/include/OgreStdHeaders.h:91,
from /opt/ram/python-ogre/development/ogrenew/
OgreMain/include/OgreMemoryManager.h:46,
from /opt/ram/python-ogre/development/ogrenew/
OgreMain/include/OgrePrerequisites.h:87,
from /opt/ram/python-ogre/development/ogrenew/
OgreMain/include/Ogre.h:32,
from /opt/ram/python-ogre/development/root/usr/
include/OgreNewt/OgreNewt_World.h:13,
from /opt/ram/python-ogre/development/root/usr/
include/OgreNewt/OgreNewt.h:23,
from /opt/ram/python-ogre/development/python-ogre/
code_generators/ogrenewt/python_ogrenewt.h:5:
/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/CFMCarbon/
CoreFoundation/CFBase.h:32:79: error: CoreServices/../Frameworks/
CarbonCore.framework/Headers/MacTypes.h: No such file or directory

Any ideas?

-Joe

JosephLisee

unread,
Jan 18, 2008, 6:49:05 PM1/18/08
to Python Ogre Developers
I could probably figure this out if I was able to get at the gccxml
command line that is use to build the Ogre xml file. But it does not
seem to log like the others. Ie, I just get any error messages, not
what its actually doing. Do you you no how to on the logging for the
ogre module?

I tried the Ogre demos, and at the basic level they do work.

-Joe

Alex Trujillo

unread,
Jan 21, 2008, 5:26:03 PM1/21/08
to python-ogre...@googlegroups.com
I'm trying this build again, this time with OS X 10.4.11 with Xcode 2.4.1.

Two things I need to point out:
Step 2: python python-ogre/BuildModule.py -r -b cmake gccxml boost pygccxml cg scons
gccxml takes a very long time to pull from CVS, I'm not sure why.
The log looks pretty plain to me, though (other than that it takes over ten minutes to get from CVS):
01-21 14:59 PythonOgre.BuildModule INFO     Retrieving  -d :pserver:ano...@www.gccxml.org:/cvsroot/GCC_XML co gccxml
01-21 14:59 PythonOgre.BuildModule DEBUG    Spawning 'cvs -z3 -q    -d :pserver:ano...@www.gccxml.org:/cvsroot/GCC_XML co gccxml' in '/Users/alex/development'
01-21 15:10 PythonOgre.BuildModule INFO     Build Command mkdir -p gccxml-build
01-21 15:10 PythonOgre.BuildModule DEBUG    Spawning 'mkdir -p gccxml-build' in '/Users/alex/development'
01-21 15:10 PythonOgre.BuildModule INFO     Build Command cmake ../gccxml -DCMAKE_INSTALL_PREFIX:PATH=/Users/alex/development/root/usr
01-21 15:10 PythonOgre.BuildModule DEBUG    Spawning 'cmake ../gccxml -DCMAKE_INSTALL_PREFIX:PATH=/Users/alex/development/root/usr' in '/Users/alex/development/gccxml-build'
01-21 15:10 PythonOgre.BuildModule INFO     Build Command make
01-21 15:10 PythonOgre.BuildModule DEBUG    Spawning 'make' in '/Users/alex/development/gccxml-build'
01-21 15:10 PythonOgre.BuildModule INFO     Build Command make install
01-21 15:10 PythonOgre.BuildModule DEBUG    Spawning 'make install' in '/Users/alex/development/gccxml-build'

Step 3: python python-ogre/BuildModule.py -r -b ogre
This step gives me warnings that it fails when running commands like mv, cp, mkdir, and tar due to permissions.
01-21 15:22 PythonOgre.BuildModule INFO     Build Command tar  jxf /Users/alex/development/downloads/ogre-linux_osx-v1-4-6.tar.bz2 --overwrite
01-21 15:22 PythonOgre.BuildModule DEBUG    Spawning 'tar  jxf /Users/alex/development/downloads/ogre-linux_osx- v1-4-6.tar.bz2 --overwrite' in '/Users/alex/development'
01-21 15:22 PythonOgre.BuildModule WARNING  Task Failed
01-21 15:22 PythonOgre.BuildModule DEBUG   
01-21 15:22 PythonOgre.BuildModule DEBUG    tar: ogrenew/CVS/Root: Cannot open: Permission denied
tar: ogrenew/CVS/Repository: Cannot open: Permission denied
...

So, to recap, gccxml install is slow (and probably is running into problems), and permissions problems on step 3. I don't think it matters much, but I used ActiveState's python distro.

- Alex

On Jan 18, 2008 4:49 PM, JosephLisee <jli...@gmail.com> wrote:

I could probably figure this out if I was able to get at the gccxml
command line that is use to build the Ogre xml file.  But it does not
seem to log like the others.  Ie, I just get any error messages, not
what its actually doing.  Do you you no how to on the logging for the
ogre module?

I tried the Ogre demos, and at the basic level they do work.

-Joe
> CarbonCore.framework /Headers/MacTypes.h: No such file or directory
>
> Any ideas?
>
> -Joe

Andy Miller

unread,
Jan 21, 2008, 8:14:14 PM1/21/08
to python-ogre...@googlegroups.com
Did ogre actually build??  I think the tar errors are fine as it's an issue with the way the ogre source has been built...  

 
Check root/usr/lib for the Ogre libraries

Andy

Alex Trujillo

unread,
Jan 26, 2008, 3:09:41 PM1/26/08
to python-ogre...@googlegroups.com
Apparently I had already built C++ ogre at an earlier date, and took the shortcut of using the same directory again with a new SVN version. I guess that doesn't work. :)

At any rate, I noticed you had added r557 to the repo, and it fixed one of my earlier difficulties. After a few more days of futzing with the installation, I'm pretty sure that the Python-Ogre library is built. I can import ogre in the command line, however, when trying to run the demos, I get this error, after adding the recommended library paths to the session:
export LD_LIBRARY_PATH=~/development/root/usr/lib/
export PYTHONPATH=~/development/root/usr/lib/python2.5/site-packages
python /Users/alex/development/python-ogre/demos/noise/Demo_Noise_01.py

Traceback (most recent call last):
  File "/Users/alex/development/python-ogre/demos/noise/Demo_Noise_01.py", line 15, in <module>
    import ogre.renderer.OGRE as ogre
  File "/Users/alex/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
    from _ogre_ import *
ImportError: dlopen(/Users/alex/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/_ogre_.so, 2): Library not loaded: bin.v2/libs/python/build/darwin/release/libboost_python-1_34_1.dylib
  Referenced from: /Users/alex/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/_ogre_.so
  Reason: image not found

This happens with every Ogre demo I've opened so far.

I feel like I'm very, very close to getting this to work on OS X.

- Alex

JosephLisee

unread,
Jan 26, 2008, 4:22:21 PM1/26/08
to Python Ogre Developers
I am not sure you can use "~" in the LD_LIBRARY_PATH. You should also
make sure "libboost_python-1_34_1.dylib" is really in root/usr/lib.
The Ogre demos do work on OS X.

-Joe

Alex Trujillo

unread,
Jan 26, 2008, 4:29:19 PM1/26/08
to python-ogre...@googlegroups.com
I put in absolute paths this time, but still got the same error:

Last login: Sat Jan 26 13:08:52 on ttyp8
cd '/Users/alex/development/python-ogre/demos/ogre/' && '/usr/local/bin/pythonw'  '/Users/alex/development/python-ogre/demos/ogre/Demo_Bezier.py'  && echo Exit status: $? && exit 1
Welcome to Darwin!
alex-trujillos-computer:~ alex$ cd '/Users/alex/development/python-ogre/demos/ogre/' && '/usr/local/bin/pythonw'  '/Users/alex/development/python-ogre/demos/ogre/Demo_Bezier.py'  && echo Exit status: $? && exit 1

Traceback (most recent call last):
  File "/Users/alex/development/python-ogre/demos/ogre/Demo_Bezier.py", line 24, in <module>

    import ogre.renderer.OGRE as ogre
  File "/Users/alex/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
    from _ogre_ import *
ImportError: dlopen(/Users/alex/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/_ogre_.so, 2): Library not loaded: bin.v2/libs/python/build/darwin/release/libboost_python-1_34_1.dylib
  Referenced from: /Users/alex/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/_ogre_.so
  Reason: image not found
alex-trujillos-computer:~/development/python-ogre/demos/ogre alex$

Thanks in advance,

- Alex

Alex Trujillo

unread,
Jan 26, 2008, 4:30:32 PM1/26/08
to python-ogre...@googlegroups.com
Also, the path to the library it wants is as follows:
/Users/alex/development/root/usr/lib/libboost_python-1_34_1.dylib
It's 388kb in size.

- Alex

On Jan 26, 2008 2:22 PM, JosephLisee <jli...@gmail.com> wrote:

Alex Trujillo

unread,
Jan 28, 2008, 10:26:15 AM1/28/08
to python-ogre...@googlegroups.com
Am I on the right track, anyone? All the demos are there, I'm just not sure the library compiled, or if it did, if it has the right PATHs... Any help is appreciated.

I've been trying to build this on OS X for a month now, and Linux for around three months, with no success.

I was able to use the Windows binary, however, it works great, and can tide me over for now :)

- Alex

On Jan 26, 2008 2:22 PM, JosephLisee <jli...@gmail.com> wrote:

illume

unread,
Jan 29, 2008, 5:05:42 PM1/29/08
to Python Ogre Developers
Hi,

on osx 10.4 I have this set:
DYLD_LIBRARY_PATH=/Users/rsd/development/root/usr/lib/:


but then I get these errors when I run the demos:

iMac2:~/development/python-ogre/demos/ogre rsd$ python Demo_Smoke.py
Traceback (most recent call last):
File "Demo_Smoke.py", line 16, in <module>
import SampleFramework as sf
File "../SampleFramework.py", line 11, in <module>
from ogre.renderer.OGRE.sf_OIS import *
File "/Users/rsd/development/root/usr/lib/python2.5/site-packages/
ogre/renderer/OGRE/sf_OIS.py", line 13, in <module>
import ogre.io.OIS as OIS
File "/Users/rsd/development/root/usr/lib/python2.5/site-packages/
ogre/io/OIS/__init__.py", line 4, in <module>
from _ois_ import *
RuntimeError: extension class wrapper for base class OIS::Component
has not been created yet



Can someone with it working on OSX please:
- share with us your environment variables. set > ~/Desktop/
environment.txt
- try compiling it all again with latest svn?


cu,

illume

unread,
Jan 29, 2008, 6:09:58 PM1/29/08
to Python Ogre Developers
I got it working here!

When compiling boost python, I had to change some command line
arguments...
Instead of -lpython2.5 (which it was failing to compile with) I used
-framework Python

I manually changed the g++ compilation strings that it printed out -
to change the -lpython2.5 to -framework Python


NOTE: when I was looking at log.out, it showed no errors for boost.
It seemed though all the errors disappeared. I think because the
boost python compile doesn't error out, it just prints messages.

Note after recompiling boost python I recompiled the python ogre
stuff. (Step 4 from the wiki as of this writing).
"""
cd ~/development
python python-ogre/BuildModule.py -g -c ois ogre
python python-ogre/BuildModule.py -b install
"""

These are the commands I used to rebuild boost.
./configure --with-python=/Applications/Autodesk/maya2008/Maya.app/
Contents/Frameworks/Python.framework/Versions/Current/bin/python --
with-libraries=python --prefix=/Users/rsd/development/root/usr --
without-icu

make

# fix each of the g++ errors, and rerun make until it works.

make install


# then do step 4 from the wiki again.



I hope that helps someone fix up the build process.
Reply all
Reply to author
Forward
0 new messages