viruscamp / luadec

Lua Decompiler for lua 5.1 , 5.2 and 5.3
1.14k stars 343 forks source link

make error #86

Closed Bluscream closed 2 years ago

Bluscream commented 2 years ago
PS P:\Decompilers\Lua\luadec\lua-5.3> make linux
cd src && c:/programdata/chocolatey/lib/make/tools/install/bin/make.exe linux
make[1]: Entering directory 'P:/Decompilers/Lua/luadec/lua-5.3/src'
c:/programdata/chocolatey/lib/make/tools/install/bin/make.exe all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"
make[2]: Entering directory 'P:/Decompilers/Lua/luadec/lua-5.3/src'
gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX    -c -o lapi.o lapi.c
process_begin: CreateProcess(NULL, gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lapi.o lapi.c, ...) failed.
make (e=2): The system cannot find the file specified.
make[2]: *** [<builtin>: lapi.o] Error 2
make[2]: Leaving directory 'P:/Decompilers/Lua/luadec/lua-5.3/src'
make[1]: *** [Makefile:110: linux] Error 2
make[1]: Leaving directory 'P:/Decompilers/Lua/luadec/lua-5.3/src'
make: *** [Makefile:55: linux] Error 2
PS P:\Decompilers\Lua\luadec\lua-5.3> make
"Please do 'make PLATFORM' where PLATFORM is one of these:"
"   aix bsd c89 freebsd generic linux macosx mingw posix solaris"
"See doc/readme.html for complete instructions."
PS P:\Decompilers\Lua\luadec\lua-5.3> make generic
cd src && c:/programdata/chocolatey/lib/make/tools/install/bin/make.exe generic
make[1]: Entering directory 'P:/Decompilers/Lua/luadec/lua-5.3/src'
gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2     -c -o lapi.o lapi.c
process_begin: CreateProcess(NULL, gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -c -o lapi.o lapi.c, ...) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [<builtin>: lapi.o] Error 2
make[1]: Leaving directory 'P:/Decompilers/Lua/luadec/lua-5.3/src'
make: *** [Makefile:55: generic] Error 2
martinlindhe commented 2 years ago

Since you are on Windows, you cannot "make linux".

From a mingw shell, use "make mingw".

https://www.mingw-w64.org/

Bluscream commented 2 years ago

Thanks

DataReset commented 1 year ago

i have same issue on pop os