Closed yurivict closed 6 years ago
It comes from extras.f90
in the prg/
folder. When issuing make dftd3
, it is compiled automatically (at least in my environment). Note, that if you only want to build the library (as with make lib
), you won't need either main.f90
or extras.f90
.
I think you forgot to link the module in https://github.com/dftbplus/dftbplus/tree/master/external/dftd3.
It should have origin
linked to dftd3-lib
.
I don't understand your problem. If you download the dftd3-dependency via ./utils/geo_opt_externals
as explained in the installation guide, the content of origin
is exactly the dftd3-lib
project, including the lib/
and prg/
folders. During the build of DFTB+, we of course only build the content of the lib/
as we don't need to build the stand-alone dftd3 binary.
By the way, please note, that DFTB+ and dftd3-lib have incompatible licenses, so those sources can not be distributed together, and a build containing both sources can also not be distributed...
dftd3-lib is GPLv1 https://github.com/dftbplus/dftd3-lib/blob/master/LICENSE, and DFTB++ is GPLv3: https://github.com/dftbplus/dftbplus/blob/master/LICENSE.
IANAL, but aren't two GPL licenses compatible because they are both GPL?
Unfortunately LGPL3 (not GPL3) for DFTB+ and GPL 1 (only) for dftd3-lib, which is an incompatible combination: https://www.gnu.org/licenses/license-list.html
Thank you, I never knew this!
What if dftd3-lib
is made into a separate port, instead of bundling it with DFTD++? Obviously, there is is lot of other software that has all sorts of licenses, and they depend on each other, but don't include each other, and they seem to be fine?
Oh, I've just realized, that the GPLv1 license of dftd3-lib does actually contain the "any later version" option, so according to the GPL compatibility matrix you could indeed link them together. The resulting code would have then the GPLv3 license.
Ok, thanks, I will change the overall license to GPLv3 then.
While trying to create the FreeBSD port, I get this error:
Where 'dftd3_extras.mod' should come from?