Results 1 to 5 of 5

Thread: Borrowing GPL code

  1. #1
    Join Date
    Sep 2006
    Posts
    68
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Borrowing GPL code

    I want to use some code from another GPL project in my own (which is also GPL).

    I want to use about 15 lines almost as they are (seems no better way to do it then it is there).

    I was wondering where to credit the original author (problem is there are 3 listed in the C++ file I am copying from, no idea which one wrote this bit of code). Should I put it a the top, or in a comment just around the bits I copied?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Borrowing GPL code

    Put it in the header of the cpp file that uses the code and in the documentation of your program.

  3. #3
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Borrowing GPL code

    I sometimes wonder how much code you have to copy before you are obligated to give credit.

    In other words / similarly: where's the line between using techniques you have learned from other peoples code and copying other peoples code?
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Borrowing GPL code

    Quote Originally Posted by Michiel View Post
    I sometimes wonder how much code you have to copy before you are obligated to give credit.
    Anything, I guess.

  5. #5
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Borrowing GPL code

    Really? So if I just copy the word "if", I have to give credit?

    Ok, ok. If I copy a swap(a, b) function?

    What if I learn someone elses sorting algorithm by heart and then type it in myself, changing the variable-names?

    And what if I very carefully read someones entire program, get to understand the principles behind it and start from scratch using what I've learned?

    I just think about that stuff sometimes.
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

Similar Threads

  1. Qt 4.3.0 lots of Bugs!
    By VireX in forum Qt Programming
    Replies: 69
    Last Post: 20th June 2007, 22:05
  2. Pasting code from code tag in emacs
    By Gopala Krishna in forum General Discussion
    Replies: 0
    Last Post: 16th February 2007, 05:47
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  4. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.