Open soknifedev opened 1 year ago
Can you please upload this build? I don‘t have space for Xcode. Thank you!
This is not an issue, is just a tip to build the compiler and run it on Apple M1 Chip computers.
@soknifedev Thanks, it compiled perfectly. Haven't actually tested the resulting amx file yet though.
Can you please upload this build? I don‘t have space for Xcode. Thank you!
@halfbloodprince27 You shouldn't trust builds from strangers, but here you go:
https://woet.me/m1-pawncc-3.10.10.zip (master branch of pawn-lang/compiler repo) https://woet.me/m1-pawncc-3.10.11.zip (dev branch of pawn-lang/compiler repo) https://woet.me/m1-pawncc-openmp.zip (Branch_minor-tweaks branch of openmultiplayer/compiler repo)
This is not an issue, is just a tip to build the compiler and run it on Apple M1 Chip computers.
@soknifedev Thanks, it compiled perfectly. Haven't actually tested the resulting amx file yet though.
Can you please upload this build? I don‘t have space for Xcode. Thank you!
@halfbloodprince27 You shouldn't trust builds from strangers, but here you go:
https://woet.me/m1-pawncc-3.10.10.zip (master branch of pawn-lang/compiler repo) https://woet.me/m1-pawncc-3.10.11.zip (dev branch of pawn-lang/compiler repo) https://woet.me/m1-pawncc-openmp.zip (Branch_minor-tweaks branch of openmultiplayer/compiler repo)
Have you tested the resulting AMX file? I didn't have time to do so when I compiled the pawncc executable (even today 😅).
I would like to know if it works as expected; I made these changes based on a comment from Y_Less on another issue
This is cool, however for some reason the instance is not able to find the header files required to compile successfully. I have Xcode installed.
Pawn compiler 3.10.10 Copyright (c) 1997-2006, ITB CompuPhase
test.pwn(1) : fatal error 100: cannot read from file: "stdio.h"
Compilation aborted.
1 Error.
You're just deleting an assertion, without actually fixing the problem it is there to fix. Check the open.mp fork for better 32/64 bit compatibility. Right now, your natives will just crash, you haven't got it working on 64-bit systems, you've just disabled the errors.
This is not an issue, is just a tip to build the compiler and run it on Apple M1 Chip computers.
@soknifedev Thanks, it compiled perfectly. Haven't actually tested the resulting amx file yet though.
Can you please upload this build? I don‘t have space for Xcode. Thank you!
@halfbloodprince27 You shouldn't trust builds from strangers, but here you go:
https://woet.me/m1-pawncc-3.10.10.zip (master branch of pawn-lang/compiler repo) https://woet.me/m1-pawncc-3.10.11.zip (dev branch of pawn-lang/compiler repo) https://woet.me/m1-pawncc-openmp.zip (Branch_minor-tweaks branch of openmultiplayer/compiler repo)
update you link for pawncc 3.10.10 please.
This is not an issue, is just a tip to build the compiler and run it on Apple M1 Chip computers.
Issue description:
There were multiple people trying to build and run the compiler in macOS ARM/M1: #663 #662 #79 #76 #75 And me, of course.
Instructions
(Note that I'm using zsh as shell, if you use bash or anything else, replace it with yours)
Should output:
First, modify source/amx/amx.h: Replace this:
With this:
And now you will need to comment the line 493 of file source/amx/amx.c
It should look like this:
Once you comment this line, you will be able to compile, type this in your terminal:
By doing this, I was able to code and compile my scripts on M1.
Workspace Information: