Oppure

Loading
27/11/10 3:29
popp109
Salve sto realizzando un nuovo linguaggio di programmazione e ho utilizzato alcune librerie opensource.Volevo sapere se sono costretto a rilasciare il mio codice sorgente a tutti o posso consegnare tranquillamente solo l'eseguibile?
aaa
27/11/10 8:36
TheKaneB
"open source" è un termine generico.

Elenca "esattamente" tutte le librerie che usi, e ti insegnerò ad interpretare le relative licenze.
Esistono numerose licenze definibili Open Source, alcune delle quali ti consentono senza problemi di sviluppare progetti commerciali chiusi, altre no, altre ancora si ma sotto specifiche condizioni.
aaa
27/11/10 10:37
popp109
Allora utilizzo:
codeblocks come ide
codeblocks.org

mingw
mingw.org

xmlstorage
foxplanet.de/xmlstorage/

fltk
fltk.org/

Avrei intenzione di utilizzare anche curl e 39dll
aaa
27/11/10 12:32
TheKaneB
Postato originariamente da popp109:

Allora utilizzo:
codeblocks come ide
codeblocks.org

Questo è un IDE, il che non implica niente. Puoi usarlo per farci quello che ti pare, anche programmi closed source, senza alcun problema.

mingw
mingw.org



questo è un compilatore. Valgono le stesse considerazioni fatte per l'IDE.



navigando nel codice, puoi leggere nell'header principale questa riga:

Redistributions in binary form must reproduce the above copyright
	notice, this list of conditions and the following disclaimer in
	the documentation and/or other materials provided with the
	distribution.


Dice che puoi ridistribuire in forma binaria, riproducendo (quindi copiando e incollando da qualche parte) l'intera nota del copyright. Quindi nel tuo programma, dovresti inserire un file in cui dici "Alcune parti di questo programma sono basate su xmlstorage, http vattelappesca punto com" e inserire in coda al file la riproduzione esatta della nota di copyright. Ti basta copiare e incollare la nota di copyright che c'è in xmlstorage.h:
/*

  All rights reserved.

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are met:

  * Redistributions of source code must retain the above copyright
	notice, this list of conditions and the following disclaimer.
  * Redistributions in binary form must reproduce the above copyright
	notice, this list of conditions and the following disclaimer in
	the documentation and/or other materials provided with the
	distribution.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  POSSIBILITY OF SUCH DAMAGE.

*/



fltk
fltk.org/



sul sito leggo questo: fltk.org/…

FLTK comes with complete free source code. FLTK is available under the terms of the GNU Library General Public License.


We have amended the LGPL to explicitly allow static linking of FLTK (or any modified version of FLTK) to your software. The LGPL is not clear on this and we definately want to allow it.


In pratica hanno adottato la LGPL, che consente di usare la libreria per programmi closed source a patto di distribuirla come libreria dinamica (.dll su windows, .so su linux). Ma allo stesso tempo hanno aggiunto anche una clausula (in più rispetto alla LGPL) che ti consente anche di linkarla staticamente dentro il progetto (quindi senza libreria esterna ma compilata insieme all'eseguibile).
Anche in questo caso sei a posto. Ricordati solo di riportare la nota di copyright e l'url del sito ufficiale della libreria, da qualche parte nel tuo programma.

Avrei intenzione di utilizzare anche curl e 39dll


Adesso che hai capito il meccanismo, prova a cercare le condizioni di licenza di queste altre due librerie e commentale qui. Se c'è qualcosa che non ti è chiaro te lo spiego io :-)
aaa
27/11/10 14:15
popp109
Grazie è tutto chiaro quello che hai scritto.
Per le altre librerie ho trovato nella cartella principale di curl un file con su scritto:

COPYRIGHT AND PERMISSION NOTICE

Copyright (c) 1996 - 2009, Daniel Stenberg, <daniel@haxx.se>.

All rights reserved.

Permission to use, copy, modify, and distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright
notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of a copyright holder shall not
be used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization of the copyright holder.

Anche quì posso utilizzare la libreria a condizione che il diritto d'autore sia
presente nel mio programma.

Per la 39dll non ho trovato nessuna nota.

Ecco la fonte:

host-a.net/u/39ster/…

aaa
27/11/10 17:24
TheKaneB
Postato originariamente da popp109:

Grazie è tutto chiaro quello che hai scritto.
Per le altre librerie ho trovato nella cartella principale di curl un file con su scritto:

COPYRIGHT AND PERMISSION NOTICE

Copyright (c) 1996 - 2009, Daniel Stenberg, <daniel@haxx.se>.

All rights reserved.

Permission to use, copy, modify, and distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright
notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of a copyright holder shall not
be used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization of the copyright holder.

Anche quì posso utilizzare la libreria a condizione che il diritto d'autore sia
presente nel mio programma.

Per la 39dll non ho trovato nessuna nota.

Ecco la fonte:

host-a.net/u/39ster/…



perfetto, vedo che hai capito perfettamente il meccanismo :-)

se una certa libreria non presenta nessuna nota di copyright, implicitamente vale come "Tutti i diritti riservati" per la legge italiana sul diritto d'autore (e probabilmente anche per le leggi di molti altri stati). Quindi evita quella libreria, oppure scrivi all'autore e fatti specificare le clausule della licenza.

Questa licenza deve essere pubblicamente accessibile o, almeno, dovrebbe mandarti un'autorizzazione scritta tramite fax o lettera raccomandata (in modo tale da dimostrare davanti alla legge che hai il permesso di usarla per i tuoi scopi).

Comunque, a prescindere, eviterei le librerie senza notizie sul copyright. Denotano una scarsa attenzione da parte dell'autore quindi, per induzione, anche il suo codice potrebbe essere scarso :D
aaa
17/12/10 10:33
popp109
Scusami se ti rispondo ancora adesso.
Avevo letto il tuo ultimo post ma non avevo avuto il tempo di rispondere.

tutto chiaro grazie.
aaa