Closed ReneMuala closed 5 months ago
Did you change your package install root and cache directory?
Bot detected the issue body's language is not English, translate it automatically.
Did you change your package install root directory?
Did you change your package install root and cache directory?
No i didn't The only change i made was to the pkg_searchdirs parameter, after multiple failed attempts. After that change i tried manually downloading the package and placing it into the specified folder, but the error persisted. The same issue happens with crow (another cpp package from xrepo)
Any recommendations?
But it works for me. you can update repo and try it again.
xrepo update-repo
xmake f -cvD
xmake
PS C:\Users\wangrunqing\Downloads\test88> xmake f -cvD
checking for platform ... windows
checking for architecture ... x64
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\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
checkinfo: cannot runv(unzip.exe -v), No such file or directory
checking for unzip ... no
checking for 7z ... D:\projects\personal\xmake\xmake\winenv\bin\7z
checking for git ... ok
checkinfo: cannot runv(gzip.exe --version), No such file or directory
checking for gzip ... no
checking for ping ... ok
pinging the host(gitee.com) ... 16 ms
pinging the host(gitlab.com) ... 51 ms
pinging the host(github.com) ... 86 ms
git rev-parse HEAD
checking for nasm ... no
checking for msys2-base ... no
checking for msys2 ... no
finding ffmpeg from xmake ..
checking for xmake::ffmpeg ... no
finding ffmpeg from vcpkg ..
finding ffmpeg from conan ..
finding ffmpeg from pkgconfig ..
checkinfo: cannot runv(pkg-config.exe --version), No such file or directory
checking for pkg-config ... no
checkinfo: cannot runv(pkgconf.exe --version), No such file or directory
checking for pkgconf ... no
finding ffmpeg from system ..
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\bin\HostX64\x64\cl.exe
checking for the c compiler (cc) ... cl.exe
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\cl.exe" -c -nologo -FoC:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_D7C4C4CC996F4B108A43AEF3E55B1950.o C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_775FB00633BC4F66BF87D39CCDE5CF30.c
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\bin\HostX64\x64\cl.exe
checking for the c++ compiler (cxx) ... cl.exe
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\bin\HostX64\x64\link.exe
checking for the linker (ld) ... link.exe
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 ffmpeg.lib -out:C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_D7C4C4CC996F4B108A43AEF3E55B1950.b C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_D7C4C4CC996F4B108A43AEF3E55B1950.o
> checking for c links(ffmpeg)
> checking for c snippet(find_package/ffmpeg)
checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\modules\core\tools\link.lua:175: LINK : fatal error LNK1181: 无法打开输入文件“ffmpeg.lib”
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:973]:
[@programdir\modules\core\tools\link.lua:175]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
[@programdir\modules\core\tools\link.lua:150]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]:
[@programdir\core\tool\linker.lua:221]: in function 'link'
[...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link'
[@programdir\modules\lib\detect\check_cxsnippets.lua:249]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
[@programdir\modules\lib\detect\check_cxsnippets.lua:236]:
[@programdir\modules\package\manager\system\find_package.lua:103]:
[@programdir\modules\package\manager\find_package.lua:84]: in function '_find_package_with_builtin_rule'
[@programdir\modules\package\manager\find_package.lua:130]: in function '_find_package'
[@programdir\modules\package\manager\find_package.lua:194]:
[@programdir\modules\lib\detect\find_package.lua:109]:
[@programdir\core\package\package.lua:1844]: in function '_fetch_library'
[@programdir\core\package\package.lua:2011]: in function 'fetch'
[...modules\private\action\require\impl\install_packages.lua:334]: in function 'jobfunc'
[@programdir\modules\async\runjobs.lua:241]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
[@programdir\modules\async\runjobs.lua:223]: in function 'cotask'
[@programdir\core\base\scheduler.lua:406]:
checking for ffmpeg ... no
finding opencv from xmake ..
checking for xmake::opencv ... no
finding opencv from vcpkg ..
finding opencv from conan ..
finding opencv from pkgconfig ..
finding opencv from system ..
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\cl.exe" -c -nologo -FoC:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_60FDAFA04F184560852E3CD00AD596A0.o C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_775FB00633BC4F66BF87D39CCDE5CF30.c
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 opencv.lib -out:C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_60FDAFA04F184560852E3CD00AD596A0.b C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_60FDAFA04F184560852E3CD00AD596A0.o
> checking for c links(opencv)
> checking for c snippet(find_package/opencv)
checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\modules\core\tools\link.lua:175: LINK : fatal error LNK1181: 无法打开输入文件“opencv.lib”
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:973]:
[@programdir\modules\core\tools\link.lua:175]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
[@programdir\modules\core\tools\link.lua:150]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]:
[@programdir\core\tool\linker.lua:221]: in function 'link'
[...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link'
[@programdir\modules\lib\detect\check_cxsnippets.lua:249]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
[@programdir\modules\lib\detect\check_cxsnippets.lua:236]:
[@programdir\modules\package\manager\system\find_package.lua:103]:
[@programdir\modules\package\manager\find_package.lua:84]: in function '_find_package_with_builtin_rule'
[@programdir\modules\package\manager\find_package.lua:130]: in function '_find_package'
[@programdir\modules\package\manager\find_package.lua:194]:
[@programdir\modules\lib\detect\find_package.lua:109]:
[@programdir\core\package\package.lua:1844]: in function '_fetch_library'
[@programdir\core\package\package.lua:2011]: in function 'fetch'
[...modules\private\action\require\impl\install_packages.lua:334]: in function 'jobfunc'
[@programdir\modules\async\runjobs.lua:241]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
[@programdir\modules\async\runjobs.lua:223]: in function 'cotask'
[@programdir\core\base\scheduler.lua:406]:
checking for opencv ... no
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
-> ffmpeg 7.0 [runtimes:"MT", from:opencv]
-> opencv 4.10.0 [runtimes:"MT"]
please input: y (y/n/m)
D:\projects\personal\xmake\xmake\winenv\bin\7z x -y windows-x64-vc14.40.33807-9295b27e0a6a4e59937d5304f008d730.7z -osource.tmp
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive for archives:
1 file, 21210504 bytes (21 MiB)
Extracting archive: windows-x64-vc14.40.33807-9295b27e0a6a4e59937d5304f008d730.7z
--
Path = windows-x64-vc14.40.33807-9295b27e0a6a4e59937d5304f008d730.7z
Type = 7z
Physical Size = 21210504
Headers Size = 2913
Method = LZMA2:24 BCJ
Solid = +
Blocks = 2
Everything is Ok
Folders: 19
Files: 191
Size: 85488888
Compressed: 21210504
finding ffmpeg from xmake ..
checking for xmake::ffmpeg ... ffmpeg 7.0
{
links = {
"avfilter",
"avdevice",
"avformat",
"avcodec",
"swscale",
"swresample",
"avutil"
},
license = "GPL-3.0",
sysincludedirs = {
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\include"
},
static = true,
version = "7.0",
syslinks = {
"Bcrypt",
"Mfplat",
"mfuuid",
"Ole32",
"Secur32",
"Strmiids",
"User32",
"ws2_32"
},
libfiles = {
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib\avfilter.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib\avdevice.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib\avformat.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib\avcodec.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib\swscale.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib\swresample.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib\avutil.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib\postproc.lib"
},
linkdirs = {
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib"
}
}
checking for C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\bin\HostX64\x64\cl.exe ... ok
checking for flags (-MT) ... ok
> cl.exe "-MT" "-nologo"
checking for flags (cl_external_includedir) ... ok
> cl.exe "-external:W0" "-external:IC:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\include" "-nologo"
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\cl.exe" -c -nologo -MT -external:W0 -external:IC:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\include -FoC:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_A990517038D34160814D273A80208080.o C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_AD7AA359D6414DCEBB9FF18FECD48B8B.c
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 -nodefaultlib:msvcrt.lib -libpath:C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib avfilter.lib avdevice.lib avformat.lib avcodec.lib swscale.lib swresample.lib avutil.lib Bcrypt.lib Mfplat.lib mfuuid.lib Ole32.lib Secur32.lib Strmiids.lib User32.lib ws2_32.lib -out:C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_A990517038D34160814D273A80208080.b C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_A990517038D34160814D273A80208080.o
> checking for c includes(libavformat/avformat.h)
> checking for c funcs(avformat_open_input)
> checking for c links(avfilter, avdevice, avformat, avcodec, swscale, swresample, avutil, Bcrypt, Mfplat, mfuuid, Ole32, Secur32, Strmiids, User32, ws2_32)
> checking for c snippet(has_cfuncs)
=> install ffmpeg 7.0 .. ok
checking for curl ... D:\projects\personal\xmake\xmake\winenv\bin\curl
D:\projects\personal\xmake\xmake\winenv\bin\curl -SL -A "Xmake/2.9.2+wix.eb4ad9b4c (Windows;) curl/8.2.1" https://github.com/xmake-mirror/build-artifacts/releases/download/opencv-4.10.0/windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z -o windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 51.4M 100 51.4M 0 0 10.3M 0 0:00:04 0:00:04 --:--:-- 18.2M
D:\projects\personal\xmake\xmake\winenv\bin\7z x -y windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z -osource.tmp
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive for archives:
1 file, 53918412 bytes (52 MiB)
Extracting archive: windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z
--
Path = windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z
Type = 7z
Physical Size = 53918412
Headers Size = 9876
Method = LZMA2:24 BCJ
Solid = +
Blocks = 2
Everything is Ok
Folders: 96
Files: 687
Size: 446241453
Compressed: 53918412
=> download https://github.com/xmake-mirror/build-artifacts/releases/download/opencv-4.10.0/windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z .. ok
finding opencv from xmake ..
checking for xmake::opencv ... opencv 4.10.0
{
links = {
"opencv_phase_unwrapping4100",
"opencv_surface_matching4100",
"opencv_saliency4100",
"opencv_wechat_qrcode4100",
"opencv_mcc4100",
"opencv_face4100",
"opencv_img_hash4100",
"opencv_videostab4100",
"opencv_structured_light4100",
"opencv_intensity_transform4100",
"opencv_ccalib4100",
"opencv_line_descriptor4100",
"opencv_stereo4100",
"opencv_dnn_objdetect4100",
"opencv_dnn_superres4100",
"opencv_fuzzy4100",
"opencv_hfs4100",
"opencv_rapid4100",
"opencv_bgsegm4100",
"opencv_bioinspired4100",
"opencv_rgbd4100",
"opencv_dpm4100",
"opencv_aruco4100",
"opencv_reg4100",
"opencv_tracking4100",
"opencv_datasets4100",
"opencv_xfeatures2d4100",
"opencv_shape4100",
"opencv_superres4100",
"opencv_plot4100",
"opencv_quality4100",
"opencv_text4100",
"opencv_optflow4100",
"opencv_ximgproc4100",
"opencv_xobjdetect4100",
"opencv_xphoto4100",
"opencv_stitching4100",
"opencv_ml4100",
"opencv_photo4100",
"opencv_gapi4100",
"opencv_objdetect4100",
"opencv_highgui4100",
"opencv_videoio4100",
"opencv_video4100",
"opencv_calib3d4100",
"opencv_dnn4100",
"opencv_features2d4100",
"opencv_flann4100",
"opencv_imgcodecs4100",
"opencv_imgproc4100",
"opencv_core4100",
"ade",
"libjpeg-turbo",
"libpng",
"libprotobuf",
"libtiff",
"libwebp",
"quirc",
"zlib"
},
license = "Apache-2.0",
sysincludedirs = {
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\include"
},
static = true,
version = "4.10.0",
syslinks = {
"gdi32",
"user32",
"glu32",
"opengl32",
"advapi32",
"comdlg32",
"ws2_32"
},
libfiles = {
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_phase_unwrapping4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_surface_matching4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_saliency4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_wechat_qrcode4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_mcc4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_face4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_img_hash4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_videostab4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_structured_light4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_intensity_transform4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_ccalib4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_line_descriptor4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_stereo4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_dnn_objdetect4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_dnn_superres4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_fuzzy4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_hfs4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_rapid4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_bgsegm4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_bioinspired4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_rgbd4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_dpm4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_aruco4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_reg4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_tracking4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_datasets4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_xfeatures2d4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_shape4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_superres4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_plot4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_quality4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_text4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_optflow4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_ximgproc4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_xobjdetect4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_xphoto4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_stitching4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_ml4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_photo4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_gapi4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_objdetect4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_highgui4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_videoio4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_video4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_calib3d4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_dnn4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_features2d4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_flann4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_imgcodecs4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_imgproc4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_core4100.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\ade.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\libjpeg-turbo.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\libpng.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\libprotobuf.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\libtiff.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\libwebp.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\quirc.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\zlib.lib",
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib\opencv_signal4100.lib"
},
linkdirs = {
"C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib"
}
}
opencv_version
4.10.0
checking for flags (-MT) ... ok
> cl.exe "-MT" "-nologo"
checking for flags (cl_external_includedir) ... ok
> cl.exe "-external:W0" "-external:IC:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\include" "-nologo"
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\cl.exe" -c -nologo -MT -std:c++11 /EHsc -external:W0 -external:IC:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\include -external:W0 -external:IC:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\include -FoC:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_36244235C8A44A5089235A7DCD895890.o C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_C595EFB0B9474EA38934169C8482FD35.cpp
cl: 命令行 warning D9002 :忽略未知选项“-std:c++11”
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 -nodefaultlib:msvcrt.lib -libpath:C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib -libpath:C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib opencv_phase_unwrapping4100.lib opencv_surface_matching4100.lib opencv_saliency4100.lib opencv_wechat_qrcode4100.lib opencv_mcc4100.lib opencv_face4100.lib opencv_img_hash4100.lib opencv_videostab4100.lib opencv_structured_light4100.lib opencv_intensity_transform4100.lib opencv_ccalib4100.lib opencv_line_descriptor4100.lib opencv_stereo4100.lib opencv_dnn_objdetect4100.lib opencv_dnn_superres4100.lib opencv_fuzzy4100.lib opencv_hfs4100.lib opencv_rapid4100.lib opencv_bgsegm4100.lib opencv_bioinspired4100.lib opencv_rgbd4100.lib opencv_dpm4100.lib opencv_aruco4100.lib opencv_reg4100.lib opencv_tracking4100.lib opencv_datasets4100.lib opencv_xfeatures2d4100.lib opencv_shape4100.lib opencv_superres4100.lib opencv_plot4100.lib opencv_quality4100.lib opencv_text4100.lib opencv_optflow4100.lib opencv_ximgproc4100.lib opencv_xobjdetect4100.lib opencv_xphoto4100.lib opencv_stitching4100.lib opencv_ml4100.lib opencv_photo4100.lib opencv_gapi4100.lib opencv_objdetect4100.lib opencv_highgui4100.lib opencv_videoio4100.lib opencv_video4100.lib opencv_calib3d4100.lib opencv_dnn4100.lib opencv_features2d4100.lib opencv_flann4100.lib opencv_imgcodecs4100.lib opencv_imgproc4100.lib opencv_core4100.lib ade.lib libjpeg-turbo.lib libpng.lib libprotobuf.lib libtiff.lib libwebp.lib quirc.lib zlib.lib avfilter.lib avdevice.lib avformat.lib avcodec.lib swscale.lib swresample.lib avutil.lib gdi32.lib user32.lib glu32.lib opengl32.lib advapi32.lib comdlg32.lib Bcrypt.lib Mfplat.lib mfuuid.lib Ole32.lib Secur32.lib Strmiids.lib User32.lib ws2_32.lib -out:C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_36244235C8A44A5089235A7DCD895890.b C:\Users\WANGRU~1\AppData\Local\Temp\.xmake\240612\_36244235C8A44A5089235A7DCD895890.o
> checking for c++ includes(opencv2/opencv.hpp)
> checking for c++ links(opencv_phase_unwrapping4100, opencv_surface_matching4100, opencv_saliency4100, opencv_wechat_qrcode4100, opencv_mcc4100, opencv_face4100, opencv_img_hash4100, opencv_videostab4100, opencv_structured_light4100, opencv_intensity_transform4100, opencv_ccalib4100, opencv_line_descriptor4100, opencv_stereo4100, opencv_dnn_objdetect4100, opencv_dnn_superres4100, opencv_fuzzy4100, opencv_hfs4100, opencv_rapid4100, opencv_bgsegm4100, opencv_bioinspired4100, opencv_rgbd4100, opencv_dpm4100, opencv_aruco4100, opencv_reg4100, opencv_tracking4100, opencv_datasets4100, opencv_xfeatures2d4100, opencv_shape4100, opencv_superres4100, opencv_plot4100, opencv_quality4100, opencv_text4100, opencv_optflow4100, opencv_ximgproc4100, opencv_xobjdetect4100, opencv_xphoto4100, opencv_stitching4100, opencv_ml4100, opencv_photo4100, opencv_gapi4100, opencv_objdetect4100, opencv_highgui4100, opencv_videoio4100, opencv_video4100, opencv_calib3d4100, opencv_dnn4100, opencv_features2d4100, opencv_flann4100, opencv_imgcodecs4100, opencv_imgproc4100, opencv_core4100, ade, libjpeg-turbo, libpng, libprotobuf, libtiff, libwebp, quirc, zlib, avfilter, avdevice, avformat, avcodec, swscale, swresample, avutil, gdi32, user32, glu32, opengl32, advapi32, comdlg32, Bcrypt, Mfplat, mfuuid, Ole32, Secur32, Strmiids, User32, ws2_32)
> checking for c++ snippet(test)
=> install opencv 4.10.0 .. ok
configure
{
kind = static
vs = 2022
buildir = build
clean = true
ndk_stdcxx = true
arch = x64
mode = release
proxy_pac = pac.lua
network = public
host = windows
plat = windows
ccache = true
theme = default
}
PS C:\Users\wangrunqing\Downloads\test88> xmake -rv
checking for the c++ compiler (cxx) ... cl.exe
checking for flags (-O2) ... ok
checking for flags (-DNDEBUG) ... ok
[ 50%]: compiling.release src\main.cpp
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\cl.exe" -c -nologo -O2 /EHsc -external:W0 -external:IC:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\include -external:W0 -external:IC:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\include -DNDEBUG -Fobuild\.objs\test88\windows\x64\release\src\main.cpp.obj src\main.cpp
checking for flags (cl_sourceDependencies) ... ok
[ 75%]: linking.release test88.exe
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 -libpath:C:\Users\wangrunqing\AppData\Local\.xmake\packages\o\opencv\4.10.0\d6c6c480e6414e34a4d6e6711fba5e82\x64\vc17\staticlib -libpath:C:\Users\wangrunqing\AppData\Local\.xmake\packages\f\ffmpeg\7.0\9295b27e0a6a4e59937d5304f008d730\lib /opt:ref /opt:icf opencv_phase_unwrapping4100.lib opencv_surface_matching4100.lib opencv_saliency4100.lib opencv_wechat_qrcode4100.lib opencv_mcc4100.lib opencv_face4100.lib opencv_img_hash4100.lib opencv_videostab4100.lib opencv_structured_light4100.lib opencv_intensity_transform4100.lib opencv_ccalib4100.lib opencv_line_descriptor4100.lib opencv_stereo4100.lib opencv_dnn_objdetect4100.lib opencv_dnn_superres4100.lib opencv_fuzzy4100.lib opencv_hfs4100.lib opencv_rapid4100.lib opencv_bgsegm4100.lib opencv_bioinspired4100.lib opencv_rgbd4100.lib opencv_dpm4100.lib opencv_aruco4100.lib opencv_reg4100.lib opencv_tracking4100.lib opencv_datasets4100.lib opencv_xfeatures2d4100.lib opencv_shape4100.lib opencv_superres4100.lib opencv_plot4100.lib opencv_quality4100.lib opencv_text4100.lib opencv_optflow4100.lib opencv_ximgproc4100.lib opencv_xobjdetect4100.lib opencv_xphoto4100.lib opencv_stitching4100.lib opencv_ml4100.lib opencv_photo4100.lib opencv_gapi4100.lib opencv_objdetect4100.lib opencv_highgui4100.lib opencv_videoio4100.lib opencv_video4100.lib opencv_calib3d4100.lib opencv_dnn4100.lib opencv_features2d4100.lib opencv_flann4100.lib opencv_imgcodecs4100.lib opencv_imgproc4100.lib opencv_core4100.lib ade.lib libjpeg-turbo.lib libpng.lib libprotobuf.lib libtiff.lib libwebp.lib quirc.lib zlib.lib avfilter.lib avdevice.lib avformat.lib avcodec.lib swscale.lib swresample.lib avutil.lib gdi32.lib user32.lib glu32.lib opengl32.lib advapi32.lib comdlg32.lib ws2_32.lib Bcrypt.lib Mfplat.lib mfuuid.lib Ole32.lib Secur32.lib Strmiids.lib User32.lib -out:build\windows\x64\release\test88.exe build\.objs\test88\windows\x64\release\src\main.cpp.obj
checking for the c compiler (cc) ... cl.exe
[100%]: build ok, spent 1.468s
When i tried that i got the following output:
xrepo update-repo
>> xmake f -cvD
updating repositories .. ok
checking for platform ... windows
checking for architecture ... x64
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.40.33808
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
checkinfo: cannot runv(unzip.exe -v), No such file or directory
checking for unzip ... no
checking for 7z ... C:\Users\dte\xmake\winenv\bin\7z
checking for git ... ok
checkinfo: cannot runv(gzip.exe --version), No such file or directory
checking for gzip ... no
git rev-parse HEAD
checking for nasm ... no
checking for msys2-base ... no
checking for msys2 ... no
finding ffmpeg from xmake ..
checking for xmake::ffmpeg ... ffmpeg 7.0
finding opencv from xmake ..
checking for xmake::opencv ... no
finding opencv from vcpkg ..
finding opencv from conan ..
finding opencv from pkgconfig ..
checkinfo: cannot runv(pkg-config.exe --version), No such file or directory
checking for pkg-config ... no
checkinfo: cannot runv(pkgconf.exe --version), No such file or directory
checking for pkgconf ... no
finding opencv from system ..
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\cl.exe
checking for the c compiler (cc) ... cl.exe
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.40.33807\\bin\\HostX64\\x64\\cl.exe" -c -nologo -FoC:\Users\dte\AppData\Local\Temp\.xmake\240619\_31C115C57F3241208278471A01307890.o C:\Users\dte\AppData\Local\Temp\.xmake\240619\_775FB00633BC4F66BF87D39CCDE5CF30.c
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\cl.exe
checking for the c++ compiler (cxx) ... cl.exe
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\link.exe
checking for the linker (ld) ... link.exe
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.40.33807\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 opencv.lib -out:C:\Users\dte\AppData\Local\Temp\.xmake\240619\_31C115C57F3241208278471A01307890.b C:\Users\dte\AppData\Local\Temp\.xmake\240619\_31C115C57F3241208278471A01307890.o
> checking for c links(opencv)
> checking for c snippet(find_package/opencv)
checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\modules\core\tools\link.lua:175: LINK : fatal error LNK1181: cannot open input file 'opencv.lib'
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:973]:
[@programdir\modules\core\tools\link.lua:175]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
[@programdir\modules\core\tools\link.lua:150]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]:
[@programdir\core\tool\linker.lua:221]: in function 'link'
[...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link'
[@programdir\modules\lib\detect\check_cxsnippets.lua:249]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
[@programdir\modules\lib\detect\check_cxsnippets.lua:236]:
[@programdir\modules\package\manager\system\find_package.lua:103]:
[@programdir\modules\package\manager\find_package.lua:84]: in function '_find_package_with_builtin_rule'
[@programdir\modules\package\manager\find_package.lua:130]: in function '_find_package'
[@programdir\modules\package\manager\find_package.lua:194]:
[@programdir\modules\lib\detect\find_package.lua:109]:
[@programdir\core\package\package.lua:1844]: in function '_fetch_library'
[@programdir\core\package\package.lua:2011]: in function 'fetch'
[...modules\private\action\require\impl\install_packages.lua:334]: in function 'jobfunc'
[@programdir\modules\async\runjobs.lua:241]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
[@programdir\modules\async\runjobs.lua:223]: in function 'cotask'
[@programdir\core\base\scheduler.lua:406]:
checking for opencv ... no
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
-> opencv 4.10.0 [runtimes:"MT"]
please input: y (y/n/m)
y
checking for ping ... ok
pinging the host(github.com) ... 35 ms
checking for curl ... C:\Users\dte\xmake\winenv\bin\curl
C:\Users\dte\xmake\winenv\bin\curl -SL -A "Xmake/2.9.2+master.c0ce25f5e (Windows;) curl/8.2.1" https://github.com/xmake-mirror/build-artifacts/releases/download/opencv-4.10.0/windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z -o windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 51.4M 100 51.4M 0 0 3787k 0 0:00:13 0:00:13 --:--:-- 3868k
C:\Users\dte\xmake\winenv\bin\7z x -y windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z -osource.tmp
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive for archives:
1 file, 53918412 bytes (52 MiB)
Extracting archive: windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z
--
Path = windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z
Type = 7z
Physical Size = 53918412
Headers Size = 9876
Method = LZMA2:24 BCJ
Solid = +
Blocks = 2
Everything is Ok
Folders: 96
Files: 687
Size: 446241453
Compressed: 53918412
error: @programdir\core\sandbox\modules\os.lua:111: cannot move source.tmp\o to source Permission denied
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:973]:
[@programdir\core\sandbox\modules\os.lua:111]: in function 'mv'
[...modules\private\action\require\impl\actions\download.lua:228]: in function '_download'
[...modules\private\action\require\impl\actions\download.lua:357]:
=> download https://github.com/xmake-mirror/build-artifacts/releases/download/opencv-4.10.0/windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z .. failed
we can also download these packages manually:
- https://github.com/xmake-mirror/build-artifacts/releases/download/opencv-4.10.0/windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z
to the local search directories: ./
- windows-x64-vc14.40.33807-d6c6c480e6414e34a4d6e6711fba5e82.7z, opencv-4.10.0.7z
and we can run `xmake g --pkg_searchdirs=/xxx` to set the search directories.
error: @programdir\core\main.lua:329: @programdir\modules\async\runjobs.lua:325: ...modules\private\action\require\impl\actions\download.lua:411:
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:973]:
[...modules\private\action\require\impl\actions\download.lua:411]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
[...modules\private\action\require\impl\actions\download.lua:329]:
[...modules\private\action\require\impl\install_packages.lua:482]: in function 'jobfunc'
[@programdir\modules\async\runjobs.lua:241]:
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>
After some retries it worked.
xrepo update-repo
(as indicated by @waruqi )Thanks @waruqi
Bot detected the issue body's language is not English, translate it automatically.
Thanks @waruqi
Xmake Version
v2.9.2+master.c0ce25f5e
Operating System Version and Architecture
Windows 11 Pro 22H2 x64
Describe Bug
xmake runs into an error when installing opencv package.
Expected Behavior
xmake should install opencv 4.9.0
Project Configuration
add_rules("plugin.compile_commands.autoupdate", {outputdir = "."}) add_requires("drogon") add_requires("oatpp") add_requires("opencv")
target("hello-world") set_kind("binary") set_languages("c++17") setprefixname("drogon")
Additional Information and Error Logs