maddinat0r / samp-discord-connector

SA:MP plugin which controls a Discord bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error during build using make

Kahler25 opened this issue · comments

The plugin is crashing in linux, but not in Windows. Everytime, after sending any message from the server to Discord, it just sends the message and the server instantly closes itself, crashing.

So... I'm trying to build it myself. I'm on Debian 11 64bits

After running cmake, I got the build files, everything's good. But when I run make

I'm having this error:

/home/debian/samp-deps/samp-discord-connector/libs/log-core/src/AmxDebugManager.cpp:182:13: error: cast from ‘unsigned char*’ to ‘cell’ {aka ‘int’} loses precision [-fpermissive]
  182 |  cell dat = reinterpret_cast<cell>(amx->base + base->dat);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [libs/log-core/src/CMakeFiles/log-core.dir/build.make:90: libs/log-core/src/CMakeFiles/log-core.dir/AmxDebugManager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:166: libs/log-core/src/CMakeFiles/log-core.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

I'm not only having the error tho, I'm having A LOT of warnings:

I had to put it in a pastebin due that it's literally a lot

https://pastebin.com/Z50XmQLD