Open electronicsRules opened 12 years ago
Hi, can you post your makefile here?
(I'll release a build script soon, so that you don't have this trouble)
//Edit: I haven't pushed all changes yet. FC will be compileable again in a few days
It's a hacked-together Makefile.in from a template
SHELL = /bin/sh
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
.SUFFIXES:
.SUFFIXES: .c .o
OPT=-g -O
AR = ar
AR_FLAGS = rc
RANLIB = @RANLIB@
CC = @CC@
CFLAGS = -I. @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
libdir = $(prefix)/lib
infodir = $(prefix)/info
# ??? replace these with your own list of files
SOURCES=AcceptThread.cpp ChunkMath.cpp ChunkProvider.cpp Constants.cpp EntityCoordinates.cpp Entity.cpp EntityFlags.cpp EntityListEntry.cpp EntityLiving.cpp EntityPickup.cpp EntityPlayer.cpp FCRuntimeException.cpp InventoryPlayer.cpp ItemContainer.cpp ItemID.cpp ItemInformationProvider.cpp ItemSlot.cpp main.cpp MathHelper.cpp MinecraftServer.cpp NBTBinaryParser.cpp NBTTagBase.cpp NBTTagByteArray.cpp NBTTagByte.cpp NBTTagCompound.cpp NBTTagDouble.cpp NBTTagFloat.cpp NBTTagInt64.cpp NBTTagInt.cpp NBTTagList.cpp NBTTagShort.cpp NBTTagString.cpp NetworkIn.cpp NetworkOut.cpp NetworkOutRoot.cpp NetworkWriter.cpp PackingThread.cpp PlayerEventBase.cpp PlayerEvents.cpp PlayerPool.cpp PlayerThread.cpp ServerThreadBase.cpp World.cpp
#DOCS=PROG.texi PROG.info
MISC=configure mkinstalldirs install-sh aclocal.m4
OBJS=$(SOURCES:.cpp=.o)
#LIB_OBJS=libf1.o libf2.o ...
all: FastCraft
FastCraft: lib/$(OBJS)
$(CC) $(CFLAGS) -o fc $(OBJS) $(LIBS)
lib/$(OBJS): $(addprefix FastCraft/,$(SOURCES))
(cd lib; $(CC) $(CFLAGS) -c $(addprefix ../FastCraft/,$(SOURCES)))
clean:
/bin/rm -f core *.o $(OBJS) $(LIB_OBJS) libMYPROG.a
distclean: clean
/bin/rm -f Makefile config.h config.status config.cache config.log \
marklib.dvi
mostlyclean: clean
maintainer-clean: clean
# automatic re-running of configure if the configure.in file has changed
${srcdir}/configure: configure.in aclocal.m4
cd ${srcdir} && autoconf
# autoheader might not change config.h.in, so touch a stamp file
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.in aclocal.m4
cd ${srcdir} && autoheader
echo timestamp > ${srcdir}/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck
I used autotools to generate a Makefile since one was not included in the GitHub repository. After installing dependencies, this is the log from make. I suspect that a majority of the errors are caused by wide (Unicode?) characters in the code.