alavrik / piqi-erlang

Protocol Buffers, JSON, XML data serialization system for Erlang
http://piqi.org/doc/erlang
Apache License 2.0
68 stars 28 forks source link

Are there header files missing? #11

Closed sejnub closed 11 years ago

sejnub commented 11 years ago

There are some errors I am unable to erase. Is it possible that there are some include files missing? For example the one that defines the type piqi_tools_format()?

ERRORS

Description Resource Path Location Type

record piqi_rpc_request undefined piqi_tools.erl c:/Users/BTC AG/workspace/piqi-erlang/src/piqi_tools.erl line 317 Erlang Problems

type piqi_rpc_response() undefined piqi_tools.erl c:/Users/BTC AG/workspace/piqi-erlang/src/piqi_tools.erl line 334 Erlang Problems

can't find include file "piqi_rpc_piqi.hrl" piqi_tools.erl c:/Users/BTC AG/workspace/piqi-erlang/src/piqi_tools.erl line 48 Erlang Problems

type piqi_tools_format() undefined piqi_tools.erl c:/Users/BTC AG/workspace/piqi-erlang/src/piqi_tools.erl line 435 Erlang Problems

record piqi_tools_convert_output undefined piqi_tools.erl c:/Users/BTC AG/workspace/piqi-erlang/src/piqi_tools.erl line 420 Erlang Problems

record piqi_tools_convert_input undefined piqi_tools.erl c:/Users/BTC AG/workspace/piqi-erlang/src/piqi_tools.erl line 407 Erlang Problems

can't find include file "piqi_tools_piqi.hrl" piqi_tools.hrl c:/Users/BTC AG/workspace/piqi-erlang/include/piqi_tools.hrl line 19 Erlang Problems

type piqi_tools_format() undefined piqi_tools.hrl c:/Users/BTC AG/workspace/piqi-erlang/include/piqi_tools.hrl line 24 Erlang Problems

record piqi_tools_add_piqi_input undefined piqi_tools.erl c:/Users/BTC AG/workspace/piqi-erlang/src/piqi_tools.erl line 377 Erlang Problems

can't find include file "piqi_tools_piqi.hrl" piqi_tools.hrl c:/Users/BTC AG/workspace/piqi-erlang/include/piqi_tools.hrl line 19 Erlang Problems

alavrik commented 11 years ago

Hmm... This has never been expected to work on Windows out the box. The missing files are supposed to be generated at one of the compilation steps -- see the hooks in rebar.config. You can try to follow the scripted steps manually and see if you can get it working after executing the actions step by step.

If rebar generally works on Windows you'll also need to have Cygwin installed, because the hooks scripts rely on make, bash and so on. Not sure how to translate them to native Windows stuff.

alavrik commented 11 years ago

building on windows is not supported yet so closing this for now