Compiler distribution

Everything else that doesn't fall into one of the other PB categories.
Joubarbe
Enthusiast
Enthusiast
Posts: 756
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Compiler distribution

Post by Joubarbe »

Hello,

My current project is a map editor that allows the user to customize various options. So I generate PB code based on these options. The problem is that I need the result to be an independent application ; and to do so I need to compile the generated code. Legally speaking, am I allowed to distribute the PB compiler ? Or is there another way to do what I'm trying to do ?

Thanks.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3944
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Compiler distribution

Post by wilbert »

Of course you can't redistribute the compiler from the full version of PureBasic.
If you generate PB code, the receiver can buy PureBasic and use it or you can generate something other than PB code (for example data that is used by a standard application).
Windows (x64)
Raspberry Pi OS (Arm64)
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Compiler distribution

Post by Tenaja »

Come up with a parser or something instead. That way the customized options are just read from a text file.
Joubarbe
Enthusiast
Enthusiast
Posts: 756
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: Compiler distribution

Post by Joubarbe »

Tenaja wrote:Come up with a parser or something instead. That way the customized options are just read from a text file.
Hmm, that's my problem ; if I do that, the application will not be independent. The user would need to download another application to read the map and the options.

Let's develop a FreePB :) :) !
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Compiler distribution

Post by Tenaja »

Joubarbe wrote:
Tenaja wrote:Come up with a parser or something instead. That way the customized options are just read from a text file.
Hmm, that's my problem ; if I do that, the application will not be independent. The user would need to download another application to read the map and the options.

Let's develop a FreePB :) :) !
It seems you just need to learn how to do it... :mrgreen:

Or use FreeBasic. Not quite PB, but free to distribute.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3944
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Compiler distribution

Post by wilbert »

Joubarbe wrote:Hmm, that's my problem ; if I do that, the application will not be independent. The user would need to download another application to read the map and the options.
Can't you add the map and the options as a resource to an existing exe ?
Windows (x64)
Raspberry Pi OS (Arm64)
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Compiler distribution

Post by IdeasVacuum »

Difficult to advise when we do not really know what your app does, but I'm guessing that the options include adding/rearranging parts of your GUI? Search the forum for scripting options (Lua for example) - that is likely to be answer. The basic method is that the part of the GUI you allow to be changed is always built by a script, making truely customisable. If however you only want to assign, say, different http links to buttons, then a simple text file can be saved/re-loaded as the User requires.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Compiler distribution

Post by heartbone »

Joubarbe wrote:Hello,

My current project is a map editor that allows the user to customize various options. So I generate PB code based on these options. The problem is that I need the result to be an independent application ; and to do so I need to compile the generated code. Legally speaking, am I allowed to distribute the PB compiler ? Or is there another way to do what I'm trying to do ?

Thanks.
Point them towards the demo compiler download?
Keep it BASIC.
Joubarbe
Enthusiast
Enthusiast
Posts: 756
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: Compiler distribution

Post by Joubarbe »

Thanks for your answers. I think I'll give up on the idea of making independent apps from my project. I'm just gonna mix Read and Create features into one app.
User_Russian
Addict
Addict
Posts: 1630
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Compiler distribution

Post by User_Russian »

Maybe it makes sense to release a free the previous version of PB (for example 4.02), for non-commercial use.
Post Reply