[Bf-committers] Compiling on OS X

Michael Velikanje bf-committers@blender.org
Thu, 27 Mar 2003 11:17:30 -0900


--Apple-Mail-6--377910165
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	delsp=yes;
	charset=US-ASCII;
	format=flowed

I made some modifications to Makemakefile_ac.py and Makemakefile.py due  
to this error:
""makefile", line 134: Missing dependency operator
"makefile", line 136: Need an operator"
when the Makefile in ../intern/python/frozen runs.

These are the lines in the frozen/Makefile that generate the error:
"134- ifeq ($(MACHDEP), darwin)
	ranlib libfrozen.a
136- endif"

I can get it to work by commenting these lines in Makemakefile_ac.py  
and Makemakefile.py. For some reason make doesn't like the syntax  
generated by this:
"#outfp.write("ifeq ($(MACHDEP), darwin)\n")
	outfp.write("\tranlib %s\n" % targetlib)
#outfp.write("endif\n")"
The line "outfp.write("\tranlib %s\n" % targetlib)" works as it's  
suppose to when the ifeq and endif statements are left out.
"a - M_vrml__parser.o
a - M_vrml__scenegraph.o
ranlib libfrozen.a
Making all in modules"

How ever, that leaves me with this error in the end :
"gcc -g -O2 -funsigned-char -o blender.app -framework OpenGL -framework  
AGL -framework Carbon   
-L/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
config source/.libs/libblender_source.al -L/usr/X11R6/lib -lm -lm -lm  
-lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm  
-lm -lm -lm -lm -lm -lm intern/bsp/.libs/libblender_BSP.al -lm  
intern/decimation/.libs/libblender_LOD.al -lm  
intern/ghost/.libs/libblender_GHOST.al -lm  
intern/string/.libs/libblender_STR.al -lm  
intern/guardedalloc/.libs/libblender_guardedalloc.al -lm  
intern/bmfont/.libs/libblender_BMF.al -lm  
intern/container/.libs/libblender_CTR.al -lm  
intern/memutil/.libs/libblender_MEM.al -lm  
intern/keymaker/.libs/libblender_belgium.al -lm  
intern/iksolver/.libs/libblender_IK.al -lm  
intern/moto/.libs/libblender_MT.al -lm intern/python/frozen/libfrozen.a  
-lpython2.3 -lGLU -lGL -lX11 -lXext -lm -ljpeg -lpng -lcrypto -lssl  
-lpthread -ldl -lstdc++ -lz

ld: can't locate file for: -lpython2.3

*** Error code 1"

This is  "bf-blender-2003-03-27.tgz.gz" that I'm trying to compile.

Michael
--Apple-Mail-6--377910165
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

I made some modifications to Makemakefile_ac.py and Makemakefile.py
due to this error:

""makefile", line 134: Missing dependency operator

"makefile", line 136: Need an operator"

when the Makefile in ../intern/python/frozen runs.


These are the lines in the frozen/Makefile that generate the error:

"134- ifeq ($(MACHDEP), darwin)

	ranlib libfrozen.a

136- endif"


I can get it to work by commenting these lines in Makemakefile_ac.py
and Makemakefile.py. For some reason make doesn't like the syntax
generated by this:

"#outfp.write("ifeq ($(MACHDEP), darwin)\n")

	outfp.write("\tranlib %s\n" % targetlib)

#outfp.write("endif\n")"

The line "outfp.write("\tranlib %s\n" % targetlib)" works as it's
suppose to when the ifeq and endif statements are left out.

"a - M_vrml__parser.o

a - M_vrml__scenegraph.o

<bold>ranlib libfrozen.a</bold>

Making all in modules"


How ever, that leaves me with this error in the end :

"gcc -g -O2 -funsigned-char -o blender.app -framework OpenGL
-framework AGL -framework Carbon 
-L/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/config
source/.libs/libblender_source.al -L/usr/X11R6/lib -lm -lm -lm -lm -lm
-lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm
-lm -lm -lm -lm -lm intern/bsp/.libs/libblender_BSP.al -lm
intern/decimation/.libs/libblender_LOD.al -lm
intern/ghost/.libs/libblender_GHOST.al -lm
intern/string/.libs/libblender_STR.al -lm
intern/guardedalloc/.libs/libblender_guardedalloc.al -lm
intern/bmfont/.libs/libblender_BMF.al -lm
intern/container/.libs/libblender_CTR.al -lm
intern/memutil/.libs/libblender_MEM.al -lm
intern/keymaker/.libs/libblender_belgium.al -lm
intern/iksolver/.libs/libblender_IK.al -lm
intern/moto/.libs/libblender_MT.al -lm
intern/python/frozen/libfrozen.a -lpython2.3 -lGLU -lGL -lX11 -lXext
-lm -ljpeg -lpng -lcrypto -lssl -lpthread -ldl -lstdc++ -lz

<bold>

ld: can't locate file for: -lpython2.3</bold>


*** Error code 1"


This is 
"<fontfamily><param>Lucida Grande</param>bf-blender-2003-03-27.tgz.gz"
that I'm trying to compile.


Michael</fontfamily>
--Apple-Mail-6--377910165--