this patch fixes compiling with latest newton:
- Code: Select all
Index: coreLibrary_300/projects/posix64/makefile
===================================================================
--- coreLibrary_300/projects/posix64/makefile (revision 2389)
+++ coreLibrary_300/projects/posix64/makefile (working copy)
@@ -43,8 +43,7 @@
$(DG_PATH)dgRandom.cpp \
$(DG_PATH)dgRefCounter.cpp \
$(DG_PATH)dgRef.cpp \
- $(DG_PATH)dgSimd_128.cpp \
- $(DG_PATH)dgSimd_256.cpp \
+ $(DG_PATH)dgSimd4.cpp \
$(DG_PATH)dgSmallDeterminant.cpp \
$(DG_PATH)dgSPDMatrix.cpp \
$(DG_PATH)dgSphere.cpp \
@@ -53,6 +52,10 @@
$(DG_PATH)dgTree.cpp \
$(DG_PATH)dgTypes.cpp
+DG_INCLUDED_OPENCL_PATH = ../../source/openCL
+DG_OPENCL_PATH = $(DG_INCLUDED_OPENCL_PATH)/
+DG_OPENCL_SRCS = \
+ $(DG_OPENCL_PATH)dgOpenCL.cpp
# ******************************************************
#
@@ -104,7 +107,6 @@
$(DG_PHYSICS_PATH)dgUserConstraint.cpp \
$(DG_PHYSICS_PATH)dgWorld.cpp \
$(DG_PHYSICS_PATH)dgWorldDynamicsParallelSolver.cpp \
- $(DG_PHYSICS_PATH)dgWorldDynamicsParallelSolverSimdAVX.cpp \
$(DG_PHYSICS_PATH)dgWorldDynamicsParallelSolverSimd.cpp \
$(DG_PHYSICS_PATH)dgWorldDynamicsSimpleSolver.cpp \
$(DG_PHYSICS_PATH)dgWorldDynamicsSimpleSolverSimd.cpp \
@@ -157,7 +159,7 @@
#
# ******************************************************
#ALL_SRC_FILES = $(DG_SRCS) $(DG_PHYSICS_SRCS) $(DG_MESH_SRCS) $(DG_NEWTON_SRCS) $(DG_AI_SRCS)
-ALL_SRC_FILES = $(DG_SRCS) $(DG_PHYSICS_SRCS) $(DG_MESH_SRCS) $(DG_NEWTON_SRCS)
+ALL_SRC_FILES = $(DG_SRCS) $(DG_PHYSICS_SRCS) $(DG_MESH_SRCS) $(DG_NEWTON_SRCS) $(DG_OPENCL_SRCS)
DG_OBJ_FILES = $(ALL_SRC_FILES:.cpp=.o)
COMPILER = gcc
@@ -169,7 +171,7 @@
CPU_FLAGS = -O2 -fpic -g -msse -msse2 -mfpmath=sse -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant
#FLAGS = -c -Wall -Wno-strict-aliasing -D_POSIX_VER -D_POSIX_VER_64 $(CPU_FLAGS) -I$(DG_INCLUDED_PATH) -I$(DG_INCLUDED_PHYSICS_PATH) -I$(DG_INCLUDED_MESH_PATH) -I$(DG_INCLUDED_AI_PATH)
-FLAGS = -c -Wall -Wno-strict-aliasing -D_POSIX_VER -D_POSIX_VER_64 $(CPU_FLAGS) -I$(DG_INCLUDED_PATH) -I$(DG_INCLUDED_PHYSICS_PATH) -I$(DG_INCLUDED_MESH_PATH)
+FLAGS = -D__DEBUG -c -Wall -Wno-strict-aliasing -D_POSIX_VER -D_POSIX_VER_64 $(CPU_FLAGS) -I$(DG_INCLUDED_PATH) -I$(DG_INCLUDED_PHYSICS_PATH) -I$(DG_INCLUDED_MESH_PATH) -I$(DG_INCLUDED_OPENCL_PATH)
.SUFFIXES : .o .cpp
You can apply them to posix32 and posix64 makefile.
(btw you deprecated the mass function. how do I change the mass of an object to 0 or back to the old mass properly?)