add optional functionality [SOLVED]
Moderators: fgoudreault, mcote
Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
add optional functionality
Hello,
I'm trying to add a new functionality to ABINIT : LOTF (Learn On The Fly).
I set the folder which contains LOTF routines and modules in src/68_LOTF.
makemake and compilation are ok.
Now I would to put LOTF as "optional".
To do that I added the to config/specs/corelibs.conf the following lines:
176 [68_lotf]
177 abirules = no
178 optional = yes
but at the makemake I obtain:
[makemake] Generating Makefile.in for each directory
src/98_main/Makefile.am:88: DO_BUILD_68_LOTF does not appear in AM_CONDITIONAL
src/Makefile.am:32: DO_BUILD_68_LOTF does not appear in AM_CONDITIONAL
Makefile.am:648: DO_BUILD_68_LOTF does not appear in AM_CONDITIONAL
[makemake] Aborting now!
What I have to do ?
Have you any idea of my error?
I was looking for the doc in ~abinit/doc without success.
Thanks.
Best regards,
Marco
I'm trying to add a new functionality to ABINIT : LOTF (Learn On The Fly).
I set the folder which contains LOTF routines and modules in src/68_LOTF.
makemake and compilation are ok.
Now I would to put LOTF as "optional".
To do that I added the to config/specs/corelibs.conf the following lines:
176 [68_lotf]
177 abirules = no
178 optional = yes
but at the makemake I obtain:
[makemake] Generating Makefile.in for each directory
src/98_main/Makefile.am:88: DO_BUILD_68_LOTF does not appear in AM_CONDITIONAL
src/Makefile.am:32: DO_BUILD_68_LOTF does not appear in AM_CONDITIONAL
Makefile.am:648: DO_BUILD_68_LOTF does not appear in AM_CONDITIONAL
[makemake] Aborting now!
What I have to do ?
Have you any idea of my error?
I was looking for the doc in ~abinit/doc without success.
Thanks.
Best regards,
Marco
- Attachments
-
- abilint.log
- (206.86 KiB) Downloaded 527 times
Marco Mancini
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
Re: add optional functionality
You have to add a corresponding option in config/specs/options.conf, or else it will not make much sense to have the build of your directory optional.
This feature is not documented because it still is under test. For now, just look within options.conf to find examples of DO_BUILD_* options.
This feature is not documented because it still is under test. For now, just look within options.conf to find examples of DO_BUILD_* options.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: add optional functionality
Hello Yann,
thanks for your reply.
I was modifying the file config/specs/options.conf
The lines I added were:
[enable_lotf]
description = Activate LOTF functionality (EXPERIMENTAL)
default = no
status = new
define = HAVE_LOTF
I didn't know that the feature was under test.
And I think that when I have started to develop the file config/specs/options.conf was different
and it didn't contain DO_BUILD_* options.
Now I added:
conditional = DO_BUILD_68_LOTF
But I have the same error.
any idea?
Best regards,
Marco
thanks for your reply.
I was modifying the file config/specs/options.conf
The lines I added were:
[enable_lotf]
description = Activate LOTF functionality (EXPERIMENTAL)
default = no
status = new
define = HAVE_LOTF
I didn't know that the feature was under test.
And I think that when I have started to develop the file config/specs/options.conf was different
and it didn't contain DO_BUILD_* options.
Now I added:
conditional = DO_BUILD_68_LOTF
But I have the same error.
any idea?
Best regards,
Marco
Marco Mancini
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
Re: add optional functionality
I don't find anything in your private branch. Did you push it?
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: add optional functionality
Yann,
I pushed it right now.
reamark that the code is totally embryonal
Marco
I pushed it right now.
reamark that the code is totally embryonal
Marco
Marco Mancini
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
Re: add optional functionality
There is a typo in config/specs/options.conf for enable_lotf: "conditionals".
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: add optional functionality
Yann,
you are right but the problem subsists.
Marco
you are right but the problem subsists.
Marco
Marco Mancini
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
Re: add optional functionality [SOLVED]
Yann,
I am sorry.
I don't know why on my laptop it doesn't work but this morning
at the office it worked fine.
I was able to configure and compile with and without LOTF enabled.
So, for me this post is resolved.
Thanks again.
Best regards,
Marco
I am sorry.
I don't know why on my laptop it doesn't work but this morning
at the office it worked fine.
I was able to configure and compile with and without LOTF enabled.
So, for me this post is resolved.
Thanks again.
Best regards,
Marco
Marco Mancini
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE