This post was updated on .
Hi All,
I am looking to make a PIC32 port of eLua. So far I have compiled the Lua portion of eLua (none of the platform specific stuff) to run on the PIC32 with no problems, but I am having problems compiling the compiler portion of the project to run on my PC. I am wanting to load bytecode on to my PIC32 target. I have tried using LuaForWindows and MinGW tools to compile under Windows, but I run into the following issue:- [LINK] luac.cross .build/cross-lua\src__lua__lapi.o: file not recognized: File format not recogniz ed collect2.exe: error: ld returned 1 exit status [builder] Error building target [builder] Last executed command was: gcc -o luac.cross .build/cross-lua\src__lua__lapi.o Full listing below. I have tried creating a Visual Studios project, which I did successfully with the latest Lua.org code. The VS C compiler is not C99 compatible and this seems to be causing an issue. I have tried following the Linux installation instruction on Ubuntu but the binutils/gcc/newlib instructions fail. Can anyone recommend the best way to get the eLua compiler running on a PC? Cheers, Lee elua-PIC32>lua5.1 cross-lua.lua [COMPILE] .build/cross-lua\src__lua__liolib.o [COMPILE] .build/cross-lua\src__lua__lmathlib.o [COMPILE] .build/cross-lua\src__lua__loslib.o [COMPILE] .build/cross-lua\src__lua__ltablib.o [COMPILE] .build/cross-lua\src__lua__lstrlib.o [COMPILE] .build/cross-lua\src__lua__loadlib.o [COMPILE] .build/cross-lua\src__lua__linit.o [COMPILE] .build/cross-lua\src__lua__luac.o [COMPILE] .build/cross-lua\src__lua__print.o [COMPILE] .build/cross-lua\src__lua__lrotable.o [LINK] luac.cross .build/cross-lua\src__lua__lapi.o: file not recognized: File format not recogniz ed collect2.exe: error: ld returned 1 exit status [builder] Error building target [builder] Last executed command was: gcc -o luac.cross .build/cross-lua\src__lua__lapi.o .build/cross-lua\src__lua__l code.o .build/cross-lua\src__lua__ldebug.o .build/cross-lua\src__lua__ldo.o .bui ld/cross-lua\src__lua__ldump.o .build/cross-lua\src__lua__lfunc.o .build/cross-l ua\src__lua__lgc.o .build/cross-lua\src__lua__llex.o .build/cross-lua\src__lua__ lmem.o .build/cross-lua\src__lua__lobject.o .build/cross-lua\src__lua__lopcodes. o .build/cross-lua\src__lua__lparser.o .build/cross-lua\src__lua__lstate.o .buil d/cross-lua\src__lua__lstring.o .build/cross-lua\src__lua__ltable.o .build/cross -lua\src__lua__ltm.o .build/cross-lua\src__lua__lundump.o .build/cross-lua\src__ lua__lvm.o .build/cross-lua\src__lua__lzio.o .build/cross-lua\src__lua__lauxlib. o .build/cross-lua\src__lua__lbaselib.o .build/cross-lua\src__lua__ldblib.o .bui ld/cross-lua\src__lua__liolib.o .build/cross-lua\src__lua__lmathlib.o .build/cro ss-lua\src__lua__loslib.o .build/cross-lua\src__lua__ltablib.o .build/cross-lua\ src__lua__lstrlib.o .build/cross-lua\src__lua__loadlib.o .build/cross-lua\src__l ua__linit.o .build/cross-lua\src__lua__luac.o .build/cross-lua\src__lua__print.o .build/cross-lua\src__lua__lrotable.o -lm |
Free forum by Nabble | Edit this page |