ASM Output in the macOS

Bare metal programming in PureBasic, for experienced users
User avatar
crgimenes
New User
New User
Posts: 6
Joined: Thu Dec 13, 2018 3:52 pm
Location: São Paulo, Brazil
Contact:

ASM Output in the macOS

Post 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!
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 452
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

Re: ASM Output in the macOS

Post by Sicro »

Try out my PB-IDE tool:
Image
Why OpenSource should have a license :: DarkColor-Scheme for PureBasic
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download – Any help is welcome!
Manjaro Xfce x64 (Main system) :: Windows 7 x64 (VirtualBox) :: Newest PureBasic version
User avatar
crgimenes
New User
New User
Posts: 6
Joined: Thu Dec 13, 2018 3:52 pm
Location: São Paulo, Brazil
Contact:

Re: ASM Output in the macOS

Post 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. ;)
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 452
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

Re: ASM Output in the macOS

Post 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.
Image
Why OpenSource should have a license :: DarkColor-Scheme for PureBasic
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download – Any help is welcome!
Manjaro Xfce x64 (Main system) :: Windows 7 x64 (VirtualBox) :: Newest PureBasic version
Post Reply