1

我一直在尝试通过流向 Windows 目标来构建 luxe,但它一直在给我错误。我尝试使用“--arch 64”和“--arch 32”进行构建,结果相同。

我还按照安装指南的指示安装了 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
4

1 回答 1

1

您需要检查您是否拥有适用于 Luxe 的正确 hxcpp 库版本。我之前跑的时候看到过这个错误:

haxelib install hxcpp

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

haxelib install hxcpp 3.2.205

您可能需要先删除旧版本,方法是删除其中的hxcpp文件夹C:\HaxeToolkit\lib(或路径所在的任何位置)。

于 2016-09-02T19:12:17.183 回答