Create 32-bit + 64-bit executables

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
marcoagpinto
Addict
Addict
Posts: 947
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Create 32-bit + 64-bit executables

Post by marcoagpinto »

Hello Fred,

Could you add an option to the menus in all platform versions of IDE?:
Create 32-bit executable...
Create 64-bit executable...

This way we would only need to install one version of PB and compile for both cores.
Fred
Administrator
Administrator
Posts: 16686
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Create 32-bit + 64-bit executables

Post by Fred »

Just install both version and use a project with 2 target to compile both exe automatically.
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Create 32-bit + 64-bit executables

Post by DoubleDutch »

There needs to be a tutorial about this as it would be useful. The same goes for making Linux too, this may be possible on Windows 10 as you can run linux command line.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
mk-soft
Always Here
Always Here
Posts: 5406
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Create 32-bit + 64-bit executables

Post by mk-soft »

To compile Linux programs, the complete GCC compiler and all developer files must also be available.
These are not available under window. So it is not possible to call the Linux compiler from Windows.

Sorry,
But sometimes I have the impression that some people have little understanding of how different OS work.
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
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Create 32-bit + 64-bit executables

Post by DoubleDutch »

https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
mk-soft
Always Here
Always Here
Posts: 5406
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Create 32-bit + 64-bit executables

Post by mk-soft »

I don't know if it is enough to use the GCC compiler alone.
This includes all the libraries for gtk2, gtk3, webkit, and many more

I think it is more reliable to have a Linux installation on a VM.
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
Fred
Administrator
Administrator
Posts: 16686
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Create 32-bit + 64-bit executables

Post by Fred »

Yes you need a lot of dependencies, gcc alone won't be enough.
Post Reply