如题,我把coco2dx项目从windows拷到mac下编译不过,错误如下:
Compile /Users/tukai/projects/BRobo/cocos2d/external/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/OutputToVertexArray.cl
cd /Users/tukai/projects/BRobo/proj.ios_mac
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/System/Library/Frameworks/OpenCL.framework/Libraries/openclc -x cl -cl-std=CL1.1 -cl-auto-vectorize-enable -gcl-bc-bundle-identifier com.vertex.BRobo -gcl-bc-dir OpenCL -emit-gcl /Users/tukai/projects/BRobo/cocos2d/external/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/OutputToVertexArray.cl -gcl-output-dir /Users/tukai/Library/Developer/Xcode/DerivedData/BRobo-cvcjumvtvnexjygfwglwiueezxps/Build/Intermediates/BRobo.build/Debug-iphonesimulator/BRobo-mobile.build/DerivedSources
/Users/tukai/projects/BRobo/cocos2d/external/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/OutputToVertexArray.cl
1: error: expected ‘)’
{
^
/Users/tukai/projects/BRobo/cocos2d/external/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/OutputToVertexArray.cl:1
note: to match this ‘(’
MSTRINGIFY(
^
/Users/tukai/projects/BRobo/cocos2d/external/bullet/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/OutputToVertexArray.cl:1:1: warning: type specifier missing, defaults to ‘int’ -Wimplicit-int]
MSTRINGIFY(
^~~~~~~~~~
1 warning and 1 error generated.
Command /System/Library/Frameworks/OpenCL.framework/Libraries/openclc failed with exit code 1
有人遇到过吗?谢谢了!