[Server] sampctl linux compiling - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Support (https://forum.open.mp/forumdisplay.php?fid=12) --- Thread: [Server] sampctl linux compiling (/showthread.php?tid=608) |
sampctl linux compiling - 6cadilab9 - 2019-05-27 Hello,? So I switched to ubuntu 16.04 bc of my job and now I decided to move whole project on to sampctl because of its included linux compiler, now i installed all packages, setted the whole project up, and when i run sampctl package build the amx of 0 bytes is generated but nothing happens, i get nothing in the terminal it looks like its running but I don't believe that it's supposed to take this long especially with the machine im running it on RE: sampctl linux compiling - JustMichael - 2019-05-27 (2019-05-27, 02:41 PM)6cadilab9 Wrote: Hello,? Hi, please provide the `pawn.json` file from your sampctl setup. RE: sampctl linux compiling - 6cadilab9 - 2019-05-27 Here it is PHP Code: { RE: sampctl linux compiling - JustMichael - 2019-05-27 Are you sure no errors are thrown? Cause if any errors are thrown the `.amx` file will either be removed or contain 0 bytes. Also just an added extra, you need to add `"local": true` under output and above dependencies (this tells sampctl that it is a local gamemode and not a remote script/library) RE: sampctl linux compiling - 6cadilab9 - 2019-05-27 I'm pretty sure, i ran the command to build and it's been 10 minutes now, still nothing https://i.imgur.com/88v50nd.png RE: sampctl linux compiling - JustMichael - 2019-05-27 Are you able to compile this normally with the compiler? If this is the first time using the community compiler (included with sampctl) it maybe that the updates within the community compiler are causing issues. You can enable compatibility mode by passing either the `-Z` flag with the compiler options or add `#pragma option -Z` to the top of your gamemode RE: sampctl linux compiling - 6cadilab9 - 2019-05-27 Tried with the compatibility mode still the same, been running over an hour now.. RE: sampctl linux compiling - JustMichael - 2019-05-27 Can you run sampctl with the `--verbose` flag and show us the output? RE: sampctl linux compiling - 6cadilab9 - 2019-05-27 Sure, here it is PHP Code: INFO: failed to get version information: reference not found RE: sampctl linux compiling - JustMichael - 2019-05-27 try something for me, and try rename your path from `BU Community` to `BU_Community` and tell me if that makes any difference for you? RE: sampctl linux compiling - 6cadilab9 - 2019-05-28 Same :/ Weird thing is if i were to for example include something that I don't have i would get an error /home/hidden/Cadilab/BU/gamemodes/balkan-underground.pwn:16 (fatal) cannot read from file: "non_existing_include_name_here" Build encountered fatal error RE: sampctl linux compiling - JustMichael - 2019-05-28 Okay, I already know the issue and I can't believe it took me this long to realise it. The problem is you are using the latest version of sampctl, which by default includes the community compiler 3.10.9 which doesn't work with sampctl for some reason. So what you need to do is set a build context and specify the version 3.10.8. Code: "builds": [ Put this code inside your pawn.json after the "dependencies" context RE: sampctl linux compiling - 6cadilab9 - 2019-05-28 Yes it works now, thanks dude you're a life saver! RE: sampctl linux compiling - JustMichael - 2019-05-28 No Worries, glad you got it working ;) |