Show Posts
|
|
Pages: [1]
|
|
4
|
Associate Projects / CrystalBlend Discussion / blender2crystal export on mac
|
on: October 27, 2008, 09:15:02 pm
|
Hi, I'm sure this is answered somewhere else, but I can't seem to find it. I'm running on an intel iMac running osx 10.5. I've downloaded and installed CS1.2.1. My Blender is at 2.48a with python 2.5 and I installed the latest blender2crystal python scripts. Just as a proof of concept, I am trying to export the default (cube, light, camera) blender setup. When I try to run the export script, here is what shows up on the console: Compiled with Python version 2.5.2. Checking for installed Python... got it! W:---------------------------------------------------- W:ATTENTION: 4Suite not Found!! Using xml.dom.minidom. W:ATTENTION: Perfomance will be degraded, please install python-4suite. W:ATTENTION: You can download it from http://www.4suite.org/ W:ATTENTION: or install for your favourite linux distribution. W:---------------------------------------------------- Traceback (most recent call last): File "<string>", line 1, in <module> File "/Library/Blender/scripts/crystalspace_export.py", line 46, in <module> import b2cs File "/Library/Blender/scripts/bpymodules/b2cs/__init__.py", line 49, in <module> import defaults File "/Library/Blender/scripts/bpymodules/b2cs/defaults.py", line 5, in <module> import b2cs.metadata File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 475, in <module> b2cs.prop.wid_keys = UiProperties() File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 444, in __init__ self.Refresh() File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 447, in Refresh self.loadFromMetadata() File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 450, in loadFromMetadata for wid in world_metadata.getNodes(): File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 234, in getNodes sect = self.getSection() File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 228, in getSection root = self.getRoot() File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 206, in getRoot propval = xpath(self.internalroot,"//prop[@name='metadata_file']/@value") File "/Library/Blender/scripts/bpymodules/b2cs/xmlutils.py", line 56, in xml_xpath nodes = node.xpath(xpath) AttributeError: Element instance has no attribute 'xpath' What am I doing wrong, please?
|
|
|
|
|
6
|
Crystal Space Development / Support / Re: Mac CS Install?
|
on: October 26, 2008, 09:25:15 pm
|
The plot thickens... I was able to get the proper (I guess) link flags using the cel-config script. But I get link errors indicating that I am trying to use i386 architecture (arch type 18) with ppc processor (arch type 7). The problem seems to be in the last two lines of: -L/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3 -framework Python -ldl -lm -Wl,-framework,AppKit -Wl,-framework,Foundation When I remove the last two lines, I no longer have the architecture conflict, but it seems that most of the cs symbols can't be found (no such errors before adding the references to the CEL libraries). Argh! Is this a bug, or am I still missing something? edit: upon further research, I think the problem is related to bringing in the two frameworks, AppKit and Foundation, which are universal binaries, meaning that they include both ppc and i686 variants, but the CS SDK only built ppc binaries. Ultimately, I'd want to produce universal binaries in the final product, so any ideas how to get the CS install to make both versions of the libraries?
|
|
|
|
|
7
|
Crystal Space Development / Support / Re: Mac CS Install?
|
on: October 26, 2008, 05:21:13 pm
|
Here is what I got: [Powerbook:~/cel-src-1.2.1] annelies% ./cel-config-1.2 --libs celtool cel_python
Unfortunately, noob that I am, I don't know how to add this into the link flags to make it work. I'll switch to the 1.4 as soon as I can figure out how to make the svn work... reading the subversion guide is giving me a migraine. It doesn't seem that there are a lot of mac users working in this environment yet. When I feel more competent in this, I'll be working on some additional startup guides 
|
|
|
|
|
8
|
Crystal Space Development / Support / Re: Mac CS Install?
|
on: October 26, 2008, 04:42:56 pm
|
|
First, thank you, thank you, thank you for the quick reply.
Adding '-framework Python' fixed that issue.
I am using CEL 1.2.1.
I could not find cel-config, but cel-config-1.2 --lib was there and yielded no results.
Do you suggest I skip the 1.2 branch and begin working with 1.4 now?
|
|
|
|
|
9
|
Crystal Space Development / Support / Re: Mac CS Install?
|
on: October 26, 2008, 04:04:15 pm
|
I am having a similar problem. I used 'cs-config --libs' to get the library designations for CS. I got the following: -L././out/macosxppc/optimize/libs -lcrystalspace_python-1.2 -lcrystalspace_opengl-1.2 -lcrystalspace_macosx-1.2 -lcrystalspace-1.2 -lz -framework OpenGL -lm -L/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3 Python -ldl -lm -lmx -ldl -L/usr/local/lib Putting the paths in the library search paths didn't seem to help, but adding the above to 'Other linker flags' did... with the exception of the word 'Python' which gives me a 'not found' error. Removing that line (every space delimited phrase becomes a new line in the get info editor window) and things seem to start working. However, adding to the mix is that I am trying to link with the CEL library as well, and I can't seem to determine the proper reference for it. Any clues? And yes, I'm a noob to all of this so I apologize in advance if this is explained elsewhere.
|
|
|
|
|
|