nobreak / mod_onesignal

An ejabberd modul to sent push notifications via OpenSignal to receivers they are offline.
MIT License
2 stars 3 forks source link

Beam file not being generated..compiler error #1

Open k-sathireddy opened 7 years ago

k-sathireddy commented 7 years ago

I want to implement push notifications with ejabberd server. I followed instructions as mentioned here:

but i got the following issues:

/Users/my-ejabberd/lib/ejabberd-16.12.34/include/jlib.hrl:21: can't find include file "ns.hrl" /Users/my-ejabberd/lib/ejabberd-16.12.34/include/jlib.hrl:22: can't find include file "fxml.hrl" src/mod_onesignal.erl:43: undefined macro 'INFO_MSG/2' src/mod_onesignal.erl:50: undefined macro 'INFO_MSG/2' src/mod_onesignal.erl:73: undefined macro 'INFO_MSG/2' /Users/my-ejabberd/lib/ejabberd-16.12.34/include/jlib.hrl:426: record xmlel undefined /Users/my-ejabberd/lib/ejabberd-16.12.34/include/jlib.hrl:466: type xmlel() undefined src/mod_onesignal.erl:33: function send_notice/3 undefined src/mod_onesignal.erl:33: function start/2 undefined src/mod_onesignal.erl:33: function stop/1 undefined src/mod_onesignal.erl:31: Warning: behaviour gen_mod undefined

If i included the "-include("logger.hrl")." i got the following error:

Recompile: src/mod_onesignal src/mod_onesignal.erl: undefined parse transform 'lager_transform'

Please answer it as soon as possible.

lakmalniranga commented 5 years ago

I have got the similar issue on ejabberd-18.09 - Ubuntu 18.04.1 LTS

src/mod_onesignal.erl:39: can't find include file "ejabberd.hrl" src/mod_onesignal.erl:40: can't find include file "jlib.hrl" src/mod_onesignal.erl:43: undefined macro 'INFO_MSG/2' src/mod_onesignal.erl:50: undefined macro 'INFO_MSG/2' src/mod_onesignal.erl:73: undefined macro 'INFO_MSG/2' src/mod_onesignal.erl:33: function send_notice/3 undefined src/mod_onesignal.erl:33: function start/2 undefined src/mod_onesignal.erl:33: function stop/1 undefined src/mod_onesignal.erl:31: Warning: behaviour gen_mod undefined