How to compile LUA libraries?

manoaratefy

Новичок
Автор темы
4
0
Версия MoonLoader
.027.0-preview
Good morning,

I need to use specific dependancies from luarocks.org and tried to install them but got an issue. Within x86 Native Tools Command Prompt for VS 2022, I went to moonloader\luarocks folder and tried to launch luarocks install compat53 but it ain't working:
Код:
c:\GTA San Andreas\moonloader\luarocks>luarocks install compat53
Installing https://luarocks.org/compat53-0.13-1.src.rock

cl /nologo /MD /O2 -c -Folstrlib.obj -IC:\GTA San Andreas\moonloader\luajit\inc lstrlib.c
lstrlib.c
link -dll -subsystem:windows,5.01 -def:string.def -out:compat53/string.dll C:\GTA San Andreas\moonloader\luajit\lib/lua51.lib lstrlib.obj
Microsoft (R) Incremental Linker Version 14.31.31107.0
Copyright (C) Microsoft Corporation.  All rights reserved.

   Création de la bibliothèque compat53\string.lib et de l'objet compat53\string.exp
cl /nologo /MD /O2 -c -Foliolib.obj -IC:\GTA San Andreas\moonloader\luajit\inc liolib.c
liolib.c
liolib.c(280): warning C4047: '=' : les niveaux d'indirection de 'FILE *' et de 'int' sont différents
link -dll -subsystem:windows,5.01 -def:io.def -out:compat53/io.dll C:\GTA San Andreas\moonloader\luajit\lib/lua51.lib liolib.obj
Microsoft (R) Incremental Linker Version 14.31.31107.0
Copyright (C) Microsoft Corporation.  All rights reserved.

io.def : error LNK2001: symbole externe non résolu luaopen_compat53_io
compat53\io.lib : fatal error LNK1120: 1 externes non résolus

Error: Build error: Failed compiling module compat53/io.dll

Could someone help? Is there official guide for luarocks compilation for moonloader?