OctaForge/OF-Engine

Fails to compile (Latest Git)

cyberarm opened this issue · 9 comments

Fails to compile (Latest Git)

src>mingw32-make install

[libraries] Building a C object file libraries/enet/callbacks.o.
[libraries] Building a C object file libraries/enet/host.o.
[libraries] Building a C object file libraries/enet/list.o.
[libraries] Building a C object file libraries/enet/packet.o.
[libraries] Building a C object file libraries/enet/peer.o.
[libraries] Building a C object file libraries/enet/protocol.o.
[libraries] Building a C object file libraries/enet/unix.o.
[libraries] Building a C object file libraries/enet/win32.o.
Creating a static library libraries/enet/libenet.a.
Built target: enet.
[libraries] Building a C object file libraries/lua/lapi.o.
[libraries] Building a C object file libraries/lua/lcode.o.
[libraries] Building a C object file libraries/lua/ldebug.o.
[libraries] Building a C object file libraries/lua/ldo.o.
[libraries] Building a C object file libraries/lua/ldump.o.
[libraries] Building a C object file libraries/lua/lfunc.o.
[libraries] Building a C object file libraries/lua/lgc.o.
[libraries] Building a C object file libraries/lua/llex.o.
[libraries] Building a C object file libraries/lua/lmem.o.
[libraries] Building a C object file libraries/lua/lobject.o.
[libraries] Building a C object file libraries/lua/lopcodes.o.
[libraries] Building a C object file libraries/lua/lparser.o.
[libraries] Building a C object file libraries/lua/lstate.o.
[libraries] Building a C object file libraries/lua/lstring.o.
[libraries] Building a C object file libraries/lua/ltable.o.
[libraries] Building a C object file libraries/lua/ltm.o.
[libraries] Building a C object file libraries/lua/lundump.o.
[libraries] Building a C object file libraries/lua/lvm.o.
[libraries] Building a C object file libraries/lua/lzio.o.
[libraries] Building a C object file libraries/lua/lauxlib.o.
[libraries] Building a C object file libraries/lua/lbaselib.o.
[libraries] Building a C object file libraries/lua/ldblib.o.
[libraries] Building a C object file libraries/lua/liolib.o.
[libraries] Building a C object file libraries/lua/lmathlib.o.
[libraries] Building a C object file libraries/lua/loslib.o.
[libraries] Building a C object file libraries/lua/ltablib.o.
[libraries] Building a C object file libraries/lua/lstrlib.o.
[libraries] Building a C object file libraries/lua/loadlib.o.
[libraries] Building a C object file libraries/lua/linit.o.
Creating a static library libraries/lua/liblua.a.
Built target: lua.
[client] Building a C++ object file octaforge/of_tools.o.
In file included from shared/cube.h:72:0,
                 from octaforge/of_tools.cpp:30:
shared/geom.h:46:26: error: macro "min" requires 2 arguments, but only 1 given
shared/geom.h:47:26: error: macro "max" requires 2 arguments, but only 1 given
shared/geom.h:48:21: error: macro "min" requires 2 arguments, but only 1 given
shared/geom.h:49:21: error: macro "max" requires 2 arguments, but only 1 given
In file included from shared/cube.h:72:0,
                 from octaforge/of_tools.cpp:30:
shared/geom.h:1005:28: error: macro "min" requires 2 arguments, but only 1 given
shared/geom.h:1006:28: error: macro "max" requires 2 arguments, but only 1 given
shared/geom.h:1007:20: error: macro "min" requires 2 arguments, but only 1 given
shared/geom.h:1008:20: error: macro "max" requires 2 arguments, but only 1 given
In file included from shared/cube.h:72:0,
                 from octaforge/of_tools.cpp:30:
shared/geom.h:46:10: error: function definition does not declare parameters
shared/geom.h:47:10: error: function definition does not declare parameters
shared/geom.h:48:10: error: function definition does not declare parameters
shared/geom.h:49:10: error: function definition does not declare parameters
In file included from shared/cube.h:72:0,
                 from octaforge/of_tools.cpp:30:
shared/geom.h: In member function 'vec& vec::projectxy(const vec&)':
shared/geom.h:71:25: error: expected id-expression before '(' token
shared/geom.h: In member function 'vec& vec::projectxy(const vec&, float)':
shared/geom.h:76:39: error: expected id-expression before '(' token
shared/geom.h:78:25: error: expected id-expression before '(' token
shared/geom.h: At global scope:
shared/geom.h:1005:11: error: function definition does not declare parameters
shared/geom.h:1006:11: error: function definition does not declare parameters
shared/geom.h:1007:11: error: function definition does not declare parameters
shared/geom.h:1008:11: error: function definition does not declare parameters
mingw32-make: *** [build/client/octaforge/of_tools.o] Error 1
q66 commented

Please try now. I've done some changes yesterday, that should fix building broken previously. Also, make sure you use my branch, not the official. If there are still errors, I'll fix it immediately.

src>mingw32-make install
mingw32-make: *** No rule to make target `libraries/enet/include/enet/enet.h',
needed by `build/libraries/enet/callbacks.o'.  
Stop.
q66 commented

hmm this is weird. Do you have clean git clone?

yes

after doing git submodule init and git submodule update it started to compile.

src>mingw32-make install
[libraries] Building a C object file libraries/enet/callbacks.o.
[libraries] Building a C object file libraries/enet/host.o.
[libraries] Building a C object file libraries/enet/list.o.
[libraries] Building a C object file libraries/enet/packet.o.
[libraries] Building a C object file libraries/enet/peer.o.
[libraries] Building a C object file libraries/enet/protocol.o.
[libraries] Building a C object file libraries/enet/unix.o.
[libraries] Building a C object file libraries/enet/win32.o.
Creating a static library libraries/enet/libenet.a.
Built target: enet.
[libraries] Building a C object file libraries/lua/lapi.o.
[libraries] Building a C object file libraries/lua/lcode.o.
[libraries] Building a C object file libraries/lua/ldebug.o.
[libraries] Building a C object file libraries/lua/ldo.o.
[libraries] Building a C object file libraries/lua/ldump.o.
[libraries] Building a C object file libraries/lua/lfunc.o.
[libraries] Building a C object file libraries/lua/lgc.o.
[libraries] Building a C object file libraries/lua/llex.o.
[libraries] Building a C object file libraries/lua/lmem.o.
[libraries] Building a C object file libraries/lua/lobject.o.
[libraries] Building a C object file libraries/lua/lopcodes.o.
[libraries] Building a C object file libraries/lua/lparser.o.
[libraries] Building a C object file libraries/lua/lstate.o.
[libraries] Building a C object file libraries/lua/lstring.o.
[libraries] Building a C object file libraries/lua/ltable.o.
[libraries] Building a C object file libraries/lua/ltm.o.
[libraries] Building a C object file libraries/lua/lundump.o.
[libraries] Building a C object file libraries/lua/lvm.o.
[libraries] Building a C object file libraries/lua/lzio.o.
[libraries] Building a C object file libraries/lua/lauxlib.o.
[libraries] Building a C object file libraries/lua/lbaselib.o.
[libraries] Building a C object file libraries/lua/ldblib.o.
[libraries] Building a C object file libraries/lua/liolib.o.
[libraries] Building a C object file libraries/lua/lmathlib.o.
[libraries] Building a C object file libraries/lua/loslib.o.
[libraries] Building a C object file libraries/lua/ltablib.o.
[libraries] Building a C object file libraries/lua/lstrlib.o.
[libraries] Building a C object file libraries/lua/loadlib.o.
[libraries] Building a C object file libraries/lua/linit.o.
Creating a static library libraries/lua/liblua.a.
Built target: lua.
[client] Building a C++ object file octaforge/of_tools.o.
In file included from libraries/OFTL/include/OFTL/algorithm.h:25:0,
                 from shared/cube.h:31,
                 from octaforge/of_tools.cpp:30:
libraries/OFTL/include/OFTL/string.h: In member function 'types::String_Base<char>& types::String_Ba
se<char>::format(const char*, va_list)':
libraries/OFTL/include/OFTL/string.h:595:53: error: 'vasprintf' was not declared in this scope
In file included from libraries/OFTL/include/OFTL/lua.h:34:0,
                 from shared/cube.h:40,
                 from octaforge/of_tools.cpp:30:
libraries/OFTL/include/OFTL/lua/stack.h: At global scope:
libraries/OFTL/include/OFTL/lua/stack.h:207:55: error: specialization of 'T lua::stack::get_value(lu
a_State*, int) [with T = lua::Dynamic, lua_State = lua_State]' after instantiation
In file included from shared/cube.h:84:0,
                 from octaforge/of_tools.cpp:30:
shared/tools.h:956:13: error: 'off64_t' does not name a type
shared/tools.h:967:13: error: 'offset' does not name a type
shared/tools.h:968:23: error: 'offset' has not been declared
shared/tools.h:969:13: error: 'offset' does not name a type
mingw32-make: *** [build/client/octaforge/of_tools.o] Error 1
q66 commented

ok, this one is easily fixable - i'll fix it tomorrow - thanks

Still having the same issue compiling.

q66 commented

Pull your submodules.

q66 commented

Resolved by alpha 10 (tested), closing.