正如minko上的另一个问题给我的建议,我正在尝试使用dev分支。我得到一个错误,而编译"minko/audio/PositionalSound.cpp"。命令为make config=linux64_debug
,输出为
...
PositionalSound.cpp
+ g++ -MMD -MP -DDEBUG -DJSON_IS_AMALGAMATION -Iinclude -Ilib/sparsehash/src -Isrc -Ilib/jsoncpp/src -Ilib/glm -Ilib/sparsehash/include -g -m64 -std=c++11 -o obj/linux64/debug/PositionalSound.o -MF obj/linux64/debug/PositionalSound.d -c src/minko/audio/PositionalSound.cpp
In file included from include/minko/render/Effect.hpp:25:0,
from include/minko/render/DrawCallPool.hpp:25,
from include/minko/component/Renderer.hpp:25,
from include/minko/component/Transform.hpp:26,
from src/minko/audio/PositionalSound.cpp:25:
include/minko/render/Pass.hpp: In lambda function:
include/minko/render/Pass.hpp:200:62: error: parameter packs not expanded with ‘...’:
setUniformOnProgram<T...>(program, name, values...);
^
include/minko/render/Pass.hpp:200:62: note: ‘values’
include/minko/render/Pass.hpp:200:68: error: expansion pattern ‘values’ contains no argument packs
setUniformOnProgram<T...>(program, name, values...);
^
make[1]: *** [obj/linux64/debug/PositionalSound.o] Errore 1
make: *** [minko-framework] Errore 2
我在Linux Mint 17 Qiana上,使用gcc 4.8.4。
我怎么做才能成功编译它?
我可以在GCC 4.8.2中重现这个问题,但不能在GCC 4.9.2中重现。
你应该升级你的编译器到GCC 4.9.2。由于Linux Mint是基于Ubuntu的,你应该能够使用这个Ubuntu工具链PPA。