It is currently Tue Oct 22, 2019 5:18 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: ASM Output in the macOS
PostPosted: Fri Dec 14, 2018 10:29 pm 
Offline
New User
New User
User avatar

Joined: Thu Dec 13, 2018 3:52 pm
Posts: 6
Location: São Paulo, Brazil
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!

_________________
Cesar Gimenes


Top
 Profile  
Reply with quote  
 Post subject: Re: ASM Output in the macOS
PostPosted: Sat Dec 15, 2018 1:47 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 369
Location: Germany
Try out my PB-IDE tool:

_________________
Image
Why OpenSource should have a license
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download -- Any help is welcome!
Manjaro Xfce x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
 Post subject: Re: ASM Output in the macOS
PostPosted: Sat Dec 15, 2018 2:38 am 
Offline
New User
New User
User avatar

Joined: Thu Dec 13, 2018 3:52 pm
Posts: 6
Location: São Paulo, Brazil
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. ;)

_________________
Cesar Gimenes


Top
 Profile  
Reply with quote  
 Post subject: Re: ASM Output in the macOS
PostPosted: Tue Dec 25, 2018 5:13 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 369
Location: Germany
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
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download -- Any help is welcome!
Manjaro Xfce x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye