Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Compiling on Linux

 
  • 0 Vote(s) - 0 Average
Pawn Compiling on Linux
Smyle
Offline

Burgershot Member
Posts: 7
Threads: 3
Joined: Jan 2021
Reputation: 0
Location: Brazil
#1
2021-03-10, 09:37 PM
Heyo.

So... In a while ago i just moved into Linux (Ubuntu/Debian) for other development purposes and i didnt want to stop all my SAMP projects because of Torvalds. My issue is with compiling. Does anyone knows how am i going to be able to compile in this OS? Or do something else so it can work? 

Thank you. As yall can notice i am not an expert (not even close to an amateur) on using linux, so... I'm kinda lost here.
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#2
2021-03-11, 11:15 PM
You need the updated community compiler:

https://github.com/pawn-lang/compiler/
Smyle
Offline

Burgershot Member
Posts: 7
Threads: 3
Joined: Jan 2021
Reputation: 0
Location: Brazil
#3
2021-03-12, 02:05 PM
(2021-03-11, 11:15 PM)Y_Less Wrote: You need the updated community compiler:

https://github.com/pawn-lang/compiler/

Thank you, sir. I got one more question. How can i compile it using the VSCode's tasks?

This is what i got:

PHP Code:
{
    "version": "2.0.0",
    "tasks":
    [
      {
        "label": "build",
        "type": "shell",
        "command": "${workspaceRoot}/pawno/bin/pawncc",
        "args": ["'${file}'", "'-D${fileDirname}'", "'-;+'", "'-(+'", "'-d3'"],
  
        
"group":
        {
          "kind": "build",
          "isDefault": true
        
},
  
        
"isBackground": false,
  
        
"presentation":
        {
          "reveal": "always",
          "panel": "dedicated"
        },
        
        
"problemMatcher": "$pawncc"
      }
    ]
  } 

But actually this doesn't work at all and i get this error message:

Quote:error while loading shared libraries: libpawnc.so: cannot open shared object file: No such file or directory

I have no idea how to compile using this OS, so i just presumed it would work with something like that

Thank you again
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#4
2021-03-13, 02:19 PM
Well do you have that file in the right directory with +x? Otherwise you might need to set pwd first.
Smyle
Offline

Burgershot Member
Posts: 7
Threads: 3
Joined: Jan 2021
Reputation: 0
Location: Brazil
#5
2021-03-13, 11:35 PM
(2021-03-13, 02:19 PM)Y_Less Wrote: Well do you have that file in the right directory with +x?  Otherwise you might need to set pwd first.

I forgot that softwares on Linux have to work on different directories, in theory.
Just moved to /usr/lib and now it works.

Just one more thing, if I am not disturbing you. How can we add the includes so we can compile with it? (An great example would be using a_samp.inc). Just tried moving to my compile directory, but I'm probably missing something stupid tho.

Thank you one more time. :)
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#6
2021-03-14, 02:09 AM
"-i"
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode