lua protobuf compile error Windows
mossarelli opened this issue ยท 2 comments
The module protobuf marked as a dependency does not compile on Windows.
cl.exe is only available to people with Visual studio installed, thus the protocol buffer won't compile.
C:\Users\Administrator>luarocks install protobuf
Installing http://luarocks.org/repositories/rocks/protobuf-1.1.1-0.rockspec...
Cloning into 'protobuf-lua'...
remote: Counting objects: 190, done.
remote: Total 190 (delta 0), reused 0 (delta 0), pack-reused 190
Receiving objects: 100% (190/190), 62.98 KiB | 311.00 KiB/s, done.
Resolving deltas: 100% (101/101), done.
cl /MD /O2 -c -Foprotobuf/pb.obj -IC:/Program Files (x86)/Lua/5.1/include protobuf/pb.c
'cl' is not recognized as an internal or external command,
operable program or batch file.
Error: Build error: Failed installing protobuf/wire_format.lua in C:\Program Files (x86)\Lua\5.1\rocks/protobuf/1.1.1-0/lua/protobuf
I gave up after installing the visual cpp build tools and spending many minutes adding and changing the Windows Path environment variables. Even with cpp build tools, the compiler starts complaining about missing header files.
http://landinghub.visualstudio.com/visual-cpp-build-tools
I don't understand why Microsoft has made compiling software such an extra step compared to Linux OSs.