Dear all,

I am working at a research institute in Germany and I would like to realize a project by means of gretl.

At the beginning I have to admit that I hopefully have quite detailled knowledge about time series in theory but I am not really a linux expert.

So I apologize for some inaccuracies in advance. The good news is that my collegue is a computer scientist and can assist me quite well.

 

We are looking for a straight-forward method to be able:

 

- to call gretl routines by c/c++ function or member calls (instead of using interactive scripts),

- writing and reading to/from the according data structures at c/c++ level,

- compiling all that stuff by gcc under linux.

 

Since we know that gretl itself is a lib written in c or c++ that should be possible.  

 

Finally my collegue and me will realize the software on a RaspberryPi 4.

At the moment we realize our trials on a virtual machine using VirtualBox (Ubuntu 64bit).

 

Similar to the situation reported HERE ...

https://www.mail-archive.com/gretl-users@gretlml.univpm.it/msg11637.html

… we are (despite all our efforts) not able to compile a c/c++ - program using the gretl-library.

 

From the topic point of view the nearest discussion in the gretl users mailing list is the issue reported by  Ignacio Diaz-Emparanza:

https://gretlml.univpm.it/hyperkitty/list/gretl-users@gretlml.univpm.it/message/XWKHIUWZUC6N4MVHILX3FFCDZM6ON74K/

 

We on our side tried to compile and link our code similar to the following scheme:

cc -g -O2 -Wall -I/usr/local/include \

  -I/usr/include/libxml2 \

  -I/usr/include/glib-2.0 \

  -I/usr/lib/x86_64-linux-gnu/glib-2.0/include \

  -DPREFIX=\"/usr/local\" -fopenmp \

  simple_client.c -o simple_client -L/usr/local/lib \

  -lgretl-1.0 -lm -lxml2 -lfftw3 -lglib-2.0 -lglib

 

We got an error message:  glib.h was not found!

 

We couldn't fix that problem even though we updated glib by "sudo apt-get install libglib2.0-dev".

 

So my questions would be as follows:

1. Is there a quite  detailled description on the method of the things we want to do (particularly in ubuntu systems and/or for Raspberry Pi 4)?

2. Even more helpful: is there anyone who might help us directly?

 

Any remarks would be helpful.

Thank you in advance.


Mit freundlichen Grüßen/Best regards

Dipl.-Math. Joachim Schmidt

Wissenschaftlicher Mitarbeiter
Forschungsbereich Prozesstechnik
Fachbereich Mess- und Automatisierungstechnik

Tel.: +49 (0) 3643 / 8684-182

j.schmidt@iab-weimar.de


http://iab-weimar.de/signature/FB_prozesstechnik/FaB_messtechnik/2.jpg

--------------------------------------------------------------------
IAB - INSTITUT FÜR ANGEWANDTE BAUFORSCHUNG WEIMAR gemeinnützige GmbH
--------------------------------------------------------------------
Über der Nonnenwiese 1     Institutsdirektor: Dr.-Ing. Ulrich Palzer
99428 Weimar
Tel.: +49 3643 8684-0
Fax.: +49 3643 8684-113
kontakt@iab-weimar.de                        USt.-IdNr. DE 278640272
www.iab-weimar.de                        Amtsgericht Jena HRB 507304
--------------------------------------------------------------------
Diese E-Mail ist vertraulich. Eine Veröffentlichung, Vervielfältigung oder Wiedergabe durch
Dritte ist unzulässig. Sind Sie nicht der Adressat informieren Sie bitte den Absender und
löschen Sie die E-Mail. Da die Nachricht weder verschlüsselt noch signiert ist, kann eine
Kenntnisnahme durch Dritte nicht ausgeschlossen werden. Die E-Mail kann auch durch Zugriff
Dritter verändert oder verfälscht werden.