PB6.0Beta-Installing on Mac

Mac OSX specific forum
WilliamL
Addict
Addict
Posts: 1214
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

PB6.0Beta-Installing on Mac

Post by WilliamL »

How to proceed:
- In the IDE, add a new compiler (File -> Preferences -> Compiler -> Choose 'pbcompilerc' file with the file requester -> Add).


The 'Add' button does nothing in PureBasic 6.00 Beta 1 (MacOS X - x64) and don't see that the compiler(c) is already installed in the IDE.
MacBook Pro-M1 (2021), Sonoma 14.3.1 (CLT 15.3), PB 6.10b7 M1
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB6.0Beta-Installing on Mac

Post by mk-soft »

A typical problem with APPs.

Open the Purebasic package with the Finder. Go to the folder of the compiler. Mark the pbcompilerc. Copy from the status bar of the Finder the path with the file (Context Statusbar).
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
WilliamL
Addict
Addict
Posts: 1214
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: PB6.0Beta-Installing on Mac

Post by WilliamL »

Hi mk-soft,

Couldn't 'copy from status bar'. So I just typed in the path shown at the bottom of the finder window and typed it in the lowest field of the Preferences/Compiler/ window (the one with the ...). Hit add/delete/clear (many times).

MacBkPro_SSD/Applications/PureBasic-60Beta.app/Contents/Resources/compilers/pbcompilerc

...after many clicks and pastings somehow it got it in the list of the compliers (dunno how) but the 'Version' column says 'Cannot read version'. Maybe I typed in the path wrong. I don't see the 'c' complier in the 'Options' list either.
MacBook Pro-M1 (2021), Sonoma 14.3.1 (CLT 15.3), PB 6.10b7 M1
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB6.0Beta-Installing on Mac

Post by mk-soft »

If you have selected the path and the file in the Finder, you can click with the right mouse button on the status bar at the bottom of the displayed file.

At least that's the way it is with me. macOS Big Sur

Or use this ;)

Code: Select all

path.s = #PB_Compiler_Home + "compilers/pbcompilerc"
SetClipboardText(path)
MessageRequester("Compiler", "Path in Clipboard!" + #LF$ + #LF$ + path)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
WilliamL
Addict
Addict
Posts: 1214
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: PB6.0Beta-Installing on Mac

Post by WilliamL »

Thanks mk-soft!

That got it to work! I'm not sure why my path didn't work but when I put you're copy in the 'Add' button worked!

It's all kinda mysterious but it isn't important now that it works.

I used your code. Clever idea. (I hope your code can help someone else too)

Now on to experimenting with the C backend... :D


/Applications/PureBasic-60Beta.app/Contents/Resources/compilers/pbcompilerc <worked!

MacBkPro_SSD/Applications/PureBasic-60Beta.app/Contents/Resources/compilers/pbcompilerc <didn't work
MacBook Pro-M1 (2021), Sonoma 14.3.1 (CLT 15.3), PB 6.10b7 M1
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB6.0Beta-Installing on Mac

Post by mk-soft »

MacBkPro_SSD/Applications/PureBasic-60Beta.app/Contents/Resources/compilers/pbcompilerc <didn't work
Paths always begin without hard drive name.
Extern drive mounted in path /Volumes/...
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
WilliamL
Addict
Addict
Posts: 1214
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: PB6.0Beta-Installing on Mac

Post by WilliamL »

The C backend is working very well!

I see that assembler doesn't work but I came across this thread about it. https://www.purebasic.fr/english/viewto ... 52#p577552
MacBook Pro-M1 (2021), Sonoma 14.3.1 (CLT 15.3), PB 6.10b7 M1
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB6.0Beta-Installing on Mac

Post by mk-soft »

It also no longer makes sense to use ASM so that the programmes also work on M1 (arm64).
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply