How to compile this under windows?
Hey there,
I've been trying to compile this under windows for the whole day already, and I don't have much of a clue of what's wrong.
This is what I've been doing so far:
- installed MinGW so that make.exe works
- got the master branch of this @https://github.com/jadahl/mod_restful
- got the release source of 15.06 @https://github.com/processone/ejabberd/releases/tag/15.06
I extracted both in to the same directory (they needed to be at the same level, right?) but I keep getting errors like:
erlc: Error executing 'erl.exe': 2erlc -pa ./ebin -I ./include -o ./ebin src/mod_restful.erl erlc: Error executing 'erl.exe': 2erlc -pa ./ebin -I ./include -o ./ebin src/mod_restful_admin.erl erlc: Error executing 'erl.exe': 2erlc -pa ./ebin -I ./include -o ./ebin src/mod_restful_register.erl erlc: Error executing 'erl.exe': 2erlc -pa ./ebin -I ./include -o ./ebin src/mod_restful_mochinum.erl erlc: Error executing 'erl.exe': 2erlc -pa ./ebin -I ./include -o ./ebin src/mod_restful_mochijson2.erl
it does not say what's wrong... whether is my environment or the make file, or anything else. Or Is there a precompiled .beam file that I can just download from some place?
Sorry, I have never done any Erlang development on Windows so I have no idea what might be wrong. There are no precompiled .beam files though. Note that you need to have a ejabberd checkout in the parent direcotyr in a directory called "ejabberd".
I have installed Ejabberd from official installers, and just used the erlc included, example:
E:\ejabberd-15.07\bin\erlc -I ./include -I E:/ejabberd-15.07/lib -DNO_EXT_LIB -o ./ebin src\mod_restful.erl