Retro-Graphics-Toolkit
Retro-Graphics-Toolkit copied to clipboard
collect2: error: ld returned 1 exit status
Hello and first of all thanks for this project! I am really looking forward to try it out, however I have issues in compiling it.
I am trying to compile on Linux Mint 20.
I have installed the required dependencies, and at first I tried to run make
but I had a fatal error: lua.hpp: No such file or directory
error.
I tried modifying the Makefile.common
as suggested here https://github.com/ComputerNerd/Retro-Graphics-Toolkit/issues/11#issuecomment-584529830 like so (luajit-2.0
-> luajit-2.1
):
CFLAGS := -isystem /usr/include/fltk/ -Imdcomp/include/ -IautogeneratedBindings/ -Iluaposix/ext/include -Iluaposix_headers -Iiqa/include -I. -I/usr/include/luajit-2.1 -Ilua-compat-53/c-api -DCOMPAT53_PREFIX=luacompat -c
However I am getting many (.text+0x0): multiple definition of `luaL_prepbuffsize_52'; luaposix/ext/posix/ctype.o (symbol from plugin):(.text+0x0): first defined here
type of errors, which I guess ends up in the final collect2: error: ld returned 1 exit status
error.
What could be the cause of the issue?