2016-08-20 111 views
1

我一直在试图用流向Windows目标来建立luxe,它一直给我错误。我试着用'--arch 64'和'--arch 32'来构建,并且它给出了相同的结果。建立Windows目标时给予错误Luxe给出错误

我还安装了hxcpp(只是把它放在那里,以便你知道),OpenAL和Visual C++,正如安装指南指示的那样。

一切都是最新的。

Web构建工作完美无缺。

以下是错误日志:

Error: While running :cl.exe -Iinclude -IC:/HaxeToolkit/haxe/lib/linc_ogg/git//lib/ -IC:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/ -IC:/HaxeToolkit/haxe/lib/linc_ogg/git//lib//ogg/include/ -IC:/HaxeToolkit/haxe/lib/linc_ogg/git//lib//vorbis/include/ -IC:/HaxeToolkit/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -IC:/HaxeToolkit/haxe/lib/linc_openal/git//linc/ -IC:/HaxeToolkit/haxe/lib/linc_opengl/git//linc/ -IC:/HaxeToolkit/haxe/lib/linc_opengl/git//lib/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -IC:/HaxeToolkit/haxe/lib/linc_sdl/git//linc/ -IC:/HaxeToolkit/haxe/lib/linc_sdl/git//lib/sdl/include/ -IC:/HaxeToolkit/haxe/lib/linc_sdl/git//lib/sdl/include/configs/windows/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -IC:/HaxeToolkit/haxe/lib/linc_stb/git//lib/ -IC:/HaxeToolkit/haxe/lib/linc_stb/git//linc/ -IC:/HaxeToolkit/haxe/lib/linc_timestamp/git//linc/ -nologo /WX- /fp:precise -DHX_WINDOWS -GR -O2 -FS -Oy- -c -EHs -GS- -IC:/HaxeToolkit/haxe/lib/hxcpp/3,3,49/include -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -wd4996 -MT -Yuhxcpp.h /FpC:/HaxeToolkit/haxe/lib/luxe/git/samples/empty/bin/windows64.build/cpp/obj/msvc1964-nc/__pch/haxe/hxcpp.pch C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp -FoC:/HaxeToolkit/haxe/lib/luxe/git/samples/empty/bin/windows64.build/cpp/obj/msvc1964-nc/39abceb4_linc_ogg.obj 
linc_ogg.cpp 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(9): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(9): error C2146: syntax error: missing ';' before identifier 'newOggVorbisFile' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(9): error C2143: syntax error: missing ';' before '{' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(9): error C2447: '{': missing function header (old-style formal list?) 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(15): error C2146: syntax error: missing ')' before identifier 'vf' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(15): error C2143: syntax error: missing ';' before '{' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(15): error C2447: '{': missing function header (old-style formal list?) 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(39): error C2146: syntax error: missing ')' before identifier 'vf' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(39): error C2143: syntax error: missing ';' before '{' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(39): error C2447: '{': missing function header (old-style formal list?) 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(50): error C2061: syntax error: identifier 'OggFile' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(52): error C2065: 'ov_callbacks': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(52): error C2146: syntax error: missing ';' before identifier 'cb' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(52): error C2065: 'cb': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(52): error C3861: 'ov_callbacks': identifier not found 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(54): error C2065: 'cb': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(54): error C2228: left of '.read_func' must have class/struct/union 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(54): note: type is 'unknown-type' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(54): error C2065: 'ogg_read_func': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(55): error C2065: 'cb': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(55): error C2228: left of '.seek_func' must have class/struct/union 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(55): note: type is 'unknown-type' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(55): error C2065: 'ogg_seek_func': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(56): error C2065: 'cb': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(56): error C2228: left of '.close_func' must have class/struct/union 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(56): note: type is 'unknown-type' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(56): error C2065: 'ogg_close_func': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(57): error C2065: 'cb': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(57): error C2228: left of '.tell_func' must have class/struct/union 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(57): note: type is 'unknown-type' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(57): error C2065: 'ogg_tell_func': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(62): error C2065: 'initial': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(63): error C2065: 'vf': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(63): error C2228: left of '.get_raw' must have class/struct/union 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(63): note: type is 'unknown-type' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(63): error C2065: 'cb': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(63): error C3861: 'ov_open_callbacks': identifier not found 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(65): error C2065: 'vf': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(65): error C2228: left of '.get_raw' must have class/struct/union 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(65): note: type is 'unknown-type' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(65): error C2065: 'initial': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(65): error C2065: 'ibytes': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(65): error C2065: 'cb': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(65): error C3861: 'ov_open_callbacks': identifier not found 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(72): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(72): error C2146: syntax error: missing ';' before identifier 'read_fn' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(73): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(73): error C2146: syntax error: missing ';' before identifier 'seek_fn' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(74): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(74): error C2146: syntax error: missing ';' before identifier 'close_fn' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(75): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(75): error C2146: syntax error: missing ';' before identifier 'tell_fn' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(79): error C2146: syntax error: missing ')' before identifier '_read_fn' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(83): error C2143: syntax error: missing ';' before '{' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(83): error C2447: '{': missing function header (old-style formal list?) 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(107): error C2064: term does not evaluate to a function taking 4 arguments 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(121): error C2061: syntax error: identifier 'ogg_int64_t' 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(127): error C2065: 'offset': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(127): error C2065: 'whence': undeclared identifier 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(137): error C2064: term does not evaluate to a function taking 1 arguments 
C:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/linc_ogg.cpp(147): error C2064: term does not evaluate to a function taking 1 arguments 

flow/
build - stopping because of errors in hxcpp compile, while building arch 64 

回答

1

你需要检查是否有豪华的正确hxcpp库版本。我看到这个错误之前,当我跑:

haxelib install hxcpp

但指南中它声明明确地使用版本3.2.205

haxelib install hxcpp 3.2.205

您可能需要先卸下旧版本通过删除C:\HaxeToolkit\lib中的hxcpp文件夹(或任何您的路径)。