0 Members and 1 Guest are viewing this topic.
cd C:\Graphing Calculator\Nspire\Lua Programming\luna-v0.2bluna.exe jumper.lua jumper.tns
CC:=/opt/local/bin/gcc-mp-4.7CFLAGS:=-W -Wall -m32LDFLAGS:= -lssl -lz -m32VPATH := minizip-1.1OS ?= `uname -s`ifeq ($(OS),Windows_NT) EXEEXT = .exeelse CFLAGS := $(CFLAGS) -DUSE_FILE32API LDFLAGS:= $(LDFLAGS) -lcryptoendifall: luna$(EXEEXT)luna$(EXEEXT): luna.o zip.o ioapi.o /opt/local/bin/gcc-mp-4.7 -o $@ $^ $(LDFLAGS)dist: clean all mkdir -p dist/src rm -f *.o find . -maxdepth 1 ! -name 'luna$(EXEEXT)' -a ! -name dist -a ! -name . -exec cp -r {} dist/src \; cp luna$(EXEEXT) *.dll *.txt distclean: rm -rf *.o luna$(EXEEXT) dist
For those of you who are on OS X and are having trouble building Luna, I found out why it won't build. In the Luna's readme, it states you need gcc >=4.5, but apple's gcc is gcc 4.2. Using MacPorts (or Homebrew, Fink), install gcc 4.7 (run "sudo port install gcc47"). Then open up Luna's Makefile with a text editor and change any instances of "gcc" to "/opt/local/bin/gcc-mp-4.7". Cd to the Luna directory in Terminal, and do make "dist luna", and it builds!Code: [Select]CC:=/opt/local/bin/gcc-mp-4.7CFLAGS:=-W -Wall -m32LDFLAGS:= -lssl -lz -m32VPATH := minizip-1.1OS ?= `uname -s`ifeq ($(OS),Windows_NT) EXEEXT = .exeelse CFLAGS := $(CFLAGS) -DUSE_FILE32API LDFLAGS:= $(LDFLAGS) -lcryptoendifall: luna$(EXEEXT)luna$(EXEEXT): luna.o zip.o ioapi.o /opt/local/bin/gcc-mp-4.7 -o $@ $^ $(LDFLAGS)dist: clean all mkdir -p dist/src rm -f *.o find . -maxdepth 1 ! -name 'luna$(EXEEXT)' -a ! -name dist -a ! -name . -exec cp -r {} dist/src \; cp luna$(EXEEXT) *.dll *.txt distclean: rm -rf *.o luna$(EXEEXT) distAlso, link for those who don't want to build themselves:https://dl.dropbox.com/u/4657389/luna-v3.0a-osx-intel.zip
Alternatively, using clang, if you have that installed, should work. Works for me under Linux.(I tried to post this yesterday evening, but my session timed out and I didn't notice)
CC:=clangCFLAGS:=-W -Wall -m32LDFLAGS:= -lssl -lz -m32VPATH := minizip-1.1OS ?= `uname -s`ifeq ($(OS),Windows_NT) EXEEXT = .exeelse CFLAGS := $(CFLAGS) -DUSE_FILE32API LDFLAGS:= $(LDFLAGS) -lcryptoendifall: luna$(EXEEXT)luna$(EXEEXT): luna.o zip.o ioapi.o clang -o $@ $^ $(LDFLAGS)dist: clean all mkdir -p dist/src rm -f *.o find . -maxdepth 1 ! -name 'luna$(EXEEXT)' -a ! -name dist -a ! -name . -exec cp -r {} dist/src \; cp luna$(EXEEXT) *.dll *.txt distclean: rm -rf *.o luna$(EXEEXT) dist