Closed bswstudiosgit closed 5 years ago
I am using erlang-18.0 .
In the README file I see no mention about what erlang version it requires. But, as you can see, it requires something newer than 18.0 to compile. This library should work with recent ejabberd, which requires Erlang/OTP 19.1.
In conclusion, try installing Erlang 19, or anything newer that you can find, and comment here if it compiles correctly or still fails.
Hi @badlop, I switched to erlang-19.0 now. make
worked this time . But when I try make spec
now I get this error
`
make spec
erl -noinput +B -pa ebin -pa deps/*/ebin -eval \
'case fxml_gen:compile("specs/xmpp_codec.spec", [{add_type_specs, xmpp_element},
{erl_dir,
"src"}, {hrl_dir, "include"}]) of ok -> halt(0); _ -> halt(1) end.'
failed to compile "specs/xmpp_codec.spec": {'EXIT',
{{badrecord,dict},
[{dict,filter_dict,2,
[{file,"dict.erl"},{line,466}]},
{erl_types,
t_opaque_from_records,1,
[{file,"erl_types.erl"},
{line,750}]},
{fxml_gen,t_remote,2,
[{file,"src/fxml_gen.erl"},
{line,2749}]},
{fxml_gen,get_label_type,5,
[{file,"src/fxml_gen.erl"},
{line,2201}]},
{fxml_gen,
'-get_types/3-fun-0-',5,
[{file,"src/fxml_gen.erl"},
{line,2169}]},
{lists,map,2,
[{file,"lists.erl"},
{line,1239}]},
{fxml_gen,
'-get_types/3-fun-1-',5,
[{file,"src/fxml_gen.erl"},
{line,2167}]},
{lists,foldl,3,
[{file,"lists.erl"},
{line,1263}]}]}}
make: *** [spec] Error 1
`
EDIT I switched again to erlang-20.0. Everything works fine now.
I updated the README to mention about the minimal Erlang version: https://github.com/processone/xmpp/commit/7776a08852b3ea8874f904dbf7d14e0f210999ca
I followed these steps
`
I am using erlang-18.0 .