LUA fat.h missing

Support for the GBA/DS/Gamecube/Wii media card library
Post Reply
mcp
Posts: 1
Joined: Sat Jun 14, 2008 12:03 am

LUA fat.h missing

Post by mcp » Sat Jun 14, 2008 12:27 am

hi
im had several problems with devkits, (psp)
which never got sorted out until last week (a bit late lol)
anyway when i go to compile lua i get this error

when i enter lua-5.1.3/
and type make i get this

Code: Select all

C:\wii\lua>make
main.c
c:/wii/lua/source/main.c:16:17: warning: lua.h: No such file or directory
c:/wii/lua/source/main.c:17:21: warning: lauxlib.h: No such file or directory
c:/wii/lua/source/main.c:18:20: warning: lualib.h: No such file or directory
c:/wii/lua/source/main.c:20:17: warning: fat.h: No such file or directory
c:/wii/lua/source/main.c: In function 'main':
c:/wii/lua/source/main.c:42: warning: implicit declaration of function 'fatInitD
efault'
c:/wii/lua/source/main.c:43: warning: implicit declaration of function 'lua_open
'
c:/wii/lua/source/main.c:43: warning: initialization makes pointer from integer
without a cast
c:/wii/lua/source/main.c:46: warning: implicit declaration of function 'printf'
c:/wii/lua/source/main.c:46: warning: incompatible implicit declaration of built
-in function 'printf'
c:/wii/lua/source/main.c:51: warning: implicit declaration of function 'luaL_ope
nlibs'
c:/wii/lua/source/main.c:52: warning: implicit declaration of function 'luaL_loa
dfile'
c:/wii/lua/source/main.c:54: warning: incompatible implicit declaration of built
-in function 'printf'
c:/wii/lua/source/main.c:60: warning: implicit declaration of function 'lua_pcal
l'
c:/wii/lua/source/main.c:62: warning: incompatible implicit declaration of built
-in function 'printf'
c:/wii/lua/source/main.c:69: warning: implicit declaration of function 'lua_getg
lobal'
c:/wii/lua/source/main.c:73: warning: incompatible implicit declaration of built
-in function 'printf'
c:/wii/lua/source/main.c:73: warning: implicit declaration of function 'lua_tost
ring'
c:/wii/lua/source/main.c:73: warning: format '%s' expects type 'char *', but arg
ument 2 has type 'int'
c:/wii/lua/source/main.c:77: warning: implicit declaration of function 'sleep'
c:/wii/lua/source/main.c:81: warning: incompatible implicit declaration of built
-in function 'printf'
linking ... lua.elf
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.3/../../../../powerpc-ge
kko/bin/ld.exe: cannot find -llua
collect2: ld returned 1 exit status
make[1]: *** [/c/wii/lua/lua.elf] Error 1
make: *** [build] Error 2
but i still attempt make install
and get this

Code: Select all

C:\wii\lua>make install
make: *** No rule to make target `install'.  Stop.
finally i enter lua-5.1.3, type make and get this error

Code: Select all

C:\wii\lua\lua-5.1.3>make
cd src && make generic
make[1]: Entering directory `/c/wii/lua/lua-5.1.3/src'
make all MYCFLAGS=
make[2]: Entering directory `/c/wii/lua/lua-5.1.3/src'
/c/devkitPro/devkitPPC/bin/powerpc-gekko-gcc -O2 -mrvl -Wall -DGEKKO -mrvl -mcpu
=750 -meabi -mhard-float -I/c/devkitPro/devkitPPC/include   -c -o lauxlib.o laux
lib.c
lauxlib.c:14:17: error: fat.h: No such file or directory
lauxlib.c: In function 'luaL_loadfile':
lauxlib.c:553: warning: implicit declaration of function 'fatInitDefault'
make[2]: *** [lauxlib.o] Error 1
make[2]: Leaving directory `/c/wii/lua/lua-5.1.3/src'
make[1]: *** [generic] Error 2
make[1]: Leaving directory `/c/wii/lua/lua-5.1.3/src'
make: *** [generic] Error 2

this is whats in the readme

Code: Select all

cd lua-5.1.3/
make
make install
cd ..
make
cp test.lua /mnt/to/your/sdcard
wiiload lua.elf

Basically that's all you have to do!
youd think the creator wouldve already compiled it, as thats the point of lua
if you cant compile then theres a second option
if someone is unable to see whats wrong right away, could they please upload lua.elf, so it will keep me busy until devkitpro is sorted out on my pc or laptop

thanks

also is there a website for lua for wii
so i know its current features, for example if it supports wiimote

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 0 guests