StarRuler2-Source
StarRuler2-Source copied to clipboard
Build error while linking
The build fails on my Linux system while trying to create bin/lin64/StarRuler2.bin in the linking phase.
The log is below. Errors start appearing in line 826.
Edit: Because there is no preview on github, I'll quickly describe whats going on: A lot of symbols are not found during the linking phase ("[...]: undefined reference to [...]
"). This seems to happen to library exports, especially networking and threading.
The linking line (323) of the linux Makefile is ordered incorrectly. You need to move $(LDFLAGS)
to the end. The fixed version is below for clarification of the correct order:
#Complete binary compile
$(BINDIR)/$(BIN): makelibs $(OBJ_FILES) $(LIB_FILES) $(COPY_LIBS)
@mkdir -p $(BINDIR)
@$(CC) $(CXXFLAGS) $(OBJ_FILES) $(LIB_FILES) -o $@ $(LDFLAGS)
Same here with Debian! Won't link.
@diddledani If you found the fix, can you please fork this project and provide a PR?