Compile on OS X until

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

VelikM
Posts: 80
Joined: Mon Oct 14, 2002 4:18 am

Compile on OS X until

Postby VelikM » Sat Nov 30, 2002 1:03 am

This is the compile results on the cvs01 updated 29/11/02. it compiles python :D :D but runs into a problem at:
,.deps/png_encode.TPlo -o png_encode.o
../../../../blender/./source/blender/imbuf/intern/png_encode.c: In function `IMB_png_encode':
../../../../blender/./source/blender/imbuf/intern/png_encode.c:142: `PNG_COLOR_TYPE_RGBA' undeclared (first use in this function)
../../../../blender/./source/blender/imbuf/intern/png_encode.c:142: (Each undeclared identifier is reported only once
../../../../blender/./source/blender/imbuf/intern/png_encode.c:142: for each function it appears in.)
*** Error code 1

This is getting really close about 90% of the code is compiling on OS X. :D :D :D Thanks to the fine work of all the developers. :D :D :D

SirDude
Posts: 941
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Postby SirDude » Sat Nov 30, 2002 3:44 am

I'm pretty sure you just need to update your version of libpng.

VelikM
Posts: 80
Joined: Mon Oct 14, 2002 4:18 am

Postby VelikM » Sat Nov 30, 2002 4:02 am

I used fink to install libpng, it's the latest version available there.

i libpng 1.0.12-6 PNG image format handling library
i libpng-shlibs 1.0.12-6 PNG image format handling library

SirDude
Posts: 941
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Postby SirDude » Sat Nov 30, 2002 4:04 am

Guess your stuck installing from source then ;)

(or you can just change that line to
PNG_COLOR_TYPE_RGB

I believe thats the old def for it.

VelikM
Posts: 80
Joined: Mon Oct 14, 2002 4:18 am

Postby VelikM » Sat Nov 30, 2002 6:49 am

All right that got me past the PNG problem. Next! :wink: It now compiles until:
../../../../blender/source/blender/include/BIF_gl.h:37: header file 'GL/gl.h' not found
../../../../blender/source/blender/include/BIF_gl.h:38: header file 'GL/glu.h' not found

The obvious for this is an include that gives the actual path to the OS X system files for gl.h and glu.h/, how to add an if statement to choose between GL/glu.h-GL/glu.h and
AC_CHECK_HEADER([/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h])
AC_CHECK_HEADER([/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glu.h])

based on the ./configure --build=powerpc in BIF_gl.h.

VelikM
Posts: 80
Joined: Mon Oct 14, 2002 4:18 am

Postby VelikM » Sat Nov 30, 2002 7:19 am

That worked! :D
This is the last error I've hit:
creating libblender_creator.la
(cd .libs && rm -f libblender_creator.la && ln -s ../libblender_creator.la libblender_creator.la)
make: don't know how to make blenderpublisher.app.c. Stop
*** Error code 1
I think this may be the final one.


Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 2 guests