Page 1 of 1
Compiler distribution
Posted: Mon Aug 24, 2015 5:07 pm
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.
Re: Compiler distribution
Posted: Mon Aug 24, 2015 5:13 pm
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).
Re: Compiler distribution
Posted: Mon Aug 24, 2015 5:17 pm
by Tenaja
Come up with a parser or something instead. That way the customized options are just read from a text file.
Re: Compiler distribution
Posted: Mon Aug 24, 2015 5:45 pm
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

!
Re: Compiler distribution
Posted: Mon Aug 24, 2015 6:14 pm
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...
Or use FreeBasic. Not quite PB, but free to distribute.
Re: Compiler distribution
Posted: Mon Aug 24, 2015 7:26 pm
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 ?
Re: Compiler distribution
Posted: Mon Aug 24, 2015 7:36 pm
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.
Re: Compiler distribution
Posted: Mon Aug 24, 2015 7:41 pm
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?
Re: Compiler distribution
Posted: Mon Aug 24, 2015 7:52 pm
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.
Re: Compiler distribution
Posted: Tue Aug 25, 2015 9:08 am
by User_Russian
Maybe it makes sense to release a free the previous version of PB (for example 4.02), for non-commercial use.