[Bf-committers] Some updates for building the python stuff

Michel Selten bf-committers@blender.org
28 Nov 2002 22:27:53 +0100


--=-/98UlBpCuBoG2oK0rMal
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

Here are some updates that should be made to cvs so that all libraries
are compiling and Blender.bin is being linked.

*----------
* First of all, I haven't made a cvs update in 24 hours, so I may be
* late with these adaptions. In that case my appologies.
*----------

* Add the following line to /intern/python/Makefile.am:
  libBlenderModule_la_SOURCES =

* In /intern/python/freeze/Makefile.am change the following 2 lines:
	$(top_srcdir)/intern/python/freeze/freeze.py -d -x os -x \
	pprint -I $(SRCDIR) $(SRCDIR)/VRMLmain.py
  into:
	$(top_srcdir)/intern/python/freeze/freeze.py -d \
        -o ../frozen -x os -x \
	pprint -I $(SRCDIR) $(SRCDIR)/VRMLmain.py

* In the same file change the line:
	cd ../frozen && make -f Makefile.freeze && cd ../freeze
  into:
	cd ../frozen && make -f Makefile && cd ../freeze

* Update the makemakefile.py file with the attachement.
  (there are too many updates to type in here. An attachement is a bit
  quicker :) )

* In the root of blender do:
  ./bootstrap
  ./configure
  make

*----------
* Now the python part should compile. I know, I know, there are still
* some issues with the freeze/frozen part. I haven't figured those out
* yet...
*----------

* libblender_intern.la is not linking since the path to the location of
  libGLU.a is not passed to the linking command. I made a quick hack to
  manually execute the link command with the -L/usr/X11R6/lib appended
  and libblender_intern.la is created! (btw. the variable in the
  Makefile I'm refering to is X_LIBS). I'm sorry I didn't figure out how
  to update the correct file. Another TODO :)

* When doing a make again, there is an attempt to actually link
  blender.bin. This is also the point where I had no more time to
  investigate the solution to the linking of libblender_intern.la (This
  step is the problem that blender.bin is not linked. Ok, there are
  probably a lot of unreferenced symbols.)

On to the final stage of building Blender!!! We're getting there...

With regards,
            Michel


--=-/98UlBpCuBoG2oK0rMal
Content-Disposition: attachment; filename=makemakefile.py
Content-Type: application/x-python; name=makemakefile.py
Content-Transfer-Encoding: base64

IyBXcml0ZSB0aGUgYWN0dWFsIE1ha2VmaWxlLg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