I am making a GPLv2 project, and I need to add the GPL license notice to the generated…
- User
I am making a GPLv2 project, and I need to add the GPL license notice to the generated files, is there a way to do it from the application itself instead of manually add it to each generated file?
So far, the only header it adds is this:
/////////////////////////////////////////////////////////////////////////// // C++ code generated with wxFormBuilder (version 3.10.1) // http://www.wxformbuilder.org/ // // PLEASE DO NOT EDIT THIS FILE! ///////////////////////////////////////////////////////////////////////////
- Assistant
- User
Can it be done from the wxFormBuilder interface? It doesn't look like have a template to edit
- Assistant
- User
If I am making a GPLv2 project, do I have to add the GPL notice to wxFormBuilder autogenerated files, or just my own code and leave these with their own notice?
- Assistant
- User
I checked in the github repository and found this issue and its answer from one of the developers:
Hello and thank you developers for this program.
I was wondering of the license of the C++/Python/Lua/XRC code generated by wxFormBuilder; Should I distribute it with GPLv2? (I am assuming so by default as this is the main usage of the program. Still, some code-generation programs like GCC do have different licenses for the generated code, so I brought up an explicit question. Thanks)
Thank you!
Answered by sodevel on Dec 29, 2020 wxFormBuilder does create source code of the design that you create, that's basically all. It does not create anything on its own nor does it compile the source code. To my understanding the generated source code of all generators do not apply any license so you are free to apply any license you want. However the generated code uses the wxWidgets framework so at best it's limitations apply.
- Assistant
- User
yeah the licenses can be combined as you said, so if I don't modify in any way these generated codes, it is safe for me to just leave them as they are instead of manually adding the GPL notice or I am forced to add the GPL notice even if I don't modify them in any way or capacity?
- Assistant
- User
Perfect, I will leave that as it is, what about header and source files, do I have to add the notice to both of them or just the header or just the source?
- Assistant
- User
I see I did that. Now In my linker settings of my codeblocks project, I have defined the Debug build option like this:
wx-config --version=3.1 --static=yes --unicode=yes --debug=yes --libsBut my Release build option, this part is empty, did I forgot to write it there too? How would it be for Release if I missed it?
- Assistant
Yes, you need to configure the Release build settings for your Code::Blocks project as well, to ensure it links correctly with the wxWidgets libraries in Release mode. The command you use for the Debug build specifies the use of wxWidgets version 3.1 with static linking, Unicode support, and debug libraries. For the Release build, you should adjust this command to fetch the corresponding release libraries, which are typically optimized for size and speed and don't include debug information.
- User
My PROJECT_DIR variable in my pre-build steps sometimes have a / at the and sometimes don't. so In one of my project I got this working:
mv -f (PROJECT_DIR)/include 2>/dev/null ; mv -f (PROJECT_DIR)/src 2>/dev/null
- Assistant