-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I meet a question when I practice adding a new metric. #19
Comments
And I have another problem.When I run autoreconf ,terminal said the autoconf version could not be lower than 2.71,so I installed it.But i find that i can't run make in /Gyoto,it says: |
Hi, concerning your first issue, you need to remove the "/" symbol on the third line of 0.xml.txt: it should read |
Concerning your second problem : you said that you installed autoconf 2.71, but did you run it afterwards ? |
Thank you very much for responding to my questions, and Your help is very helpful.
***@***.***
…---- Replied Message ----
From
Thibaut ***@***.***>
Date
6/26/2024 00:18
To
***@***.***>
Cc
***@***.***>
,
***@***.***>
Subject
Re: [gyoto/Gyoto] I meet a question when I practice adding a new metric. (Issue #19)
Hi, concerning your first issue, you need to remove the "/" symbol on the third line of 0.xml.txt: it should read
<Metric plugin="test" kind="Kerr">
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Dear author
I meet a question when I practice adding a new metric.
I rename source file that named KerrBL.c to Kerr.c file, and I replace "KerrBL" with "Kerr" in Kerr.c file and files that are associated with Kerr.c file.
the associated files are placed in null/lib and null/include. and I proceed as follows:
1- choose a cool name;
2- copy this directory (plugins/null/) somewhere;
3- edit configure.ac, lib/Makefile.am and lib/InitPlug.C: replace any
occurrence of "null" with your cool name;
4- add new metrics and astrobjs as needed in lib/ and include/, the
gyoto source code is also full of examples;
5- edit lib/InitPlug.C to register your new classes (rename it to
CoolPlug.C if you wish);
6- add the name of the required C++ source files to the
libgyoto_null_la_SOURCES variable in lib/Makefile.am (this variable
should have been renamed to libgyoto__la_SOURCES by
now);
7- run autoreconf (whenever you edit any configure.ac or Makefile.am
file), then ./configure, make, make install...
8- if installing to default directories (/usr/local/lib), you may need
to run 'sudo ldconfig'
and the question is as follows:
$ gyoto 0.xml !test
WARNING: unable to load optional plug-in libgyoto-lorene.so
Reading parameter file: 0.xml
In gyoto.C: Error in Factory creation: Factory.C:189 in virtual void Gyoto::DOMErrorReporter::fatalError(const xercesc_3_2::SAXParseException&): expected end of tag 'Scenery'
0 xml.txt
configure ac.txt
GyotoKerr h.txt
InitPlug C.txt
Kerr C.txt
Makefile am.txt
The text was updated successfully, but these errors were encountered: