PureBasic for MacOS X beta 1 unleashed !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Re: PureBasic for MacOS X beta 1 unleashed !

Post 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 ;)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic for MacOS X beta 1 unleashed !

Post 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 ! :twisted:
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

He he he not dead, just hard at work ;) :lol:
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Doobrey
Enthusiast
Enthusiast
Posts: 218
Joined: Sat Apr 26, 2003 4:47 am
Location: Dullsville..population: me
Contact:

Re: PureBasic for MacOS X beta 1 unleashed !

Post by Doobrey »

Woohooo....

Nice one Fred.
Hi-Toro
Enthusiast
Enthusiast
Posts: 269
Joined: Sat Apr 26, 2003 3:23 pm

Post 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.)
James Boyd
http://www.hi-toro.com/
Death to the Pixies!
JokerZ
New User
New User
Posts: 5
Joined: Fri Sep 17, 2004 1:59 am

Post 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.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post 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.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post 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.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post 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 :)
SPAMINATOR NR.1
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post 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...
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Don't wanna use another language.
PB is what I use, want and adore ;)
Right Fred? Or, right said Fred :lol:
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
JokerZ
New User
New User
Posts: 5
Joined: Fri Sep 17, 2004 1:59 am

Post 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.
DanJersy
New User
New User
Posts: 3
Joined: Sat Sep 18, 2004 6:05 pm
Location: Germany

Post 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?
8) 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.
JokerZ
New User
New User
Posts: 5
Joined: Fri Sep 17, 2004 1:59 am

Post 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
pantsonhead
User
User
Posts: 39
Joined: Fri Mar 26, 2004 1:47 pm
Location: London, UK
Contact:

Post by pantsonhead »

Well done Fred - I'm excited to try this out. :D
Post Reply