Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
C/C++ - Librerie opensource nel mio progetto,sono costretto a rilasciare il codice sorgente?
Forum - C/C++ - Librerie opensource nel mio progetto,sono costretto a rilasciare il codice sorgente?

Avatar
popp109 (Normal User)
Rookie


Messaggi: 27
Iscritto: 27/11/2010

Segnala al moderatore
Postato alle 4:29
Sabato, 27/11/2010
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?

PM
Avatar
TheKaneB (Member)
Guru^2


Messaggi: 1792
Iscritto: 26/06/2009

Up
5
Down
V
Segnala al moderatore
Postato alle 13:32
Sabato, 27/11/2010
Testo quotato

Postato originariamente da popp109:

Allora utilizzo:
codeblocks come ide
http://www.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.

Testo quotato




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

Testo quotato




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

Codice sorgente - presumibilmente Delphi

  1. Redistributions in binary form must reproduce the above copyright
  2.         notice, this list of conditions and the following disclaimer in
  3.         the documentation and/or other materials provided with the
  4.         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:
Codice sorgente - presumibilmente Delphi

  1. /*
  2.  
  3.   All rights reserved.
  4.  
  5.   Redistribution and use in source and binary forms, with or without
  6.   modification, are permitted provided that the following conditions are met:
  7.  
  8.   * Redistributions of source code must retain the above copyright
  9.         notice, this list of conditions and the following disclaimer.
  10.   * Redistributions in binary form must reproduce the above copyright
  11.         notice, this list of conditions and the following disclaimer in
  12.         the documentation and/or other materials provided with the
  13.         distribution.
  14.  
  15.   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  16.   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  17.   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  18.   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  19.   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  20.   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  21.   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  22.   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  23.   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  24.   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  25.   POSSIBILITY OF SUCH DAMAGE.
  26.  
  27. */




Testo quotato




sul sito leggo questo: http://www.fltk.org/articles.php?L364+I0+TFAQ+P1+Q

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.

Testo quotato


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 :-)

Ottima risposta! - pierotofy - 27/11/10 17:58
PM
Avatar
TheKaneB (Member)
Guru^2


Messaggi: 1792
Iscritto: 26/06/2009

Up
1
Down
V
Segnala al moderatore
Postato alle 9:36
Sabato, 27/11/2010
"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.

PM
Avatar
TheKaneB (Member)
Guru^2


Messaggi: 1792
Iscritto: 26/06/2009

Up
1
Down
V
Segnala al moderatore
Postato alle 18:24
Sabato, 27/11/2010
Testo quotato

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:

http://www.host-a.net/u/39ster/39dllV25.zip




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

PM
Avatar
popp109 (Normal User)
Rookie


Messaggi: 27
Iscritto: 27/11/2010

Up
0
Down
V
Segnala al moderatore
Postato alle 11:37
Sabato, 27/11/2010
Allora utilizzo:
codeblocks come ide
http://www.codeblocks.org

mingw
http://www.mingw.org

xmlstorage
http://www.foxplanet.de/xmlstorage/

fltk
http://www.fltk.org/

Avrei intenzione di utilizzare anche curl e 39dll

PM
Avatar
popp109 (Normal User)
Rookie


Messaggi: 27
Iscritto: 27/11/2010

Up
0
Down
V
Segnala al moderatore
Postato alle 15:15
Sabato, 27/11/2010
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:

http://www.host-a.net/u/39ster/39dllV25.zip


PM
Avatar
popp109 (Normal User)
Rookie


Messaggi: 27
Iscritto: 27/11/2010

Up
0
Down
V
Segnala al moderatore
Postato alle 11:33
Venerdì, 17/12/2010
Scusami se ti rispondo ancora adesso.
Avevo letto il tuo ultimo post ma non avevo avuto il tempo di rispondere.

tutto chiaro grazie.

PM