Running native PB-programs on X86-Macs
-
cologneskater
- User

- Posts: 22
- Joined: Fri Jul 08, 2005 7:06 pm
- Location: Cologne, Germany
- Contact:
Running native PB-programs on X86-Macs
Maybe something of interest: The darwine project (http://darwine.opendarwin.org) released some time ago a mac port of wine, the linux runtime environment for windows programs.
I tested the X86-compilation, which is easy to install and configurate: Purebasic4 itself doesn't install, but some compiled PB-Sources will run in native speed directly on mac os x. Darwine needs the X11-package, which could be installed from the os x - installation dvd.
Double-click on your .exe-file and maybe it will run if it is not too complicated for darwine.
A good feature for x86-mac-users until a native PB4 will be released.
Greetings
Gunter
I tested the X86-compilation, which is easy to install and configurate: Purebasic4 itself doesn't install, but some compiled PB-Sources will run in native speed directly on mac os x. Darwine needs the X11-package, which could be installed from the os x - installation dvd.
Double-click on your .exe-file and maybe it will run if it is not too complicated for darwine.
A good feature for x86-mac-users until a native PB4 will be released.
Greetings
Gunter
Interesting. Did you try to run PB4 Beta (you don't need to install it) with Darwine?
Darwine works with PPC as well. I have got darwine. I will test to run an PB exe with it next days.
Another interesting thing could be to run PB4 on Parallels virtual machine. This should run as well in nearly full speed (thanks to vt-x).
Best Regards
CSAUER
Darwine works with PPC as well. I have got darwine. I will test to run an PB exe with it next days.
Another interesting thing could be to run PB4 on Parallels virtual machine. This should run as well in nearly full speed (thanks to vt-x).
Best Regards
CSAUER
darwine will not be able to run windows apps on PPC, it can only serve as a library on these systems
Visit www.sceneproject.org
-
cologneskater
- User

- Posts: 22
- Joined: Fri Jul 08, 2005 7:06 pm
- Location: Cologne, Germany
- Contact:
@CSAUER:
Look at the readme.html, there is one sentence in red letters:
"Important Warning: YOU WILL NOT BE ABLE TO RUN WINDOWS APPLICATION USING IT ON POWERPC HARDWARE USING THIS RELEASE."
The sample demo files in the ppc version are ppc-compiled windows files made with the darwine sdk for xcode. This files are not able to run on real x86-pc's.
No, i have not tested the PB4 beta. I got error messages during installation of the final PB4 release. I saw that the installation has created a PureBasic-folder in the program-section. When PB will be opend the PB-logo appears and some seconds later a error message is shown: "Error: An attemped read or write to/from an address to which that process isn't allowed"
Created executables of PB-Sources (yes, with parallels) could run with darwine. I tested some data conversion programs (a csv-dump of a database at work converted so it could be imported in access with no counting errors in later defined reports) and the high speed on real mac os x was a great pleasure.
Ok, it's not a mac look. And if it should work with your compilations it is always a work around until a native PB4 for Intel-Macs appears.
But now it's probalbly possible to work with your PB-executables on an Intel-Mac.
Look at the readme.html, there is one sentence in red letters:
"Important Warning: YOU WILL NOT BE ABLE TO RUN WINDOWS APPLICATION USING IT ON POWERPC HARDWARE USING THIS RELEASE."
The sample demo files in the ppc version are ppc-compiled windows files made with the darwine sdk for xcode. This files are not able to run on real x86-pc's.
No, i have not tested the PB4 beta. I got error messages during installation of the final PB4 release. I saw that the installation has created a PureBasic-folder in the program-section. When PB will be opend the PB-logo appears and some seconds later a error message is shown: "Error: An attemped read or write to/from an address to which that process isn't allowed"
Created executables of PB-Sources (yes, with parallels) could run with darwine. I tested some data conversion programs (a csv-dump of a database at work converted so it could be imported in access with no counting errors in later defined reports) and the high speed on real mac os x was a great pleasure.
Ok, it's not a mac look. And if it should work with your compilations it is always a work around until a native PB4 for Intel-Macs appears.
But now it's probalbly possible to work with your PB-executables on an Intel-Mac.
Hmm I don't understand why 4.0 doesn't run in darwine, it runs fine on Linux Wine and so applications done in it do
Visit www.sceneproject.org
-
cologneskater
- User

- Posts: 22
- Joined: Fri Jul 08, 2005 7:06 pm
- Location: Cologne, Germany
- Contact:
Good news: With the actual beta of "CrossOver" the Installation of PureBasic 4.02 finished without errors. It's possible to edit and compile Sourcecode, only the graphic icons under the menu line are invisible. The visual designer also seems to work. Happy new year!
The URL: http://www.macupdate.com/download.php/2 ... 0.0rc2.dmg
The beta version will run 60 days until expire. But: There is no need to install the program in the application folder! CrossOver will also run when the application is moved on the desktop of an user with limited access (no administrator rights). If the "first" trial period is over, add a new "PureBasic" user in Mac OS X with limited user rights and install CrossOver on the desktop of this user. Then you have another 60 days.
The URL: http://www.macupdate.com/download.php/2 ... 0.0rc2.dmg
The beta version will run 60 days until expire. But: There is no need to install the program in the application folder! CrossOver will also run when the application is moved on the desktop of an user with limited access (no administrator rights). If the "first" trial period is over, add a new "PureBasic" user in Mac OS X with limited user rights and install CrossOver on the desktop of this user. Then you have another 60 days.
but.. for develop pb4 app for mac we need that pb4 be ready.....
because if you want to run windows in mac then install parallels or VMware
and thats it.....
I run in a PC with VMware (I like it more than parallels) ubuntu and im
doing some tests to run mac inside Vmware too.... but Im not in a
hurry cause I need PB4 for mac.....
Hope Im not out of topic here
Happy new year for all of you guys...
because if you want to run windows in mac then install parallels or VMware
and thats it.....
I run in a PC with VMware (I like it more than parallels) ubuntu and im
doing some tests to run mac inside Vmware too.... but Im not in a
hurry cause I need PB4 for mac.....
Hope Im not out of topic here
Happy new year for all of you guys...
-
cologneskater
- User

- Posts: 22
- Joined: Fri Jul 08, 2005 7:06 pm
- Location: Cologne, Germany
- Contact:
You're in right, chen. The best solution is a clean native PureBasic for Mac OS X and not a windows emulation.
Until the native mac port is not available there are several workarounds. The disadvantage of parallels and vmware for a mac user is that you have to start the whole windows operating system in memory before you can use PB. This locks much more RAM as the crossover utility and needs more time to start.
The Crossover utility gives you more feeling how mac development with PB would be later in this year.
Until the native mac port is not available there are several workarounds. The disadvantage of parallels and vmware for a mac user is that you have to start the whole windows operating system in memory before you can use PB. This locks much more RAM as the crossover utility and needs more time to start.
The Crossover utility gives you more feeling how mac development with PB would be later in this year.
Checking boxes in tables in Crossover
Does anyone know of a way to check and uncheck boxes in the PB Visual Designer Properties dialog in Crossover (for the purpose of setting flags)?
-
jamirokwai
- Enthusiast

- Posts: 799
- Joined: Tue May 20, 2008 2:12 am
- Location: Cologne, Germany
- Contact:
I'd like to add something (two years after the last post...)
I tried Darwine (from http://www.kronenberg.org/darwine/) in its unstable incarnation 1.1.18.
PB 4.30/Windows installs fine. Besides the missing icons of the iconbar (as posted by cologneskater),
PB starts, compiles my Reisekostenrechner, and debugs relatively fine. The biggest drawbacks are
the DirectX-library, the printer-functionality (which seems to depend on Darwine), some
problems with mouse-arrow hidden beyond the GUI-Gadgets, and the not-working webgadet...
Although I installed DirectX 9.x prior installing PB, the compiler dies with an invalid memory access
when accessing DirectX-Calls (InitSprite, InitMovie, etc.). The GUI-Routines seem to work fine, as
older GUI-only-code works rather flawlessly... I even tried nt4, and opengl, but did not succeed
Possibly worth a further investigation for those who want to use the GUI-Builder,
or simply test some GUI-observations on Windows without the need
of installing Parallels and such, as most of them Gadgets seem to work!!
I tried Darwine (from http://www.kronenberg.org/darwine/) in its unstable incarnation 1.1.18.
PB 4.30/Windows installs fine. Besides the missing icons of the iconbar (as posted by cologneskater),
PB starts, compiles my Reisekostenrechner, and debugs relatively fine. The biggest drawbacks are
the DirectX-library, the printer-functionality (which seems to depend on Darwine), some
problems with mouse-arrow hidden beyond the GUI-Gadgets, and the not-working webgadet...
Although I installed DirectX 9.x prior installing PB, the compiler dies with an invalid memory access
when accessing DirectX-Calls (InitSprite, InitMovie, etc.). The GUI-Routines seem to work fine, as
older GUI-only-code works rather flawlessly... I even tried nt4, and opengl, but did not succeed
Possibly worth a further investigation for those who want to use the GUI-Builder,
or simply test some GUI-observations on Windows without the need
of installing Parallels and such, as most of them Gadgets seem to work!!
Regards,
JamiroKwai
JamiroKwai

