mod_restful icon indicating copy to clipboard operation
mod_restful copied to clipboard

How to compile this under windows?

Open Necrowizard opened this issue 10 years ago • 2 comments

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?

Necrowizard avatar Jul 14 '15 12:07 Necrowizard

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".

jadahl avatar Jul 27 '15 03:07 jadahl

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

zxcfer avatar Sep 11 '15 04:09 zxcfer