Page 1 of 1
PB6.0Beta-Installing on Mac
Posted: Sat Dec 04, 2021 12:27 am
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.
Re: PB6.0Beta-Installing on Mac
Posted: Sat Dec 04, 2021 10:43 am
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).
Re: PB6.0Beta-Installing on Mac
Posted: Sat Dec 04, 2021 6:30 pm
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.
Re: PB6.0Beta-Installing on Mac
Posted: Sat Dec 04, 2021 7:25 pm
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)
Re: PB6.0Beta-Installing on Mac
Posted: Sat Dec 04, 2021 9:10 pm
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...
/Applications/PureBasic-60Beta.app/Contents/Resources/compilers/pbcompilerc <worked!
MacBkPro_SSD/Applications/PureBasic-60Beta.app/Contents/Resources/compilers/pbcompilerc <didn't work
Re: PB6.0Beta-Installing on Mac
Posted: Sat Dec 04, 2021 10:34 pm
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/...
Re: PB6.0Beta-Installing on Mac
Posted: Sat Dec 04, 2021 11:33 pm
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
Re: PB6.0Beta-Installing on Mac
Posted: Sun Dec 05, 2021 12:36 am
by mk-soft
It also no longer makes sense to use ASM so that the programmes also work on M1 (arm64).