LINUX.ORG.RU
Ответ на: комментарий от wyldrodney

UNKNOWN_SYSTEM = yes
ifeq ($(OSTYPE),linux)
OS=linux
UNKNOWN_SYSTEM = no
endif

ifeq ($(OSTYPE),darwin)
OS=osx
UNKNOWN_SYSTEM = no
endif

CC=g++


CFLAGS = -Wall -fPIC
ifeq ($(OS),osx)
CFLAGS += -D_MACOSX_ -fno-common
endif

ifeq ($(DEBUG),YES)
CFLAGS += -g
else
CFLAGS += -O2
endif

DEPDIR=$(DANCE_DIR)/plugins/$(OS)

ifeq ($(OS),osx)
FLTKLIB=-lfltk2 -lfltk2_gl -lfltk2_images -lpng -ljpeg -lz
else
FLTKLIB=-lfltk2 -lfltk2_gl -lfltk2_images
endif
FLTKINCLUDE=-I/usr/include/fltk

ifeq ($(OS),osx)
PYTHONINCLUDE = -I/usr/include/python2.5
PYTHONLIB = -lpython2.5
else
PYTHONLIB=-lpython2.5
PYTHONINCLUDE=-I$(DANCE_DIR)/include/python2.5
endif

IMAGEMAGICKLIB=-L/usr/lib -lMagick++ -lMagickCore -lMagickWand
IMAGEMAGICKINCLUDE=-I/usr/include/ImageMagick

ODELIB=-lode
ODEINCLUDE=/usr/include/ode

LIBSTD=-L/usr/lib
LIBSTDX11=-L/usr/lib


INCLUDES=-I../math $(IMAGEMAGICKINCLUDE) $(PYTHONINCLUDE) $(FLTKINCLUDE) -I$(DANCE_DIR)/include

LDADD= -ldancemath $(FLTKLIB) $(IMAGEMAGICKLIB) $(PYTHONLIB)
LDFLAGS=-L$(DANCE_DIR)/lib $(LIBSTD)

ifeq ($(OS),osx)
FRAMEWORKS = -framework OpenGL -framework GLUT -framework Python -framework AGL -framework Carbon
LDADD += $(FRAMEWORKS)
LDADD_PLUGIN=
LDFLAGS += -all_load
PLUGIN_LDFLAGS = -undefined dynamic_lookup -dynamiclib
else
LDADD += $(LIBSTDX11) -lX11 -lXext -lXmu -lXi -lGL -lGLU -lglut -lpng12
LDFLAGS += -rdynamic
LDADD_PLUGIN=$(LDADD)
PLUGIN_LDFLAGS = -shared -Wl
endif


Немного поправленный Makefile.inc.

Попробую это:

core/src/Material.cxx: add #include <stdlib.h>
core/src/ParserASFAMC.cxx: add #include <stdlib.h>
core/src/ParserBVH.cxx: add #include <stdlib.h>
core/src/ParserPRT.cxx: add #include <stdlib.h>
core/src/Preference.cxx: add #include <stdlib.h>
core/src/RenderWindow.h: add #include <string>
core/src/SplashWindow.h: add #include <string>
core/src/SplashWindow.h: add #include <string>
core/src/Stuff.cxx: add #include <stdlib.h>
systems/ArticulatedObject.cxx: add #include <stdlib.h>
simulators/ODEManager.h: remove ODEManager:: qualifier from line 44
modifiers/LinearSkinning/Table.h: add #include <stdio.h>
controllers/PosePDController/ControllerHolder.h: remove
ControllerHolder:: qualifier
controllers/PosePDController/Pose.cxx: add #include <stdlib.h>

wyldrodney
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.