It is currently Wed May 27, 2020 12:12 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: (WIP) Cross-Platform Compiler using Windows Linux Subsystem
PostPosted: Sun Oct 27, 2019 10:10 pm 
Offline
User
User

Joined: Wed Sep 10, 2014 1:40 am
Posts: 40
Location: United Kingdom
Very much a work in progress, but I'm quite excited with progress so far so I thought I'd blog a little about what I'm up to.

PBCC - PureBasic Cross-Compiler Tool
Utilising Windows 10's Windows Linux Subsystem architecture, I wanted to create a tool that would make compiling for different target platforms as easy as using one command-line tool, and as such started developing this application.

A console application (based off my General Purpose Console Interface) where you can specify Windows 32/64bit and Linux 64bit compiler paths, and then compile your projects by simply calling either win32, win64, linux64 followed by the standard command line switches.

Under the hood is also logic and gubbins to handle such things like Windows directory paths within the Linux subsystem, as well as the little nuances between the different platform compilers.

Screenshot
Image

Here's a screenshot of the tool in it's infantile stages in action. For this example I've already configured the paths of 3 different compilers.
When a compiler is added to the tool's config, it exposes a relevant quick-command to the commands available (win32, win64, linux64) which you can then use instead of pbcompiler ....

Release?
It's not quite ready yet - I still have a lot more testing and optimisation, and a few bugs to sort out (namely FASM not running correctly in WSL) to do before I'm happy for it to be released to the public, but once it's ready it will be released for free.

_________________
Regards!

Mike


Top
 Profile  
Reply with quote  
 Post subject: Re: (WIP) Cross-Platform Compiler using Windows Linux Subsys
PostPosted: Mon Oct 28, 2019 9:41 pm 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 4707
Location: Germany
!ThumpUp!

But you can install different version and flavours of Linux in WSL.
Aren't there any differences?
SuSE is (very) different to Debian/Ubuntu

Have you tested already WSL 2 ?


Top
 Profile  
Reply with quote  
 Post subject: Re: (WIP) Cross-Platform Compiler using Windows Linux Subsys
PostPosted: Mon Oct 28, 2019 10:47 pm 
Offline
User
User

Joined: Wed Sep 10, 2014 1:40 am
Posts: 40
Location: United Kingdom
infratec wrote:
!ThumpUp!

But you can install different version and flavours of Linux in WSL.
Aren't there any differences?
SuSE is (very) different to Debian/Ubuntu

Have you tested already WSL 2 ?



So far my workflow is to get Ubuntu working well as a distro and then work with the other available distros to make any adjustments needed. As it stands I'm at the position where I'm considering just how much I want it to do - from just handling the file system gracefully and guiding a user to apply a fix to FASM by installing it into the distro and have the tool find it and create a symlink in place of the one within the compiler's directory (as the one packaged with Purebasic is throwing a 'Exec format error'), to handling the check install, install shell scripts, and onboarding compilers into a local directory to the cross-compiler tool... And whatever else comes to mind haha

Initial testing release will probably just include the former, and a more full release the latter :) As for WSL 2, as soon as WSL is fully working within the tool I'll begin to explore it to see what adjustments need to be considered to support both

_________________
Regards!

Mike


Top
 Profile  
Reply with quote  
 Post subject: Re: (WIP) Cross-Platform Compiler using Windows Linux Subsys
PostPosted: Wed Nov 13, 2019 10:00 pm 
Offline
User
User

Joined: Wed Sep 10, 2014 1:40 am
Posts: 40
Location: United Kingdom
Minor update to report:

FASM issue resolved. The one bundled with PureBasic appears to be the x86_64 version of FASM which doesn't place nice with WSL, so adding the feature to onboard (copy just the essential files from a PureBasic installation directory into a local directory) and replace the existing FASM binary with a x64 version.

Tested and working with a simple console Hello World application, more testing will be done to determine what can and cannot be produced.

Plans to create an accompanying GUI tool to manage compilers, build project files, as well as allow it to be integrated into PureBasic IDE as a tool so you can either call the tool from the menu, or a short cut and compile to multiple compilers and platforms at a few clicks of a button...

More to follow

_________________
Regards!

Mike


Top
 Profile  
Reply with quote  
 Post subject: Re: (WIP) Cross-Platform Compiler using Windows Linux Subsys
PostPosted: Thu Nov 14, 2019 11:21 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14063
Location: France
Interesting project !


Top
 Profile  
Reply with quote  
 Post subject: Re: (WIP) Cross-Platform Compiler using Windows Linux Subsys
PostPosted: Thu Nov 21, 2019 2:15 pm 
Offline
New User
New User

Joined: Fri May 31, 2013 7:58 am
Posts: 4
Very good project ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: (WIP) Cross-Platform Compiler using Windows Linux Subsys
PostPosted: Fri Jan 31, 2020 12:14 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Mar 25, 2004 2:15 pm
Posts: 721
Location: Spain
:shock: Wow! I was missing this interesting project!

_________________
PB 5.7x, PureVision User.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye