Closed carlye closed 9 months ago
依赖库下载失败了,尝试:axmol build -p osx -a x64 -f -c
v2.1.0-rc6 可选方式
1k/
目录下创建一个空文件 .gitee
,再执行cmake,就会从 gitee 加速下载依赖https://github.com/axmolengine/axmol/releases/download/v2.1.0-rc6/axmol-2.1.0-rc6.zip 正在下载,不过我刚才尝试删除rc5的包重新编译,包括setup.ps1和build.ps1,axmol build -p osx -a x64 -f -c 还是有东西报错。这中间还有zlib的问题。
carlye@yechundeMBP /Volumes/workspace/work/axmol-2.1.0-rc5 axmol build -p osx -a x64 -f -c
fatal: 不是 git 仓库(或者直至挂载点 /Volumes 的任何父目录)
停止在文件系统边界(未设置 GIT_DISCOVERY_ACROSS_FILESYSTEM)。
-p osx -a x64 -f -c -d: /Volumes/workspace/work/axmol-2.1.0-rc5
build1k: PowerShell 7.3.9 on Darwin 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:27 PDT 2023; root:xnu-10002.41.9~6/RELEASE_X86_64
build1k:
Name Value
---- -----
dll False
a x64
prefix /Volumes/workspace/work/axmol-2.1.0-rc5/tools/ex…
d /Volumes/workspace/work/axmol-2.1.0-rc5
sdk
cc
xt cmake
p osx
xc {}
xb {--target, HelloCpp}
build1k: proj_dir=/Volumes/workspace/work/axmol-2.1.0-rc5, external_prefix=/Volumes/workspace/work/axmol-2.1.0-rc5/tools/external
build1k: Using glslcc: /Volumes/workspace/work/axmol-2.1.0-rc5/tools/external/glslcc/glslcc, version: 1.9.4
build1k: info: the cmd follow symlink /usr/local/bin/cmake ==> /usr/local/Cellar/cmake/3.28.1/bin/cmake
build1k: Using cmake: /usr/local/bin/cmake, version: 3.28.1
build1k: Building target osx on macos with toolchain xcode ...
build1k: CONFIG_ALL_OPTIONS=-DCMAKE_OSX_ARCHITECTURES=x86_64 -G Xcode -DCMAKE_INSTALL_PREFIX=/Volumes/workspace/work/axmol-2.1.0-rc5/install_x64, Count=4
-- GLSLCC_OUT_DIR=/Volumes/workspace/work/axmol-2.1.0-rc5/build_x64/runtime/axslc
-- GLSLCC_FIND_PROG_ROOT=/Volumes/workspace/work/axmol-2.1.0-rc5/tools/external/glslcc
-- GLSLCC_FRAG_SOURCE_FILE_EXTENSIONS=.frag;.fsh
-- GLSLCC_VERT_SOURCE_FILE_EXTENSIONS=.vert;.vsh
-- CMAKE_C_STANDARD=11
-- Building axmol with c++20
-- The ASM_NASM compiler identification is unknown
-- Didn't find assembler
CMake Warning at cmake/Modules/AXConfigDefine.cmake:218 (message):
The nasm compiler doesn't present on your system PATH, please download
from: https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/
Call Stack (most recent call first):
cmake/Modules/AXBuildSet.cmake:47 (include)
CMakeLists.txt:46 (include)
-- CMAKE_HOST_SYSTEM_NAME:Darwin
-- CMAKE_SYSTEM_NAME:Darwin
-- CMAKE_GENERATOR_PLATFORM:
-- CMAKE_SYSTEM_PROCESSOR:x86_64
-- CMAKE_CXX_COMPILER_ID:AppleClang
-- FUZZ_MSVC=, FULL_CLANG=
-- PROJECT_NAME:axmol
-- PROJECT_SOURCE_DIR:/Volumes/workspace/work/axmol-2.1.0-rc5
-- _AX_ROOT:/Volumes/workspace/work/axmol-2.1.0-rc5
-- CMAKE_MODULE_PATH:/Volumes/workspace/work/axmol-2.1.0-rc5/cmake/Modules/
-- PROJECT_BINARY_DIR:/Volumes/workspace/work/axmol-2.1.0-rc5/build_x64
-- ENGINE_BINARY_PATH:/Volumes/workspace/work/axmol-2.1.0-rc5/build_x64/engine
-- ARCH_ALIAS:
CMake Warning (dev) at core/CMakeLists.txt:87 (message):
AX_USE_GL=OFF, AX_USE_METAL=ON, AX_GLES_PROFILE=0
This warning is for project developers. Use -Wno-dev to suppress it.
-- AX_ENABLE_VLC_MEDIA=OFF
CMake Warning (dev) at thirdparty/CMakeLists.txt:132 (message):
AX_ISA_SIMD=sse4.1
This warning is for project developers. Use -Wno-dev to suppress it.
-- Using plainlua https://lua.org
-- Version: 10.1.0
-- Build type: Release
CMake Warning (dev) at 1k/fetch.cmake:21 (message):
Downloading
https://github.com/axmolengine/1k/releases/download/v61/zlib.zip
Call Stack (most recent call first):
thirdparty/zlib/CMakeLists.txt:7 (_1kfetch_dist)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at 1k/fetch.cmake:31 (file):
file RENAME failed to rename
/Volumes/workspace/work/axmol-2.1.0-rc5/thirdparty/zlib/zlib
to
/Volumes/workspace/work/axmol-2.1.0-rc5/thirdparty/zlib/_d
because: No such file or directory
Call Stack (most recent call first):
thirdparty/zlib/CMakeLists.txt:7 (_1kfetch_dist)
Configuring Chipmunk2D version 7.0.3
CMake Deprecation Warning at thirdparty/freetype/CMakeLists.txt:113 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Warning (dev) at thirdparty/astcenc/CMakeLists.txt:54 (message):
ASTC_ISA_SIMD=sse4.1
This warning is for project developers. Use -Wno-dev to suppress it.
-- Including Cocoa support
-- AX_USE_ALSOFT=OFF
CMake axmol target_precompile_headers
-- Enabled axmol extensions:JSONDefault;cocostudio;SDFGen;Inspector;ImGui;fairygui;DragonBones;spine;physics-nodes;particle3d;assets-manager;GUI;
-- CMAKE_BINARY_DIR=/Volumes/workspace/work/axmol-2.1.0-rc5/build_x64
正克隆到 '/Volumes/workspace/work/axmol-2.1.0-rc5/thirdparty/_deps/sample-assets'...
error: RPC 失败。curl 18 HTTP/2 stream 5 was reset
error: 预期仍然需要 2560 个字节的正文
fetch-pack: unexpected disconnect while reading sideband packet
fatal: 过早的文件结束符(EOF)
fatal: fetch-pack:无效的 index-pack 输出
fatal: cannot change to '/Volumes/workspace/work/axmol-2.1.0-rc5/thirdparty/_deps/sample-assets': No such file or directory
-- No shader found in /Volumes/workspace/work/axmol-2.1.0-rc5/templates/cpp-template-default/Source/shaders
-- 50 shader sources found in /Volumes/workspace/work/axmol-2.1.0-rc5/tests/cpp-tests/Source/shaders
CMake cpp-tests target_precompile_headers
CMake fairygui-tests target_precompile_headers
-- No shader found in /Volumes/workspace/work/axmol-2.1.0-rc5/tests/fairygui-tests/Source/shaders
-- No shader found in /Volumes/workspace/work/axmol-2.1.0-rc5/templates/lua-template-default/Source/shaders
-- No shader found in /Volumes/workspace/work/axmol-2.1.0-rc5/tests/lua-tests/Source/shaders
-- Configuring incomplete, errors occurred!
build1k: Generate done
zlib库怎么也有问题,我挂载了梯子的。
下载的包也有,但是名称是zlib.v61.zip,也不确定是不是这个问题。
rc6还在下载,如果成功就不胜感激了。
嗯,看报错还是网络下载出错了,github CI job/19686659855 构建也是跑的动态下载流程,那就试试离线包吧
rc6版本编译ok
Oops ,成功拉!
中间sample-assets还是有部分错误。
CMake Warning (dev) at thirdparty/astcenc/CMakeLists.txt:54 (message):
ASTC_ISA_SIMD=sse4.1
This warning is for project developers. Use -Wno-dev to suppress it.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Including Cocoa support
-- AX_USE_ALSOFT=OFF
CMake axmol target_precompile_headers
-- Enabled axmol extensions:JSONDefault;cocostudio;SDFGen;Inspector;ImGui;fairygui;DragonBones;spine;physics-nodes;particle3d;assets-manager;GUI;
-- CMAKE_BINARY_DIR=/Volumes/workspace/work/axmol-2.1.0-rc6/build_x64
正克隆到 '/Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets'...
error: 预期仍然需要 2906 个字节的正文
fetch-pack: unexpected disconnect while reading sideband packet
fatal: 过早的文件结束符(EOF)
fatal: fetch-pack:无效的 index-pack 输出
fatal: cannot change to '/Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets': No such file or directory
Exception: /Volumes/workspace/work/axmol-2.1.0-rc6/1k/fsync.ps1:34
Line |
34 | throw "fsync.ps1: The source directory $srcPath not exist"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| fsync.ps1: The source directory
| /Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets/cpp-tests/Content not exist
Exception: /Volumes/workspace/work/axmol-2.1.0-rc6/1k/fsync.ps1:34
Line |
34 | throw "fsync.ps1: The source directory $srcPath not exist"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| fsync.ps1: The source directory
| /Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets/fairygui-tests/Content not exist
Exception: /Volumes/workspace/work/axmol-2.1.0-rc6/1k/fsync.ps1:34
Line |
34 | throw "fsync.ps1: The source directory $srcPath not exist"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| fsync.ps1: The source directory
| /Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets/live2d-tests/Content not exist
Exception: /Volumes/workspace/work/axmol-2.1.0-rc6/1k/fsync.ps1:34
Line |
34 | throw "fsync.ps1: The source directory $srcPath not exist"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| fsync.ps1: The source directory
| /Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets/cpp-tests/Content not exist
-- No shader found in /Volumes/workspace/work/axmol-2.1.0-rc6/templates/cpp-template-default/Source/shaders
-- 50 shader sources found in /Volumes/workspace/work/axmol-2.1.0-rc6/tests/cpp-tests/Source/shaders
CMake cpp-tests target_precompile_headers
CMake fairygui-tests target_precompile_headers
-- No shader found in /Volumes/workspace/work/axmol-2.1.0-rc6/tests/fairygui-tests/Source/shaders
-- No shader found in /Volumes/workspace/work/axmol-2.1.0-rc6/templates/lua-template-default/Source/shaders
-- No shader found in /Volumes/workspace/work/axmol-2.1.0-rc6/tests/lua-tests/Source/shaders
-- Configuring done (95.3s)
-- Generating done (0.0s)
fetch-pack: unexpected disconnect while reading sideband packet fatal: 过早的文件结束符(EOF) fatal: fetch-pack:无效的 index-pack 输出 fatal: cannot change to '/Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets': No such file or directory
看输出还是网络问题,你没用离线包:axmol-2.1.0-rc6.zip?
发现rc6编译出来的axmol找不到了。和rc5版本对比了下。编译后缺少tools/console
fetch-pack: unexpected disconnect while reading sideband packet fatal: 过早的文件结束符(EOF) fatal: fetch-pack:无效的 index-pack 输出 fatal: cannot change to '/Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets': No such file or directory
看输出还是网络问题,你没用离线包:axmol-2.1.0-rc6.zip?
用了。https://github.com/axmolengine/axmol/releases/download/v2.1.0-rc6/axmol-2.1.0-rc6.zip
嗯,我知道问题了, cache检测有点问题,检测 xxx/.git,而 ci 产出的 package cache下的 .git 隐藏目录不存在
我重新解压缩目录,在touch .gitee,再setup,再build,发现也报了/sample-assets错误。实际这个网址可以访问到
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Including Cocoa support
-- AX_USE_ALSOFT=OFF
CMake axmol target_precompile_headers
-- Enabled axmol extensions:JSONDefault;cocostudio;SDFGen;Inspector;ImGui;fairygui;DragonBones;spine;physics-nodes;particle3d;assets-manager;GUI;
-- CMAKE_BINARY_DIR=/Volumes/workspace/work/axmol-2.1.0-rc6/build_x64
正克隆到 '/Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets'...
fatal: 无法访问 'https://gitee.com//axmolengine/axmol-sample-assets.git/':LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to gitee.com:443
fatal: cannot change to '/Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets': No such file or directory
Exception: /Volumes/workspace/work/axmol-2.1.0-rc6/1k/fsync.ps1:34
我复制到浏览器是访问正常的。但在控制台curl也是这个报错。
有点诡异,目前是我在setup的时候挂上梯子,然后关闭iterm,不挂梯子执行build从gitee上可以正常编译。有点摸不着头脑了,但是tools/console/axmol还是没有出现。
可能是系统环境或powershell ssl的bug
获取Outlook for Androidhttps://aka.ms/AAb9ysg
From: carlye @.> Sent: Wednesday, December 20, 2023 11:58:32 PM To: axmolengine/axmol @.> Cc: Deal @.>; State change @.> Subject: Re: [axmolengine/axmol] 示例代码与新建工程均编译失败 (Issue #1530)
我重新解压缩目录,在touch .gitee,再setup,再build,发现也报了/sample-assets错误。实际这个网址可以访问到
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Including Cocoa support -- AX_USE_ALSOFT=OFF CMake axmol target_precompile_headers -- Enabled axmol extensions:JSONDefault;cocostudio;SDFGen;Inspector;ImGui;fairygui;DragonBones;spine;physics-nodes;particle3d;assets-manager;GUI; -- CMAKE_BINARY_DIR=/Volumes/workspace/work/axmol-2.1.0-rc6/build_x64 正克隆到 '/Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets'... fatal: 无法访问 'https://gitee.com//axmolengine/axmol-sample-assets.git/':LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to gitee.com:443 fatal: cannot change to '/Volumes/workspace/work/axmol-2.1.0-rc6/cache/sample-assets': No such file or directory Exception: /Volumes/workspace/work/axmol-2.1.0-rc6/1k/fsync.ps1:34
我复制到浏览器是访问正常的。但在控制台curl也是这个报错。
有点诡异,目前是我在setup的时候挂上梯子,然后关闭iterm,不挂梯子执行build从gitee上可以正常编译。有点摸不着头脑了,但是tools/console/axmol还是没有出现。
― Reply to this email directly, view it on GitHubhttps://github.com/axmolengine/axmol/issues/1530#issuecomment-1864734111, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABVHOJYVJ6SIGDZZIQYISETYKMDKRAVCNFSM6AAAAABA4J4F5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRUG4ZTIMJRGE. You are receiving this because you modified the open/close state.Message ID: @.***>
尝试更新下 powershell: ./install-pwsh.sh 7.4.0
创建的示例工程
setup脚本已经执行过了,现在执行
但是我现在在axmol目录下执行pwsh build.ps1有报错
我该如何解决呢?