I notice the bazel system goes into detail about how to modify your apt repository and therefore has assumptions you have root access on your local system and also don't mind making changes that affect all users. This really shouldn't be a prerequisite to compile anything, especially wanting the latest bleeding edge Java just to compile C++! Looking at it, it looks like a basic Makefile is pretty trivial to construct instead and almost certainly this would be quicker to write than to install the prerequisites by hand (unless you happen to be on one of the supported systems with root access).
Originally Posted by thorfdbg
I got most of the way there, but gave up and started my proper work again when I ran into issues with gflags refusing to accept a prefix=/blah option (I guess it's some arcane cmake syntax to do it instead. gah!)
Anyway, something like this to start from (needs work):
But seriously, if it's less hassle to write the missing build system than use your provided one, then you've lost 99% of the audience.
all: $(GU_LIB) $(GU_BIN)
CXXFLAGS=-g -O3 -Wno-sign-compare
INCLUDES= -I. -I../butteraugli
LIBS= -L. -L../butteraugli
$(CXX) $(CFLAGS) -fPIC $(INCLUDES) -c $< -o $@
$(CXX) -shared -o $@ $(LIB_OBJ) $(LDFLAGS)
$(GU_BIN): $(GU_LIB) $(BIN_OBJ)
$(CXX) -o $@ $(BIN_OBS) $(LDFLAGS) $(LIBS)
-rm *.o */*.o
-rm $(GU_LIB) $(GU_BIN)