Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Help sublime compile on macOS

 
  • 0 Vote(s) - 0 Average
Pawn Help sublime compile on macOS
bum
Offline

Burgershot Member
Posts: 2
Threads: 1
Joined: Oct 2020
Reputation: 0
Location: Vietnam
#1
2020-10-13, 07:01 AM
Hi everyone !
My gamemode is compile successfully with windows, but when I use my macOS for compile, it cannot run. I use sublime text for compiling, I have installed PAWN plugin, edited sublime-build file but it still not working.

My build file:
Code:
{
"cmd": ["./pawncc", "$file", "-iinclude", "-o$file_path/$file_base_name", "-;+", "-(+", "-d3"],
"file_regex": "(.*?)[(]([0-9]*)[)]",
"working_dir": "/Users/mba0204/Desktop/Folders/Source/Bumios/Project/Gaming/GGMP/pawno/",
"selector": "source.pwn"
}


The error logs:
Code:
[Errno 2] No such file or directory: './pawncc'
[cmd: ['./pawncc', '/Users/mba0204/Library/Application Support/Sublime Text 3/Packages/User/GGMPBuild.sublime-build', '-iinclude', '-o/Users/mba0204/Library/Application Support/Sublime Text 3/Packages/User/GGMPBuild', '-;+', '-(+', '-d3']]
[dir: /Users/mba0204/Desktop/Folders/Source/Bumios/Project/Gaming/GGMP/pawno]
[path: /Users/mba0204/.rvm/gems/ruby-2.5.1/bin:/Users/mba0204/.rvm/gems/[email protected]/bin:/Users/mba0204/.rvm/rubies/ruby-2.5.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/mba0204/.rvm/bin]
[Finished]
Kwarde
Offline

Burgershot Member
Posts: 99
Threads: 2
Joined: Sep 2020
Reputation: 8
Location: The Netherlands
#2
2020-10-16, 04:26 PM
Seems "./pawncc" wasn't found. I always manually run pawncc (or rather, created a compile.sh file so I don't have to typ out all parameters all the time). Since I'm not familiar with using the compiler in that way, I'm not sure if "working_dir" ("dir") uses -D (I assume it does tho). Are pawncc and pawndisasm in there?

Also, a way more convenient way is to place "pawncc" and "pawndisasm" in /usr/bin (make sure they've executable permissions) and "libpawnc.dylib" in /usr/lib. Then you can call "pawncc" from anywhere (and thus the command line would start with "pawncc" and not "./pawncc")
bum
Offline

Burgershot Member
Posts: 2
Threads: 1
Joined: Oct 2020
Reputation: 0
Location: Vietnam
#3
2020-10-19, 04:36 AM
I don't have any file with name `pawndisasm`.
And currently my macOS doesn't contain `/bin` and `/lib` folder, I have checked the hidden files but it not on the list.
Pawncc too, exe file can't be open by my mac.
Kwarde
Offline

Burgershot Member
Posts: 99
Threads: 2
Joined: Sep 2020
Reputation: 8
Location: The Netherlands
#4
2020-10-19, 09:38 AM
Then find out where the files must be. I assumed some post I saw from MacOS X, which does have those directories.
Otherwise appearantly it's possible that it's to be placed under /Applications & /Library (not certain, though). I don't work with MacOS (fortunately) anyway.

Re-download the compiler though ; https://github.com/pawn-lang/compiler/releases/ --all the files you need are in there.
Also try running pawncc through terminal.
« 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