[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13128] trunk/blender/source: some changes needed to get blender compiling with 64bit libs, use the systems Mesa now.
Campbell Barton
ideasman42 at gmail.com
Fri Jan 4 12:55:38 CET 2008
Revision: 13128
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13128
Author: campbellbarton
Date: 2008-01-04 12:55:37 +0100 (Fri, 04 Jan 2008)
Log Message:
-----------
some changes needed to get blender compiling with 64bit libs, use the systems Mesa now.
Modified Paths:
--------------
trunk/blender/source/blender/include/BIF_gl.h
trunk/blender/source/nan_compile.mk
trunk/blender/source/nan_definitions.mk
trunk/blender/source/nan_link.mk
Modified: trunk/blender/source/blender/include/BIF_gl.h
===================================================================
--- trunk/blender/source/blender/include/BIF_gl.h 2008-01-04 11:49:54 UTC (rev 13127)
+++ trunk/blender/source/blender/include/BIF_gl.h 2008-01-04 11:55:37 UTC (rev 13128)
@@ -53,11 +53,16 @@
#endif
#ifdef __APPLE__
-#include <OpenGL/gl.h>
-#include <OpenGL/glu.h>
+ #include <OpenGL/gl.h>
+ #include <OpenGL/glu.h>
#else
-#include <GL/gl.h>
-#include <GL/glu.h>
+ #if defined (__sun) || defined (__sun__)
+ #include <GL/gl.h>
+ #include <mesa/glu.h>
+ #else
+ #include <GL/gl.h>
+ #include <GL/glu.h>
+ #endif
#endif
/*
* these should be phased out. cpack should be replaced in
Modified: trunk/blender/source/nan_compile.mk
===================================================================
--- trunk/blender/source/nan_compile.mk 2008-01-04 11:49:54 UTC (rev 13127)
+++ trunk/blender/source/nan_compile.mk 2008-01-04 11:55:37 UTC (rev 13128)
@@ -171,10 +171,17 @@
endif
ifeq ($(OS),solaris)
- CC = gcc
- CCC = g++
-# CC = cc
-# CCC = CC
+ # Adding gcc flag to $CC is not good, however if its not there makesdna wont build - Campbell
+ ifeq (x86_64, $(findstring x86_64, $(CPU)))
+ CC = gcc -m64
+ CCC = g++ -m64
+ else
+ CC = gcc
+ CCC = g++
+ #CC = cc
+ #CCC = CC
+ endif
+
JAVAC = javac
JAVAH = javah
CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing
@@ -182,6 +189,7 @@
# CFLAGS += "-fast -xdepend -xarch=v8plus -xO3 -xlibmil -KPIC -DPIC -xchar=unsigned"
# CCFLAGS += "-fast -xdepend -xarch=v8plus -xO3 -xlibmil -xlibmopt -features=tmplife -norunpath -KPIC -DPIC -xchar=unsigned"
+ # Note, you might still want to compile a 32 bit binary if you have a 64bit system. if so remove the following lines
# ifeq ($(findstring 64,$(CPU)), 64)
# CFLAGS += -m64
# CCFLAGS += -m64
@@ -198,7 +206,8 @@
JAVA_HEADERS = /usr/java/include
JAVA_SYSTEM_HEADERS = /usr/java/include/solaris
else
- OPENGL_HEADERS = $(LCGDIR)/mesa/include
+ # OPENGL_HEADERS = /usr/X11/include/mesa
+ OPENGL_HEADERS = /usr/X11/include/
endif
AR = ar
ARFLAGS = ruv
Modified: trunk/blender/source/nan_definitions.mk
===================================================================
--- trunk/blender/source/nan_definitions.mk 2008-01-04 11:49:54 UTC (rev 13127)
+++ trunk/blender/source/nan_definitions.mk 2008-01-04 11:55:37 UTC (rev 13128)
@@ -482,7 +482,7 @@
export NAN_TIFF ?= /usr
export NAN_ODE ?= $(LCGDIR)/ode
export NAN_TERRAPLAY ?=
- export NAN_MESA ?= $(LCGDIR)/mesa
+ export NAN_MESA ?= /usr/X11
export NAN_ZLIB ?= $(LCGDIR)/zlib
export NAN_NSPR ?= $(LCGDIR)/nspr
export NAN_FREETYPE ?= $(LCGDIR)/freetype
Modified: trunk/blender/source/nan_link.mk
===================================================================
--- trunk/blender/source/nan_link.mk 2008-01-04 11:49:54 UTC (rev 13127)
+++ trunk/blender/source/nan_link.mk 2008-01-04 11:55:37 UTC (rev 13128)
@@ -119,8 +119,12 @@
ifeq ($(OS),solaris)
ifeq (x86_64, $(findstring x86_64, $(CPU)))
LLIBS = -lrt
+ LLIBS += -L$(NAN_MESA)/lib/amd64
+ else
+ LLIBS += -L$(NAN_MESA)/lib
endif
- LLIBS += -L$(NAN_MESA)/lib -lGLU -lGL -lXmu -lXext -lXi -lX11 -lc -lm -ldl -lsocket -lnsl
+
+ LLIBS += -lGLU -lGL -lXmu -lXext -lXi -lX11 -lc -lm -ldl -lsocket -lnsl
DYNLDFLAGS = -shared $(LDFLAGS)
endif
More information about the Bf-blender-cvs
mailing list