basicprogramming.org


Welcome, Guest. Please login or register.
Did you miss your activation email?
Forum time; Jul 31. 2010, 01:22
Home Help Search Calendar Login Register
News: Have you got suggestions for BasicProgramming.org? Let's hear them!
Interested in creating your own programming language? Check out the QDepartment group!

+  BASIC programming forum
|-+  Basic Coding
| |-+  Basic Interpreters.
| | |-+  sdlBasic
| | | |-+  SDL Basic packaging.
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Reply Print
Author Topic: SDL Basic packaging.  (Read 371 times)
adric22
Jr. Member
**
Offline Offline

Posts: 18


« on: Dec 06. 2009, 21:39 » Reply with quote

I'm curious.. right now I'm just making this game for my own amusement.  But I fully expect many people might enjoy playing it when I'm done.  But I can't expect most people to go download and install SDLBasic before trying to execute my game.  Now, I realize the windows version is supposed to be able to create an all-in-one .EXE file, but this functionality appears broken because I can't get it to work.  But I essentially had two questions:

1) Would it be possible to make some kind of installer that is downloaded as a simple .EXE file that would install not only my game but the SDLBasic runtime too?  I'm guessing since the project is open-source there shouldn't be any legal reasons.

2) What about on Linux?  Now, I'm not currently a Linux user, but I'm pretty familiar with Linux and I've used various ports of Debian, Ubuntu, Red Hat, etc..  I know, for example, Ubuntu has the add/remove feature where you can select from existing software titles and it will just download it right to the computer with all of the dependencies.  Well, how hard would it be to get my finished game product accessible like that, if it were written in SDL Basic?  Would the Ubuntu/Debian package manager just know to grab SDL Basic, and is SDL Basic even downloadable from the Debian repositories?
Report to moderator   Logged
RetroMan
Jr. Member
**
Offline Offline

Posts: 28


« Reply #1 on: Dec 06. 2009, 23:03 » Reply with quote

Inno: http://www.jrsoftware.org/isinfo.php comes to mind as configurable Windows installer. Pretty much just have to wrap a sdlBASIC exe and your code... You'll have to deal with the user security cr*p in Vista and Win7...

The LINUX binding seems to work fine, at least in Ubuntu and so far my test programs have all wrapped as executable files...

Cheers!

Report to moderator   Logged
menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #2 on: Dec 06. 2009, 23:33 » Reply with quote

1) Would it be possible to make some kind of installer that is downloaded as a simple .EXE file that would install not only my game but the SDLBasic runtime too?  I'm guessing since the project is open-source there shouldn't be any legal reasons.

yes you can do that, as long as you include the license and make the source available. (the source does not have to be in the same download, the license typically has to be included with both.) this is for gpl-licensed works, i'm assuming (easy to check if you've downloaded it) sdlbasic is gpl.

Quote
2) Ubuntu has the add/remove feature where you can select from existing software titles and it will just download it right to the computer with all of the dependencies.  Well, how hard would it be to get my finished game product accessible like that, if it were written in SDL Basic?

tough to say, i don't know if it's easy to get into the repos but maybe it is. ubuntu and debian have their own repos but the same utilities to download and install: apt, apt-get, synaptic. (ubuntu will probably ditch synaptic but not the backend, apt.) but not everything made for ubuntu uses their package manager.

you can make an unofficial .deb package, which then installs with gdebi (the offline .deb installer... why synaptic can't do it i have no idea) but it must be easier to just write a little bash script (like dos batch, it's just a series of command line instructions, as i'm sure you know) that installs to /opt/sdlbasicVERSIONNO instead. i would call it it something like "sdlbas4" because sdlBasic (sudo apt-get install sdlbasic) may already be installed on the target machine. you could be considerate and make the script ask where to install. "redhat" uses yum.
« Last Edit: Dec 06. 2009, 23:34 by menn » Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
RetroMan
Jr. Member
**
Offline Offline

Posts: 28


« Reply #3 on: Dec 07. 2009, 01:37 » Reply with quote

Creating .debs is a PITA... Not to mention that a user would need root access or similar to install it... On a home PC that'd be no big deal, but a box at work might be problematic... I'd just wrap the whole thing up in a .tgz or tar.gz package and let the user download and unarchive it in their home directory where they have permissions.

No muss, no fuss.

Cheers!
Report to moderator   Logged
menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #4 on: Dec 07. 2009, 01:46 » Reply with quote

I'd just wrap the whole thing up in a .tgz or tar.gz package and let the user download and unarchive it in their home directory where they have permissions.

yeah, that's good enough for mozilla, it's good enough for sdlbasic.
Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
aurelB
Hero Member
*****
Offline Offline

Posts: 663



WWW
« Reply #5 on: Dec 07. 2009, 06:39 » Reply with quote

Yes it is crap becose binding dont work for windows Angry
I'm not finish testing PSnake code for binding Tongue
But i think that would be posibile add in one file sdl runtime with source
for example with KCDan packager, i made some tests with this program in
past and work ok, maby little slower.
Report to moderator   Logged

Cybermonkey
Global Moderator
Hero Member
*****
Offline Offline

Posts: 930



WWW
« Reply #6 on: Dec 07. 2009, 08:15 » Reply with quote

1. Binding works for Windows! I tried it on Vista and XP, no errors at all. Have you installed the "official" sdlBasic via the installer? (Maybe use the suggested folders).

2. So far as I know, sdlBasic ist licensed under the LGPL (like in SDL) so that you needn't provide the source.
Report to moderator   Logged

Best wishes,
Cybermonkey
aurelB
Hero Member
*****
Offline Offline

Posts: 663



WWW
« Reply #7 on: Dec 07. 2009, 09:00 » Reply with quote

Yes i install official release and dont work on my both computers with winXP
why? i really dont understand Huh
Like you see i'm not the only one which dont work...
Report to moderator   Logged

menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #8 on: Dec 07. 2009, 09:03 » Reply with quote

2. So far as I know, sdlBasic ist licensed under the LGPL (like in SDL) so that you needn't provide the source.

you'll need to check what license it is if you're going to redistribute it.

lgpl doesn't mean you don't have to provide the source. it means you do have to make the source available (especially if you change it,) but you can include it in non-free (proprietary) projects.

gpl projects (libraries) cannot be distributed with non-gpl projects that hook them. lgpl allows such hooking from non-free projects- that's the biggest difference. (so if you make a proprietary game, it can hook/use/be distributed with sdl, because sdl is lgpl. if it was only gpl, the game would have to be too.)
Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
Cybermonkey
Global Moderator
Hero Member
*****
Offline Offline

Posts: 930



WWW
« Reply #9 on: Dec 07. 2009, 09:14 » Reply with quote

you'll need to check what license it is if you're going to redistribute it.

lgpl doesn't mean you don't have to provide the source. it means you do have to make the source available (especially if you change it,) but you can include it in non-free (proprietary) projects.

gpl projects (libraries) cannot be distributed with non-gpl projects that hook them. lgpl allows such hooking from non-free projects- that's the biggest difference. (so if you make a proprietary game, it can hook/use/be distributed with sdl, because sdl is lgpl. if it was only gpl, the game would have to be too.)
Erm, yes that's what I meant. You did say this of course much more clearer ...  Wink
Report to moderator   Logged

Best wishes,
Cybermonkey
menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #10 on: Dec 07. 2009, 10:23 » Reply with quote

Erm, yes that's what I meant. You did say this of course much more clearer ...  Wink

lol. and sdlbasic is gpl anyway. i know it seems tedious, but it's all so cool projects like sdlbasic can continue to be maintained and enjoyed even when the authors have abandoned it. that part of the process is really cool.
Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
asymetrix
Newbie
*
Offline Offline

Posts: 4


« Reply #11 on: Dec 07. 2009, 14:44 » Reply with quote


Just use 7zip self extraction & execution module :

http://7zsfx.solta.ru/en/
Report to moderator   Logged
Cybermonkey
Global Moderator
Hero Member
*****
Offline Offline

Posts: 930



WWW
« Reply #12 on: Dec 07. 2009, 14:54 » Reply with quote

License:
Quote
sdlBasic Runtime License
 

 Copyright (C) 2001-2005  David Cuny and sdlBasic team.
 
 sdlBasic runtime is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public License here below for more details.
 
 

 
GNU LIBRARY GENERAL PUBLIC LICENSE
 
==================================
 
Version 2, June 1991
 

  Copyright (C) 1991 Free Software Foundation, Inc.
                     675 Mass Ave, Cambridge, MA 02139, USA
  Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
 
 [This is the first released version of the library GPL.  It is numbered 2 because it goes with version 2 of the ordinary GPL.]
and so on ...
Report to moderator   Logged

Best wishes,
Cybermonkey
menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #13 on: Dec 07. 2009, 18:59 » Reply with quote

oh! oh, sorry you're right, sdlbasic is LGPL, just like sdl itself. i thought it was a GPL project using the LPGL sdl lib (which would be fine too of course.) mea culpa.

actually for a binding-interpreter kind of "compiler" (it's not a compiler but acts like one) lgpl is a pretty good choice. it means you can "compile" non-gpl projects, which in fairness is exactly what stallman's gcc compiler does.
Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
asymetrix
Newbie
*
Offline Offline

Posts: 4


« Reply #14 on: Dec 08. 2009, 16:55 » Reply with quote

I had some issues with SDLBasic make executable function, it did not like the fact the default install was in "Program Files", maybe the space broke it,as changing the path of my file solved the problem.

I would really like to see a proper compiler for SDLBasic.
Report to moderator   Logged
Pages: [1] 2 Go Up Reply Print 
« previous next »
Jump to:  
Atom RDF RSS 0.91 RSS 2.0


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!