Page 1 of 1

ASM Output in the macOS

Posted: Fri Dec 14, 2018 10:29 pm
by crgimenes
Hello everyone,

I'm trying to generate the ASM output in the macOS but I'm not getting it, I believe that I am missing some environment variable to inform for the compiler where things are.

This is the error I'm getting.

Code: Select all

/Applications/PureBasic.app/Contents/Resources/compilers/pbcompiler -c $(pwd)/main.pb                             

******************************************
PureBasic 5.62 (MacOS X - x64)
******************************************

Loading external modules...
Error: Can't load OS libraries, please re-install PureBasic.
Can anyone give me a hint or point out the proper documentation?

thank you, guys!

Re: ASM Output in the macOS

Posted: Sat Dec 15, 2018 1:47 am
by Sicro
Try out my PB-IDE tool:

Re: ASM Output in the macOS

Posted: Sat Dec 15, 2018 2:38 am
by crgimenes
It worked!

First I tried adjusting the environment variables that I found in the same Sicro post.

Code: Select all

export PUREBASIC_HOME=/Applications/PureBasic.app/Contents/Resources
export PATH=$PUREBASIC_HOME/compilers:$PATH
So I tried running the compiler and it worked.

Code: Select all

pbcompiler -c ./main.pb
Then I tested with the Sicro's PB-IDE tool and it also worked. :D
Thanks Sicro!

Now I'm going to study how to compile my changes. ;)

Re: ASM Output in the macOS

Posted: Tue Dec 25, 2018 5:13 pm
by Sicro
crgimenes wrote:Now I'm going to study how to compile my changes.
Here is a more comprehensive PB-IDE tool that additionally allows you to edit/compile the ASM output: https://github.com/tajmone/PBasmUI
It seems to have been developed for the Windows operating system, but so you have a code that you only have to adapt for MacOS, instead of writing everything from scratch.