You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package("nndeploy")
set_homepage("https://github.com/nndeploy/nndeploy")
set_description("nndeploy是一款模型端到端部署框架。以多端推理以及基于有向无环图模型部署为基础,致力为用户提供跨平台、简单易用、高性能的模型部署体验。")
set_license("Apache-2.0")
set_urls("https://github.com/nndeploy/nndeploy/archive/refs/tags/$(version).tar.gz", {version = function (version)
return version:gsub("%+", ".")
end})
add_versions("1.0.0+0", "02d38313eec77de4c028803255be284b13bc9bc8dd775ee5147f7f98ff7831eb")
add_configs("demo", {description = "Enable demo.", default = false, type = "boolean"})
add_deps("cmake")
add_deps("ninja")
if is_plat("linux") then
add_syslinks("pthread")
end
on_install("macosx", "linux", "windows", function (package)
local options = {
demo = "ENABLE_NNDEPLOY_DEMO",
}
os.mkdir("build")
os.cp("cmake/config.cmake", "build")
io.replace("CMakeLists.txt", "NNDEPLOY_INSTALL_PATH ${ROOT_PATH}/build/install", "NNDEPLOY_INSTALL_PATH " .. package:installdir():gsub("\\", "/"), {plain = true})
if not package:config("shared") then
io.replace("build/config.cmake", "ENABLE_NNDEPLOY_BUILD_SHARED ON", "ENABLE_NNDEPLOY_BUILD_SHARED OFF", {plain = true})
end
for name, item in pairs(options) do
if package:config(name) then
io.replace("build/config.cmake", item .. " OFF", item .. " ON", {plain = true})
else
io.replace("build/config.cmake", item .. " ON", item .. " OFF", {plain = true})
end
end
local configs = { }
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
import("package.tools.cmake").install(package, configs, {cmake_generator = "Ninja", buildir = "build"})
os.cp("include", package:installdir())
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
using namespace nndeploy;
dag::Edge graph_in("graph_in");
dag::Edge graph_out("graph_out");
dag::Graph *graph = new dag::Graph("serial_graph", &graph_in, &graph_out);
}
]]}, {configs = {languages = "c++11"}, includes = {"nndeploy/dag/graph.h"}}))
end)
完整错误日志
xmake l scripts/test.lua -v -D --shallow nndeploy
{
"nndeploy"
}
C:\Users\ADMINI~1\AppData\Local\Temp\.xmake\240907\xmake-repo\test
add local repository(local-repo): C:\Users\Administrator\Desktop\xmake-repo ok!
local repositories:
local-repo C:\Users\Administrator\Desktop\xmake-repo
global repositories:
build-artifacts https://gitee.com/xmake-mirror/build-artifacts.git main
xmake-repo https://gitee.com/tboox/xmake-repo.git master
builtin-repo C:\Users\Administrator\xmake\repository
4 repositories were found!
checking for platform ... windows
checking for architecture ... x64
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\link.exe
checking for the linker (ld) ... link.exe
configure
{
kind = static
mode = release
host = windows
ccache = true
clean = true
pkg_searchdirs = E:/
plat = windows
network = public
ndk_stdcxx = true
vs = 2022
proxy = http://127.0.0.1:7890
arch = x64
proxy_pac =
theme = default
buildir = build
}
checking for git ... ok
git rev-parse HEAD
checkinfo: cannot runv(unzip.exe -v), No such file or directory
checking for unzip ... no
checking for 7z ... C:\Users\Administrator\xmake\winenv\bin\7z
checkinfo: cannot runv(gzip.exe --version), No such file or directory
checking for gzip ... no
git rev-parse HEAD
checking for cmake ... no
checking for Microsoft Visual Studio (x64) version ... 2022
checking for cmake ... no
checking for cmake ... no
checking for cmake ... C:\Program Files\CMake\bin\cmake
checking for ninja ... no
checking for ninja ... no
checking for ninja ... no
checking for ping ... ok
pinging the host(github.com) ... 103 ms
C:\Users\Administrator\xmake\winenv\bin\7z x -y 1.0.0.0.tar.gz -oC:\Users\ADMINI~1\AppData\Local\Temp\.xmake\240907\_2A740D045E2140508F57C6211AF708B0.tar
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive for archives:
1 file, 1714336 bytes (1675 KiB)
Extracting archive: 1.0.0.0.tar.gz
--
Path = 1.0.0.0.tar.gz
Type = gzip
Headers Size = 10
Everything is Ok
Size: 3389440
Compressed: 1714336
C:\Users\Administrator\xmake\winenv\bin\7z x -y C:\Users\ADMINI~1\AppData\Local\Temp\.xmake\240907\_2A740D045E2140508F57C6211AF708B0.tar\1.0.0.0.tar -osource.tmp
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive for archives:
1 file, 3389440 bytes (3310 KiB)
Extracting archive: C:\Users\ADMINI~1\AppData\Local\Temp\.xmake\240907\_2A740D045E2140508F57C6211AF708B0.tar\1.0.0.0.tar
--
Path = C:\Users\ADMINI~1\AppData\Local\Temp\.xmake\240907\_2A740D045E2140508F57C6211AF708B0.tar\1.0.0.0.tar
Type = tar
Physical Size = 3389440
Headers Size = 231424
Code Page = UTF-8
Everything is Ok
Folders: 110
Files: 321
Size: 3066112
Compressed: 3389440
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe
checking for the c compiler (cc) ... cl.exe
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe
checking for the c++ compiler (cxx) ... cl.exe
checkinfo: cannot runv(pkgconf.exe --version), No such file or directory
checking for pkgconf ... no
checking for cmake ... C:\Program Files\CMake\bin\cmake
checking for the linker (ld) ... link.exe
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\link.exe
checking for the static library archiver (ar) ... link.exe
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\link.exe
checking for the shared library linker (sh) ... link.exe
C:\Program Files\CMake\bin\cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\Users\Administrator\AppData\Local\.xmake\packages\n\nndeploy\1.0.0+0\d199a18cdafa44a4978b8baa6f734fba -DCMAKE_INSTALL_LIBDIR:PATH=lib -G Ninja -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=pdb -DCMAKE_POSITION_INDEPENDENT_CODE=ON "-DCMAKE_STATIC_LINKER_FLAGS_RELEASE= -nodefaultlib:msvcrt.lib" "-DCMAKE_EXE_LINKER_FLAGS_RELEASE= -nodefaultlib:msvcrt.lib" "-DCMAKE_SHARED_LINKER_FLAGS_RELEASE= -nodefaultlib:msvcrt.lib" "-DCMAKE_C_FLAGS_RELEASE= -MT" "-DCMAKE_CXX_FLAGS_RELEASE= -MT" C:\Users\Administrator\AppData\Local\.xmake\cache\packages\2409\n\nndeploy\1.0.0+0\source
-- The C compiler identification is MSVC 19.41.34120.0
-- The CXX compiler identification is MSVC 19.41.34120.0
-- Detecting C compiler ABI info
CMake Error:
Running
'C:/PROGRA~1/MICROS~3/2022/COMMUN~1/Common7/IDE/COMMON~1/MICROS~1/CMake/Ninja/ninja.exe' '-C' 'C:/Users/Administrator/AppData/Local/.xmake/cache/packages/2409/n/nndeploy/1.0.0+0/source/build/CMakeFiles/CMakeScratch/TryCompile-4gktiv' '-t' 'recompact'
failed with:
ninja: error: build.ninja:35: loading 'CMakeFiles\rules.ninja': 系统找不到指定的文件。
include CMakeFiles\rules.ninja
^ near here
CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerABI.cmake:64 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
error: @programdir\core\sandbox\modules\os.lua:378: execv(C:\Program Files\CMake\bin\cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\Users\Administrator\ CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
error: @programdir\core\sandbox\modules\os.lua:378: execv(C:\Program Files\CMake\bin\cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\Users\Administrator\
-- Configuring incomplete, errors occurred!
error: @programdir\core\sandbox\modules\os.lua:378: execv(C:\Program Files\CMake\bin\cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\Users\Administrator\
-- Configuring incomplete, errors occurred!
error: @programdir\core\sandbox\modules\os.lua:378: execv(C:\Program Files\CMake\bin\cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\Users\Administrator\-- Configuring incomplete, errors occurred!
error: @programdir\core\sandbox\modules\os.lua:378: execv(C:\Program Files\CMake\bin\cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\Users\Administrator\error: @programdir\core\sandbox\modules\os.lua:378: execv(C:\Program Files\CMake\bin\cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\Users\Administrator\AppData\Local\.xmake\packages\n\nndeploy\1.0.0+0\d199a18cdafa44a4978b8baa6f734fba -DCMAKE_INSTALL_LIBDIR:PATH=lib -G Ninja -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=pdb -DCMAKE_POSITION_INDEPENDENT_CODE=ON "-DCMAKE_STATIC_LINKER_FLAGS_RELEASE= -nodefaultlib:msvcrt.lib" "-DCMAKE_EXE_LINKER_FLAGS_RELEASE= -nodefaultlib:msvcrt.lib" "-DCMAKE_SHARED_LINKER_FLAGS_RELEASE= -nodefaultlib:msvcrt.lib" "-DCMAKE_C_FLAGS_RELEASE= -MT" "-DCMAKE_CXX_FLAGS_RELEAd -DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=pdb -DCMAKE_POSITION_INDEPENDENT_CODE=ON "-DCMAKE_STATIC_LINKER_FLAGS_RELEASE= -nodefaultlib:msvcrt.lib" "-DCMAKE_EXE_LINKER_FLAGS_RELEASE= -nodefaultlib:msvcrt.lib" "-DCMAKE_SHARED_LINKER_FLAGS_RELEASE= -nodefaultlib:msvcrt.lib" "-DCMAKE_C_FLAGS_RELEASE= -MT" "-DCMAKE_CXX_FLAGS_RELEA_FLAGS_RELEASE= -nodefaultlib:msvcrt.lib" "-DCMAKE_SHARED_LINKER_FLAGS_RELEASE= -nodefaultlib:msvcrt.lib" "-DCMAKE_C_FLAGS_RELEASE= -MT" "-DCMAKE_CXX_FLAGS_RELEASE= -MT" C:\Users\Administrator\AppData\Local\.xmake\cache\packages\2409\n\nndeploy\1.0.0+0\source) failed(1)
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:973]:
[@programdir\core\sandbox\modules\os.lua:378]:
[@programdir\core\sandbox\modules\os.lua:291]: in function 'vrunv'
[@programdir\modules\package\tools\cmake.lua:1174]: in function 'install'
[...strator\Desktop\xmake-repo\packages\n\nndeploy\xmake.lua:45]: in function 'script'
[...dir\modules\private\action\require\impl\utils\filter.lua:114]: in function 'call'
[...\modules\private\action\require\impl\actions\install.lua:404]:
=> install nndeploy 1.0.0+0 .. failed
error: @programdir\core\main.lua:329: @programdir\modules\async\runjobs.lua:322: ...\modules\private\action\require\impl\actions\install.lua:506: install failed!
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:973]:
[...\modules\private\action\require\impl\actions\install.lua:506]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
[...\modules\private\action\require\impl\actions\install.lua:370]:
[...modules\private\action\require\impl\install_packages.lua:489]: in function 'jobfunc'
[@programdir\modules\async\runjobs.lua:238]:
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:973: in function 'os.raiselevel'
(...tail calls...)
@programdir\core\main.lua:329: in upvalue 'cotask'
@programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>
error: execv(xmake require -f -y --build -v -D --shallow --extra={configs={shared=false}} nndeploy) failed(-1)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
完整包描述
完整错误日志
Beta Was this translation helpful? Give feedback.
All reactions