PureBasic Forum
https://www.purebasic.fr/english/

ASM Output in the macOS
https://www.purebasic.fr/english/viewtopic.php?f=35&t=71923
Page 1 of 1

Author:  crgimenes [ Fri Dec 14, 2018 10:29 pm ]
Post subject:  ASM Output in the macOS

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:
/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!

Author:  Sicro [ Sat Dec 15, 2018 1:47 am ]
Post subject:  Re: ASM Output in the macOS

Try out my PB-IDE tool:

Author:  crgimenes [ Sat Dec 15, 2018 2:38 am ]
Post subject:  Re: ASM Output in the macOS

It worked!

First I tried adjusting the environment variables that I found in the same Sicro post.
Code:
export PUREBASIC_HOME=/Applications/PureBasic.app/Contents/Resources
export PATH=$PUREBASIC_HOME/compilers:$PATH

So I tried running the compiler and it worked.
Code:
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. ;)

Author:  Sicro [ Tue Dec 25, 2018 5:13 pm ]
Post subject:  Re: ASM Output in the macOS

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.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/