因为要使用spine换装,用了官方案例教的自定义了引擎,引擎编译过程无报错。但打包安卓有问题,日志如下:
2023-3-3 12:02:37-log: [runCmd gradlew.bat] [26/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/network/SocketIO.cpp.o
ninja: build stopped: subcommand failed.
2023-3-3 12:02:37-log: [runCmd gradlew.bat] > Task :boxGame:externalNativeBuildRelease FAILED
2023-3-3 12:02:37-log: [runCmd gradlew.bat - error]
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:boxGame:externalNativeBuildRelease’.
Build command failed.
Error while executing process C:\android_sdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C G:\item\boxGame\build\android\proj\build\cmake\release\arm64-v8a cocos}
ninja: Entering directory `G:\item\boxGame\build\android\proj\build\cmake\release\arm64-v8a’
[1/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/Battery.cpp.o
[2/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/interfaces/OSInterface.cpp.o
[3/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/Network.cpp.o
[4/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/Accelerometer.cpp.o
[5/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.cpp.o
[6/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/interfaces/modules/ISystem.cpp.o
[7/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/base/memory/MemoryHook.cpp.o
2023-3-3 12:02:37-log: [runCmd gradlew.bat - error] [8/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/interfaces/modules/Device.cpp.o
[9/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/SystemWindow.cpp.o
[10/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/Vibrator.cpp.o
[11/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/android/modules/Screen.cpp.o
[12/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/CommonSystem.cpp.o
[13/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/android/modules/System.cpp.o
[14/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/CommonScreen.cpp.o
[15/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.cpp.o
[16/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.cpp.o
[17/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp.o
FAILED: CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp.o
2023-3-3 12:02:37-log: [runCmd gradlew.bat - error] C:\android_sdk\ndk\20.0.5594570\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -DBOOST_UUID_FORCE_AUTO_LINK -DCC_EDITOR=0 -DCC_NETMODE=0 -DCC_NETMODE_CLIENT=0 -DCC_NETMODE_HOST_SERVER=2 -DCC_NETMODE_LISTEN_SERVER=1 -DCC_PLATFORM=3 -DCC_PLATFORM_ANDROID=3 -DCC_PLATFORM_EMSCRIPTEN=9 -DCC_PLATFORM_IOS=1 -DCC_PLATFORM_LINUX=6 -DCC_PLATFORM_MACOS=4 -DCC_PLATFORM_MAC_IOS=1 -DCC_PLATFORM_MAC_OSX=4 -DCC_PLATFORM_NX=8 -DCC_PLATFORM_OHOS=5 -DCC_PLATFORM_QNX=7 -DCC_PLATFORM_WINDOWS=2 -DCC_USE_AUDIO=1 -DCC_USE_DEBUG_RENDERER=0 -DCC_USE_DRAGONBONES=0 -DCC_USE_EDITBOX=1 -DCC_USE_GEOMETRY_RENDERER=0 -DCC_USE_GLES2 -DCC_USE_GLES3 -DCC_USE_JOB_SYSTEM_TASKFLOW=0 -DCC_USE_JOB_SYSTEM_TBB=0 -DCC_USE_MIDDLEWARE=1 -DCC_USE_OCCLUSION_QUERY=0 -DCC_USE_PHYSICS_PHYSX=0 -DCC_USE_SOCKET=1 -DCC_USE_SPINE=1 -DCC_USE_VIDEO=0 -DCC_USE_WEBP=1 -DCC_USE_WEBSOCKET_SERVER=0 -DCC_USE_WEBVIEW=1 -DCC_USE_XR=0 -DTBB_USE_EXCEPTIONS=0 -DUSE_V8_DEBUGGER=0 -DV8_COMPRESS_POINTERS -IF:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cmake/…/external/sources -IC:/Creator/3.6.1/resources/resources/3d/engine/native/external/sources/android-gamesdk/GameController/paddleboat/include -IC:/Creator/3.6.1/resources/resources/3d/engine/native/external/sources/android-gamesdk/GameActivity/game-activity/include -IC:/Creator/3.6.1/resources/resources/3d/engine/native/external/sources -IC:/Creator/3.6.1/resources/resources/3d/engine/native/external/cmake/…/android/arm64-v8a/include -IC:/android_sdk/ndk/20.0.5594570/sources/android/native_app_glue -IF:/Cocor_Creator_diy/cocos-engine-3.6.1/native -IF:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos -IF:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer -IF:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform -IF:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/core -IF:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/editor-support -IF:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/bindings/jswrapper -IF:/Cocor_Creator_diy/cocos-engine-3.6.1/native/external/sources/EGL -IF:/Cocor_Creator_diy/cocos-engine-3.6.1/native/external/sources/khronos -IC:/Creator/3.6.1/resources/resources/3d/engine/native/external/sources/pvmp3dec/src -IC:/Creator/3.6.1/resources/resources/3d/engine/native/external/sources/pvmp3dec/include -IC:/Creator/3.6.1/resources/resources/3d/engine/native/external/sources/tremolo/Tremolo -isystem C:/Creator/3.6.1/resources/resources/3d/engine/native/external/cmake/…/android/arm64-v8a/include/v8 -isystem C:/Creator/3.6.1/resources/resources/3d/engine/native/external/cmake/…/android/arm64-v8a/include/uv -IC:/android_sdk/ndk/20.0.5594570/sources/android/cpufeatures -isystem C:/Creator/3.6.1/resources/resources/3d/engine/native/external/cmake/…/android/arm64-v8a/include/zlib -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,–noexecstack -Wformat -Werror=format-security -fsigned-char -ffunction-sections -fdata-sections -fstrict-aliasing -frtti -fexceptions -O2 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -Wno-comment -std=c++1z -Werror=return-type -MD -MT CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp.o -MF CMakeFiles\cocos_engine.dir\F_\Cocor_Creator_diy\cocos-engine-3.6.1\native\cocos\platform\java\modules\XRInterface.cpp.o.d -o CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp.o -c F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp:44:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos\renderer/gfx-gles3/GLES3GPUObjects.h:33:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h:28:
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:46
error: unknown type name ‘PFNEGLGETPROCADDRESSPROC’
extern PFNEGLGETPROCADDRESSPROC eglGetProcAddress;
^
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:49
error: unknown type name ‘PFNEGLCHOOSECONFIGPROC’
extern PFNEGLCHOOSECONFIGPROC eglChooseConfig;
^
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:50
error: unknown type name ‘PFNEGLCOPYBUFFERSPROC’
extern PFNEGLCOPYBUFFERSPROC eglCopyBuffers;
^
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:51
error: unknown type name ‘PFNEGLCREATECONTEXTPROC’; did you mean ‘PFNEGLCREATESYNCKHRPROC’?
extern PFNEGLCREATECONTEXTPROC eglCreateContext;
^~~~~~~~~~~~~~~~~~~~~~~
PFNEGLCREATESYNCKHRPROC
2023-3-3 12:02:37-log: [runCmd gradlew.bat - error] C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\EGL/eglext.h:152:34: note: ‘PFNEGLCREATESYNCKHRPROC’ declared here
typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
^
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp:44:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos\renderer/gfx-gles3/GLES3GPUObjects.h:33:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h:28:
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:51:32: error: redefinition of ‘eglCreateContext’ as different kind of symbol
extern PFNEGLCREATECONTEXTPROC eglCreateContext;
^
C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\EGL/egl.h:123:31: note: previous definition is here
EGLAPI EGLContext EGLAPIENTRY eglCreateContext (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
^
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp:44:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos\renderer/gfx-gles3/GLES3GPUObjects.h:33:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h:28:
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:52
error: unknown type name ‘PFNEGLCREATEPBUFFERSURFACEPROC’; did you mean ‘PFNEGLCREATEPIXMAPSURFACEHIPROC’?
extern PFNEGLCREATEPBUFFERSURFACEPROC eglCreatePbufferSurface;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PFNEGLCREATEPIXMAPSURFACEHIPROC
C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\EGL/eglext.h:968:34: note: ‘PFNEGLCREATEPIXMAPSURFACEHIPROC’ declared here
typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
^
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp:44:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos\renderer/gfx-gles3/GLES3GPUObjects.h:33:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h:28:
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:52:39: error: redefinition of ‘eglCreatePbufferSurface’ as different kind of symbol
extern PFNEGLCREATEPBUFFERSURFACEPROC eglCreatePbufferSurface;
^
C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\EGL/egl.h:124:31: note: previous definition is here
EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
^
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp:44:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos\renderer/gfx-gles3/GLES3GPUObjects.h:33:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h:28:
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:53
error: unknown type name ‘PFNEGLCREATEPIXMAPSURFACEPROC’; did you mean ‘PFNEGLCREATEPIXMAPSURFACEHIPROC’?
extern PFNEGLCREATEPIXMAPSURFACEPROC eglCreatePixmapSurface;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PFNEGLCREATEPIXMAPSURFACEHIPROC
2023-3-3 12:02:37-log: [runCmd gradlew.bat - error] C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\EGL/eglext.h:968:34: note: ‘PFNEGLCREATEPIXMAPSURFACEHIPROC’ declared here
typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
^
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp:44:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos\renderer/gfx-gles3/GLES3GPUObjects.h:33:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h:28:
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:53:38: error: redefinition of ‘eglCreatePixmapSurface’ as different kind of symbol
extern PFNEGLCREATEPIXMAPSURFACEPROC eglCreatePixmapSurface;
^
C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\EGL/egl.h:125:31: note: previous definition is here
EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
^
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp:44:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos\renderer/gfx-gles3/GLES3GPUObjects.h:33:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h:28:
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:54
error: unknown type name ‘PFNEGLCREATEWINDOWSURFACEPROC’; did you mean ‘PFNEGLCREATEPIXMAPSURFACEHIPROC’?
extern PFNEGLCREATEWINDOWSURFACEPROC eglCreateWindowSurface;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PFNEGLCREATEPIXMAPSURFACEHIPROC
C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\EGL/eglext.h:968:34: note: ‘PFNEGLCREATEPIXMAPSURFACEHIPROC’ declared here
typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
^
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp:44:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos\renderer/gfx-gles3/GLES3GPUObjects.h:33:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h:28:
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:54:38: error: redefinition of ‘eglCreateWindowSurface’ as different kind of symbol
extern PFNEGLCREATEWINDOWSURFACEPROC eglCreateWindowSurface;
^
C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\EGL/egl.h:126:31: note: previous definition is here
EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
^
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp:44:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos\renderer/gfx-gles3/GLES3GPUObjects.h:33:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h:28:
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:55
error: unknown type name ‘PFNEGLDESTROYCONTEXTPROC’
2023-3-3 12:02:37-log: [runCmd gradlew.bat - error]
extern PFNEGLDESTROYCONTEXTPROC eglDestroyContext;
^
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:56
error: unknown type name ‘PFNEGLDESTROYSURFACEPROC’
extern PFNEGLDESTROYSURFACEPROC eglDestroySurface;
^
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:57
error: unknown type name ‘PFNEGLGETCONFIGATTRIBPROC’
extern PFNEGLGETCONFIGATTRIBPROC eglGetConfigAttrib;
^
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:58
error: unknown type name ‘PFNEGLGETCONFIGSPROC’; did you mean ‘PFNGLGETSYNCIVPROC’?
extern PFNEGLGETCONFIGSPROC eglGetConfigs;
^~~~~~~~~~~~~~~~~~~~
PFNGLGETSYNCIVPROC
C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\GLES3/gl32.h:1073:28: note: ‘PFNGLGETSYNCIVPROC’ declared here
typedef void (GL_APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
^
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp:44:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos\renderer/gfx-gles3/GLES3GPUObjects.h:33:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h:28:
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:58:29: error: redefinition of ‘eglGetConfigs’ as different kind of symbol
extern PFNEGLGETCONFIGSPROC eglGetConfigs;
^
C:/android_sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\EGL/egl.h:130:31: note: previous definition is here
EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
^
2023-3-3 12:02:37-log: [runCmd gradlew.bat - error] In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/java/modules/XRInterface.cpp:44:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos\renderer/gfx-gles3/GLES3GPUObjects.h:33:
In file included from F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h:28:
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:59
error: unknown type name ‘PFNEGLGETCURRENTDISPLAYPROC’
extern PFNEGLGETCURRENTDISPLAYPROC eglGetCurrentDisplay;
^
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:60
error: unknown type name ‘PFNEGLGETCURRENTSURFACEPROC’
extern PFNEGLGETCURRENTSURFACEPROC eglGetCurrentSurface;
^
F:/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/renderer/gfx-gles3/…/gfx-gles-common/eglw.h:61
error: unknown type name ‘PFNEGLGETDISPLAYPROC’
extern PFNEGLGETDISPLAYPROC eglGetDisplay;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[18/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/network/Downloader.cpp.o
[19/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.cpp.o
[20/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/base/threading/ThreadPool.cpp.o
[21/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/base/threading/MessageQueue.cpp.o
[22/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/network/HttpCookie.cpp.o
[23/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/network/Downloader-java.cpp.o
2023-3-3 12:02:37-log: [runCmd gradlew.bat] 34 actionable tasks: 34 executed
2023-3-3 12:02:37-log: [runCmd gradlew.bat - error] [24/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/network/Uri.cpp.o
[25/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/network/HttpClient-java.cpp.o
[26/613] Building CXX object CMakeFiles/cocos_engine.dir/F_/Cocor_Creator_diy/cocos-engine-3.6.1/native/cocos/network/SocketIO.cpp.o
ninja: build stopped: subcommand failed.
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 17s
2023-3-3 12:02:38-error: make package G:\item\boxGame\build\android failed!
2023-3-3 12:02:38-warn: failed to exec gradlew.bat boxGame:assembleRelease
2023-3-3 12:02:38-log: [task:make]: failed!