Installing pyawd for AWD for use in Blender

Software: Away3D 4.x

Skyrick, Jr. Member
Posted: 30 March 2012 10:09 PM   Total Posts: 34   [ # 16 ]

Need help here:

- OSX 10.7.3
- Blender 2.62
- Python 3.2.2 (installed with the python.mpkg installer)

And i’ve this error from gcc-4.2 :

python3 setup.py install
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.2
creating build/lib.macosx-10.6-intel-3.2/pyawd
copying src/pyawd/__init__.py -> build/lib.macosx-10.6-intel-3.2/pyawd
...
creating build/lib.macosx-10.6-intel-3.2/pyawd/utils
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -DPYTHON_VERSION=3 -Iinclude -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m -c src/util.cc -o build/temp.macosx-10.6-intel-3.2/src/util.o
unable to execute gcc-4.2: No such file or directory
error: command ‘gcc-4.2’ failed with exit status 1

 

   

Richard Olsson, Administrator
Posted: 01 April 2012 04:24 PM   Total Posts: 1192   [ # 17 ]

Sounds like you don’t have gcc-4.2, which I assume is because you have not installed the development tools in OSX (i.e. Xcode, and the command-line tools that come with it.)

 

   

Skyrick, Jr. Member
Posted: 01 April 2012 04:43 PM   Total Posts: 34   [ # 18 ]

Hi, Richard, Thanks for your post, and I take this opportunity to thank you for your great away3D article on abobe.com

I’ve the last Xcode, I already export some away3D4 debug-app, but not “the command-line tools that come with it” I suppose.

How do you do that ? It’s not automatic with the Xcode Install ?
But I’ve found the gcc-4.2 on “Developer\usr\bin” but it’s not available on the terminal (maybe I must add the path “Developer\usr\bin” to the terminal but I don’t know how to do that).

 

   

Richard Olsson, Administrator
Posted: 01 April 2012 04:47 PM   Total Posts: 1192   [ # 19 ]

In XCode for Lion you can install the command-line tools from the downloads section of the preferences panel.

If you want to add /Developer/usr/bin (sounds like Snow Leopard?) to your terminal shell path temporarily, you can do this in your terminal:

export PATH=$PATH:/Developer/usr/bin

 

   

Skyrick, Jr. Member
Posted: 01 April 2012 05:07 PM   Total Posts: 34   [ # 20 ]

I’ve Xcode for Lion, I install Command Line Tools now.
I come back after install to tell you if it’s works…

 

   

Skyrick, Jr. Member
Posted: 01 April 2012 05:31 PM   Total Posts: 34   [ # 21 ]

not working just after “Command Line Tools” installed.
And when I add Path to terminal with “export PATH=$PATH:/Developer/usr/bin”

I’ve this after the “running build_ext” (I can’t post lines before this one, because forum think it’s spawn post but first lines are the same of my previous post)

running build_ext
building ‘pyawd.cpyawd’ extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -DPYTHON_VERSION=3 -Iinclude -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m -c src/util.cc -o build/temp.macosx-10.6-intel-3.2/src/util.o
src/util.cc:3:24: error: awd/libawd.h: No such file or directory
src/util.cc:58: error: ‘awd_float64’ was not declared in this scope
src/util.cc:58: error: ‘buf’ was not declared in this scope
src/util.cc:58: error: expected primary-expression before ‘unsigned’
src/util.cc:58: error: initializer expression list treated as compound expression
src/util.cc:59: error: expected ‘,’ or ‘;’ before ‘{’ token
src/util.cc:3:24: error: awd/libawd.h: No such file or directory
src/util.cc:58: error: ‘awd_float64’ was not declared in this scope
src/util.cc:58: error: ‘buf’ was not declared in this scope
src/util.cc:58: error: expected primary-expression before ‘unsigned’
src/util.cc:58: error: initializer expression list treated as compound expression
src/util.cc:59: error: expected ‘,’ or ‘;’ before ‘{’ token
lipo: can’t figure out the architecture type of: /var/folders/3f/v81c22513bl9jngngxy3rgsh0000gp/T//ccIT836Z.out
error: command ‘gcc-4.2’ failed with exit status 1

FYI : when I tape gcc-4.2 on terminal, I’ve :

gcc-4.2
i686-apple-darwin10-gcc-4.2.1: no input files

 

 

   

Skyrick, Jr. Member
Posted: 01 April 2012 06:02 PM   Total Posts: 34   [ # 22 ]

OK : I found this problem, the command “sudo make install” was not found on cpp-libawd folder. I enter it again and the “pyhon3 setup.py install” seam to work fine now (I’ve just 2 warnings deprecated conversion).

But, now, I copy the “/Users/MYNAME/Documents/SDK/awd/sdks/python-pyawd/build/lib.macosx-10.6-intel-3.2/pyawd” folder on my “/Applications/Blender/blender.app/Contents/MacOS/2.62/python/lib”

If I enter “import pyawd” on Blender Python Console, I’ve no error.

So, I copy/paste the code from “awd_export.py” to Blender text editor, I click “run script” and I’ve error :

Python script fail, look in the console for now

& the line

exporter BlenderAWDExporter(bpy.path.abspath('//blendout.awd')) 

is red on the Blender Text Editor…
Heeeelp

 

   

Skyrick, Jr. Member
Posted: 02 April 2012 04:16 PM   Total Posts: 34   [ # 23 ]

and what to do with the “__init__.py” on “awd/exporters/blender/io_awd” folder : I do nothing with this script ... maybe this is here the problem ? :(

 

   

Richard Olsson, Administrator
Posted: 02 April 2012 05:14 PM   Total Posts: 1192   [ # 24 ]

You have only installed PyAWD. You also need to install the blender exporter add-on. Follow the general instructions for manually installing add-ons here: http://wiki.blender.org/index.php/Doc:2.6/Manual/Extensions/Python/Add-Ons

You need to place the entire io_awd folder in the right place inside your blender installation. It’s an add-on, not something you should paste into the text editor.

Note that the entire AWD project is work in progress. The blender exporter is not very far along in the development process. Furthermore, the actual file format is still undergoing changes so files that are exported today will likely not work in Away3D a month from now, but will need to be re-exported using an updated version of the AWD SDK.

 

   

Skyrick, Jr. Member
Posted: 02 April 2012 05:39 PM   Total Posts: 34   [ # 25 ]

Wow ! It’s finaly works ! oO
(see the attach picture)

Thanks a lot for your patience smile
I note your warning & I know it’s a wip project but ... it’s so cool ! smile

I’m going to test that on the retina iPad full resolution now ^^

Last question : what is the most advanced ? Blender or Maya exporter ?

 

   

gcs_dev, Newbie
Posted: 03 September 2013 12:47 PM   Total Posts: 7   [ # 26 ]

Loathe though I am to revive such an old and seemingly tedious thread, the prospect of exporting AWD from Blender is just too attractive to overlook, however, I am having a mountain of problems and need a more experienced mind’s guiding.

Following this guide, I installed Visual C++ 2010, downloaded the python source (and installed python for good measure), downloaded the AWD SDK source and proceeded to follow the instructions as best I could.

The Compiling Python section went “ok” with a long list of errors output in VS’s panel but the guide says to expect this, so on I go…

The compiling the AWD SDK just doesn’t happen at all. I get this message when I open the SLN file (release build for Win32) :

D:\Programs\AWD Exporter\awd-f2c379aa1520\hg\sdks\python-pyawd\pyawd.vcxproj : warning : Platform ‘x64’ referenced in the project file ‘pyawd’ cannot be found. Please make sure you have it installed under ‘%VCTargetsPath%\Platforms\x64’.

D:\Programs\AWD Exporter\awd-f2c379aa1520\hg\sdks\cpp-libawd\libawd.vcxproj : warning : Platform ‘x64’ referenced in the project file ‘libawd’ cannot be found. Please make sure you have it installed under ‘%VCTargetsPath%\Platforms\x64’.

Then when I try to build the projects, I get this :

abort: no repository found in ‘D:\Programs\AWD Exporter\awd-f2c379aa1520\hg\sdks\cpp-libawd’ (.hg not found)!

followed by many “no such file or directory” errors.

I get the feeling there’s something fundamental to be done at the very beginning of this process but as far as I can see, I have followed the guide mentioned to the letter so perhaps there is some prerequisite assumed too obvious to mention which I don’t know about.

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X