Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.10.6/5 does not compiled my GM on macOS #297

Closed
1 of 3 tasks
F96fedebike opened this issue Apr 16, 2018 · 8 comments · May be fixed by openmultiplayer/compiler#8
Closed
1 of 3 tasks

3.10.6/5 does not compiled my GM on macOS #297

F96fedebike opened this issue Apr 16, 2018 · 8 comments · May be fixed by openmultiplayer/compiler#8

Comments

@F96fedebike
Copy link

F96fedebike commented Apr 16, 2018

Is this a BUG REPORT, FEATURE REQUEST or QUESTION?:

  • Bug Report
  • Feature Request
  • Question

What happened: When I'll try to compile my Gamemode with the last compiler update 3.10.5 or 3.10.6 I'll receive this error:

dyld: Library not loaded: @rpath/libpawnc.dylib
Referenced from: /Users/federico/Desktop/Pawno/./pawncc
Reason: image not found
[Finished in 0.0s with exit code -6]

With the old release 3.10.4 o more old don't have any problems.

For invoke the compiler I use this:

"cmd": ["./pawncc", "$file", "-iinclude", "-o$file_path/$file_base_name","-Z+","-;+","-(+", "-d3"], "file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$", "working_dir": "/Users/federico/Desktop/Pawno"

Environment:

  • Operating System: MacOS High Sierra
  • Compiler version: 3.10.6
  • How are you invoking the compiler? Sublime
@F96fedebike F96fedebike changed the title 3.10.6/5 does not compiled my GM on MacOS 3.10.6/5 does not compiled my GM on macOS Apr 16, 2018
@Southclaws
Copy link
Collaborator

You should set the environment variable DYLD_LIBRARY_PATH=/path/to/dir where dir contains the pawn .dylib file.

I'm not sure if sublime supports the prefix notation for env vars, like: DYLD_LIBRARY_PATH=/path/to/dir ./pawncc you may need to do this externally or via a script.

@F96fedebike
Copy link
Author

F96fedebike commented Apr 16, 2018

@Southclaws I'll try with this: https://packagecontrol.io/packages/Environment%20Settings
But i have the same error, I don't have mean why with older release it's ok.

@Southclaws
Copy link
Collaborator

Strange, I can't reproduce this on my mac with sampctl with compiler 3.10.5 or 3.10.6, I am defining two variables:

https://github.com/Southclaws/sampctl/blob/6303cf263bc7e52a0ac4489efaa3b65cbe24269f/compiler/compiler.go#L163-L164

@YashasSamaga
Copy link
Member

Isn't 3.10.6/5 still broken?

@F96fedebike
Copy link
Author

F96fedebike commented Apr 17, 2018

@Southclaws I've tried with sampctl with VS Code / Sublime and worked.
Now I've tried with Sublime and I have see it's more slower than a few seconds to compiling.

Is not possible to enable the classic Pawn console debug with memory use etc?

@Southclaws
Copy link
Collaborator

Is not possible to enable the classic Pawn console debug with memory use etc?

With pawncc: -v with sampctl: --verbose

@F96fedebike
Copy link
Author

@Southclaws I've tried but show me the same list of --Help...

@Southclaws
Copy link
Collaborator

If the original issue is resolved, please close it and if you're having problems with sampctl then open an issue here or contact me on the SA:MP discord server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants