Skip to content

Fortran 2018 interface bindings to the XMPP client library libstrophe

License

Notifications You must be signed in to change notification settings

interkosmos/fortran-xmpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fortran-xmpp

Build

A collection of Fortran 2018 interface bindings to the lightweight XMPP client library libstrophe.

Dependencies

The package libstrophe has to be installed with development headers. On FreeBSD, run:

# pkg install net-im/libstrophe

On Linux, instead:

# apt-get install libstrophe0 libstrophe-dev

Build Instructions

Build and install the Fortran library using the provided Makefile:

$ make
$ make install PREFIX=/opt

Or, use the Fortran Package Manager:

$ fpm build --profile release

Link your Fortran programs against libfortran-xmpp.a and pkg-config --libs libstrophe openssl expat zlib.

Fortran Package Manager

You can add fortran-xmpp as an FPM dependency:

[dependencies]
fortran-xmpp = { git = "https://github.com/interkosmos/fortran-xmpp.git" }

Examples

Some example programs can be found in directory examples/:

  • basic – connects to an XMPP server.
  • bot – implements a simple bot.
  • roster – prints contact list.
  • uuid – outputs UUID.

Build the examples by running:

$ make examples

Further Reading

Licence

ISC