poseDeformer & poseReader for Maya 2016 Linux x64


#1

For anyone trying to compile the Comet’s poseDeformer and poseReader for maya2016 on Linux x64, you may use the following makefiles.
Make sure you replace the <TAB HERE> with actual ascii tab

####################

this is for poseDeformer

NO_TRANS_LINK =
MAYA_LOCATION = /tech/apps/Autodesk/maya2016ext1sp5/maya/
C++ = g++
CFLAGS = -g -D_BOOL -DLINUX -D_DEBUG -D_DRAW_STYLE_4 -O3 -pipe -DREQUIRE_IOSTREAM -ffast-math -fPIC
C++FLAGS = $(CFLAGS) $(WARNFLAGS)
INCLUDES = -I. -I… -I$(MAYA_LOCATION)/include -I/usr/X11R6/include -I/usr/include
LD = $(C++) -shared $(NO_TRANS_LINK) $(C++FLAGS)
LIBS = -L$(MAYA_LOCATION)/lib -lOpenMaya -lOpenMayaAnim

.SUFFIXES: .cpp .cc .o .so .c

.cc.o:
<TAB HERE>$(C++) -c $(INCLUDES) $(C++FLAGS) $<

.cpp.o:
<TAB HERE>$(C++) -c $(INCLUDES) $(C++FLAGS) $<

.cc.i:
<TAB HERE>$(C++) -E $(INCLUDES) $(C++FLAGS) $.cc > $.i

.cc.so:
<TAB HERE>-rm -f $@
<TAB HERE> $(LD) -o $@ $(INCLUDES) $< $(LIBS)

.cpp.so:
<TAB HERE> -rm -f $@
<TAB HERE> $(LD) -o $@ $(INCLUDES) $< $(LIBS)

.o.so:
<TAB HERE> -rm -f $@
<TAB HERE> $(LD) -o $@ $< $(LIBS)

poseDeformer.so: plugin.o MatrixNN.o mirrorData.o poseDeformerEdit.o poseDeformer.o
<TAB HERE> -rm -f $@
<TAB HERE> $(LD) -o $@ plugin.o MatrixNN.o mirrorData.o poseDeformerEdit.o poseDeformer.o $(LIBS)

depend:
<TAB HERE> makedepend $(INCLUDES) -I/usr/include/CC *.cc

clean:
<TAB HERE> -rm -f *.o

Clean:
<TAB HERE> -rm -f *.o *.so *.bak

DO NOT DELETE

###################
###################

this is for poseReader

C++ = g++
MAYA_LOCATION = /tech/apps/Autodesk/maya2016ext1sp4/maya/
CFLAGS = -g -D_BOOL -DLINUX -D_DEBUG -D_DRAW_STYLE_4 -O3 -pipe -DREQUIRE_IOSTREAM -ffast-math -fPIC
C++FLAGS = $(CFLAGS) $(WARNFLAGS)
INCLUDES = -I. -I… -I$(MAYA_LOCATION)/include -I/usr/X11R6/include -I/usr/include
LD = $(C++) -shared $(NO_TRANS_LINK) $(C++FLAGS)
LIBS = -L$(MAYA_LOCATION)/lib -lOpenMaya -lOpenMayaAnim -lOpenMayaUI

.SUFFIXES: .cpp .o .so

.cpp.o:
<TAB HERE>$(C++) -c $(INCLUDES) $(C++FLAGS) $<

.cc.i:
<TAB HERE>$(C++) -E $(INCLUDES) $(C++FLAGS) $.cc > $.i

.cc.so:
<TAB HERE> -rm -f $@
<TAB HERE> $(LD) -o $@ $(INCLUDES) $< $(LIBS)

.cpp.so:
<TAB HERE> -rm -f $@
<TAB HERE> $(LD) -o $@ $(INCLUDES) $< $(LIBS)

.o.so:
<TAB HERE> -rm -f $@
<TAB HERE> $(LD) -o $@ $< $(LIBS)

poseReader: poseReader.so

clean:
<TAB HERE> -rm -f *.o

clean:
<TAB HERE> -rm -f *.o *.so *.bak

poseReader.so: plugin.o multiTrigger.o poseReader.o
<TAB HERE> -rm -f $@
<TAB HERE> $(LD) -o $@ plugin.o multiTrigger.o poseReader.o $(LIBS)

DO NOT DELETE


#2

Sorry, may I ask if you have the Maya2015 version of poseDeformer and poseReader?
I find everywhere that I could find, but I still cannot get the 2015 linux version…
I tried to compiled it by myself but I really don’t know where to start from…