Difference between revisions of "Installation"

From Mineserver Wiki
Jump to navigation Jump to search
====OS X====
====OS X====
−
Firstly, until batterseapowers patches are merged, you need to change these lines in src/Makefile:
+
You can build, ensuring that you point the compiler to any Macports-installed headers and libraries:
−
 
−
 LDFLAGS = -L/usr/local/lib -L/usr/lib -levent -lz -lnoise $(LFLAGS)
 
−
 CXXFLAGS = $(DFLAGS) -I. -I/usr/Local/include -I/usr/include
 
−
 
−
To these:
 
−
 
−
 LDFLAGS += -L/usr/local/lib -L/usr/lib -levent -lz -lnoise $(LFLAGS)
 
−
 CXXFLAGS += $(DFLAGS) -I. -I/usr/Local/include -I/usr/include
 
−
 
−
This just allows us to supply some extra LDFLAGS and CXXFLAGS on the command line. Now you can build, ensuring that you point the compiler to any Macports-installed headers and libraries:
 
−
 cd src
+
  cd src
−
 CXXFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib make
+
  CXXFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib make
===Editing the Config===
===Editing the Config===