Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > 3d cloth simulation code. Need help on compile

3d cloth simulation code. Need help on compile
Thread Tools
Senior User
Join Date: Jul 2001
Status: Offline
Reply With Quote
Feb 9, 2004, 09:49 PM
 
I have here a bit of code in OSX for an open source app called blender. This source file here is dependant on OSX. I have limited knowledge of what to do to make it compile. I know of make and some other commands but do not have a sliver of knowledge of what I should hack in the code to make it compile as I am getting errors now.

The author can not compile it as he is on windows, but Blender and this code will work on OSX unix if the proper items are fixed in the file. Can you help ?

links removed sadly. Anybody that has desided not to post yet I could really use the help if you can remeber what was needed.

Oh well
(Last edited by loren s; Feb 10, 2004 at 08:29 PM. )
     
Mac Enthusiast
Join Date: Jan 2001
Status: Offline
Reply With Quote
Feb 10, 2004, 12:47 AM
 
Well, in the .c I commented out the #include<malloc.h> -- you don't need it, it's included in stdlib.

For the Makefile, I stripped it down to this:
topixmodule.so: topixmodule.c
[tab] gcc -c -O2 -I/Developer/SDKs/MacOSX10.3.0.sdk/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-o topixmodule.o topixmodule.c

notice -shared is not there, it's not supported in OS X. so as an example I output to a regular old object file. you can play with libtool on your own. (man libtool).
     
loren s  (op)
Senior User
Join Date: Jul 2001
Status: Offline
Reply With Quote
Feb 10, 2004, 08:13 AM
 
Hey thanks ! I will test it out .
     
loren s  (op)
Senior User
Join Date: Jul 2001
Status: Offline
Reply With Quote
Feb 10, 2004, 12:28 PM
 
ok I am getting this.
make file. error : missing separator at line 2. Line two is the line with [tab]

Any clue ?
     
Mac Enthusiast
Join Date: Jan 2001
Status: Offline
Reply With Quote
Feb 10, 2004, 02:49 PM
 
there are only 2 lines, safari may be wrapping them, lines 2, 3, and 4 should all be 1 line, preceded by a single tab character.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:58 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2