Page 2 of 4
Re: PureBasic for MacOS X beta 1 unleashed !
Posted: Tue Sep 14, 2004 7:32 pm
by GeoTrail
PB wrote:> PureBasic now support 4 plateforms (AmigaOS/Windows/Linux/MacOS X) and 3 processors (680x0, x86, PowerPC)
That leaves just one more: Pocket PC!

Oh yeah, now THAT would be interesting

Re: PureBasic for MacOS X beta 1 unleashed !
Posted: Tue Sep 14, 2004 11:34 pm
by Fred
GeoTrail wrote:PB wrote:> PureBasic now support 4 plateforms (AmigaOS/Windows/Linux/MacOS X) and 3 processors (680x0, x86, PowerPC)
That leaves just one more: Pocket PC!

Oh yeah, now THAT would be interesting

I see, you want see me dead !

Posted: Tue Sep 14, 2004 11:59 pm
by GeoTrail
He he he not dead, just hard at work

Re: PureBasic for MacOS X beta 1 unleashed !
Posted: Wed Sep 15, 2004 12:18 am
by Doobrey
Woohooo....
Nice one Fred.
Posted: Wed Sep 15, 2004 6:23 pm
by Hi-Toro
Cool, I'll give it a go over the next few days... despite my loyalties lying with That Other Basic, it's definitely nice to have both available!
(EDIT: For anyone who isn't aware, you can probably try this out with PearPC (
http://www.pearpc.net/) although you'll have to dig up a copy of OS X from Ebay or some place. Even though it's slow and won't run hardware-accelerated OpenGL yet, it'll probably be fine for developing apps on.)
Posted: Fri Sep 17, 2004 2:10 am
by JokerZ
Ok got this installed and running under OS X.
Just a few tips.
The Install.txt file says to
fink install gcc2
that won't work, as fink doesn't maintain gcc for OS X.
What you need to do is get the developer tools and install
GCC version 3.1
That will get you working and operational.
The rest of the install instructions generally are pretty much ok.
Oh, if you are using X11 and bash as a shell, put the various path commands etc into .bashrc
The apps that build ok but don't link correctly are the ones using SDL.
So that means no sprites or sound.
Just to clarify the SDL apps seem to have linking problems. Duplicate libraries being pulled from libz.1.dylib as well as from the SDL libraries.
So a remake of the pbcompiler may be required.
The applications that use GTK for windows are working nicely and as expected.
Posted: Fri Sep 17, 2004 3:09 pm
by Fred
thank you for the feedback (and the mail) I will take a closer look to the SDL linking problem and update the install.txt file with the info about gcc.
Posted: Fri Sep 17, 2004 7:48 pm
by GeoTrail
And the Pocket PC version? Fred?

I'd pay the price of PB again for it just so you know.
And I KNOW lots of other users would love a PocketPC compiler for PB too.
Posted: Fri Sep 17, 2004 7:57 pm
by Rings
GeoTrail wrote:And the Pocket PC version? Fred?

I'd pay the price of PB again for it just so you know.
And I KNOW lots of other users would love a PocketPC compiler for PB too.
install VS2003, and you get a very smart plattform to make programs also for the pocketpc

Posted: Fri Sep 17, 2004 7:59 pm
by Num3
JokerZ wrote:Ok got this installed and running under OS X.
Just a few tips.
The Install.txt file says to
fink install gcc2
that won't work, as fink doesn't maintain gcc for OS X.
What you need to do is get the developer tools and install
GCC version 3.1
That will get you working and operational.
The rest of the install instructions generally are pretty much ok.
Oh, if you are using X11 and bash as a shell, put the various path commands etc into .bashrc
The apps that build ok but don't link correctly are the ones using SDL.
So that means no sprites or sound.
Just to clarify the SDL apps seem to have linking problems. Duplicate libraries being pulled from libz.1.dylib as well as from the SDL libraries.
So a remake of the pbcompiler may be required.
The applications that use GTK for windows are working nicely and as expected.
Interesting I have this problem with linux...
My game compiles ok, but no graphics...
Posted: Fri Sep 17, 2004 8:00 pm
by GeoTrail
Don't wanna use another language.
PB is what I use, want and adore

Right Fred? Or, right said Fred

Posted: Sat Sep 18, 2004 1:22 am
by JokerZ
In regard to the linking, I think it's an issue with cmake and the SDL build itself.
There may be a flag somewhere in the SDL cmake file that says something like
#SDL_USE_SYSTEM_ZLIB ON
this should be uncommented.
I am only guessing here as I have not seen the SDL cmake files.
But something like that might exist and if it does, it should solve the problem once it's uncommented.
Posted: Sat Sep 18, 2004 6:40 pm
by DanJersy
Hi. I`m new here. I got the OS X Compiler from my personal account and like to use it on my G4 Mac. But I`m also new to X11, SDL, Terminals, fink and so on (I used to use MacOS 9.x). So I got some problems:
The install.txt says following:
1) You will need to install the X11 layer for your macos (see
www.apple.com)
- I think I got it. 44MB. Installed just fine.
2) login as root to do the following operations:
# su -
- is it "su -"? After I type "su -" the terminal asks for my password. After that it just says "sorry". Why? I surely know my root-password as I need it for Apple-Software-Updates and so on.
3) Use 'fink' to get the following package (install fink if not already done) :
# fink install gtk+
# fink install gcc2
# fink install sdl
gcc couldn´t be installed via fink, but that has been discussed before. gtk+ and sdl installed fine - at least I think so.
4) Open a terminal and setup the PUREBASIC_HOME environment variable
# PUREBASIC_HOME="purebasicdir"
# export PUREBASIC_HOME
when I type in "PUREBASIC_HOME="purebasicdir"" (I think I need to tell it the whole path which is "/purebasic" on my computer) it just says "tcsh: PUREBASIC_HOME=purebasicdir: Command not found." Also with the next line ("export: Command not found.").
5) execute the following command:
# ranlib $PUREBASIC_HOME/compilers/systembase.a
This seems to work if I put in the whole path "ranlib /purebasic/compilers/systembase.a". At least there is no error message.
6) the X11 term doesn't always take in count your profile. Enter the following line to enable it (and have the right path for gtk, sdl etc..). If you use another terminal, you may not have to do that.
# . ~/.profile
This quits with "permission denied".
7) Add the $PUREBASIC_HOME/compiler path to the PATH variable
how do I do this?

Enter:
# pbcompiler
doesn`t work... "command not found" even if I change the purebasic/compilers-directory to the actual one.
I hope someone with more unix-knowhow can help me as I´m pretty much satisfied with PureBasic on Windows and like to use it on my Mac, too.
Posted: Mon Sep 20, 2004 1:22 am
by JokerZ
Danjersey,
let's see if I can help you out a bit here.
for changing to a root login, just try sudo su
from memory macs do something a bit weird when trying to change to
superuser. I know I had to tweak mine ages ago, but have forgotten precisely where.. may have been the sudoers file in /etc
if you are using tcsh as your shell, the export command won't work.
try setenv instead so something like
setenv PUREBASIC_HOME $PATH:$HOME/purebasic_osx_beta1
(or use the /purebasic path if thats where you installed your files)
you may as well also add
setenv PATH $PATH:$HOME/purebasic_osx_beta1/compiler
for doing this each time you start your terminal, you'll most likely want to put the files in .cshrc
if you continue to have ongoing probs, please feel free to email me at
g5developer at gmail.com
Rob
Posted: Wed Sep 22, 2004 10:26 am
by pantsonhead
Well done Fred - I'm excited to try this out.
