lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello! I'm trying to compile luaSDL on my PowerBook G4 (PPC) Mac OS 10.5

Tolua compiled fine (After some tweaking).

tolua -n SDL -o SDL_tolua.c SDL.pkg
cl /nologo -c SDL_tolua.c -I../../../tolua/include -I../../lua-4.0-loadmodule/include
make: cl: Command not found
make: *** [SDL_tolua.obj] Error 127


Thats my problem from trying to 'make' luaSDL.
When I go to edit the config.mak to see what 'cl' is, I notice that its checking for linux, and if it isn't, its guessing I'm on windows!

ifndef TU_TESTBED_COMPILER
        ifndef $(OSTYPE)
                OSTYPE = $(shell uname)
        endif
        OSTYPE := $(patsubst Linux, linux, $(OSTYPE))

        ifneq (,$(findstring linux, $(OSTYPE)))
                TU_TESTBED_COMPILER = gcc
        else
                TU_TESTBED_COMPILER = msvc
        endif
endif

How would I change this? If I type 'echo $OSTYPE' I get: darwin9.0
Wouldn't it work just fine if I changed 
        ifneq (,$(findstring linux, $(OSTYPE)))

to

        ifneq (,$(findstring darwin9.0, $(OSTYPE)))

?

Thanks,
    Tim.


--
--Brains.