Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install python, as dependency of OpenCV #6180

Open
morganwu opened this issue Jan 19, 2025 · 3 comments
Open

Fail to install python, as dependency of OpenCV #6180

morganwu opened this issue Jan 19, 2025 · 3 comments
Labels

Comments

@morganwu
Copy link

Xmake Version

v2.9.7+20241219

Operating System Version and Architecture

MacOS 15.2 (24C101)

Describe Bug

After uninstalling opencv and python3.13 in homebrew, no luck neither.

Expected Behavior

Success

Project Configuration

add_rules("mode.debug", "mode.release")

set_languages("c++20")

if is_plat("macosx") then
    print("MacOS on arm64, use llvm sdk\r\n")
    set_toolchains("llvm")
    set_config("sdk", "/opt/homebrew/opt/llvm")
end

add_requires("opencv 4.10.0")
add_requires("tinyxml2 >= 9.0.0")

add_includedirs("src", "src/module")
add_defines("_GenlCam_AAC", "_DEBUGGING")

target("Lib")
    set_kind("shared")
    add_files("src/*.cpp", "src/module/*.cpp")
    add_packages("tinyxml2", "opencv")

target("Bin")
    set_kind("binary")
    add_files("src/*.cpp", "src/module/*.cpp")

    add_packages("tinyxml2", "opencv")

    on_install(function () 
        os.cp("$(scriptdir)/src/projectTemplate.json", "$(buildir)/")
        print("projectTemplate copied\r\n")
    end)

Additional Information and Error Logs

[install.txt](https://github.com/user-attachments/files/18467385/install.txt)

% xrepo install opencv       
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> python 3.13.0 [host, binary, from:opencv, license:PSF]
  -> opencv 4.10.0 [license:Apache-2.0]
please input: y (y/n/m)
y
  => install python 3.13.0 .. failed

find: build: No such file or directory
find: build: No such file or directory
find: build: No such file or directory
find: build: No such file or directory
make[2]: [clean-retain-profile] Error 1 (ignored)
warning: /Users/wuzixiu/.xmake/cache/packages/2501/p/python/3.13.0/source/code-76167.profclangr: raw profile version mismatch: Profile uses raw profile format version = 8; expected version = 10
PLEASE update this tool to version in the raw profile, or regenerate raw profile with expected version.
warning: /Users/wuzixiu/.xmake/cache/packages/2501/p/python/3.13.0/source/code-76193.profclangr: raw profile version mismatch: Profile uses raw profile format version = 8; expected version = 10
PLEASE update this tool to version in the raw profile, or regenerate raw profile with expected version.
warning: /Users/wuzixiu/.xmake/cache/packages/2501/p/python/3.13.0/source/code-76303.profclangr: raw profile version mismatch: Profile uses raw profile format version = 8; expected version = 10
PLEASE update this tool to version in the raw profile, or regenerate raw profile with expected version.
warning: /Users/wuzixiu/.xmake/cache/packages/2501/p/python/3.13.0/source/code-76312.profclangr: raw profile version mismatch: Profile uses raw profile format version = 8; expected version = 10
PLEASE update this tool to version in the raw profile, or regenerate raw profile with expected version.
warning: /Users/wuzixiu/.xmake/cache/packages/2501/p/python/3.13.0/source/code-76320.profclangr: raw profile version mismatch: Profile uses raw profile format version = 8; expected version = 10

[install.txt](https://github.com/user-attachments/files/18467373/install.txt)

PLEASE update this tool to version in the raw profile, or regenerate raw profile with expected version.
warning: /Users/wuzixiu/.xmake/cache/packages/2501/p/python/3.13.0/source/code-76328.profclangr: raw profile version mismatch: Profile uses raw profile format version = 8; expected version = 10
PLEASE update this tool to version in the raw profile, or regenerate raw profile with expected version.
if you want to get more verbose errors, please see:
  -> /Users/wuzixiu/.xmake/cache/packages/2501/p/python/3.13.0/installdir.failed/logs/install.txt
@morganwu morganwu added the bug label Jan 19, 2025
@waruqi
Copy link
Member

waruqi commented Jan 19, 2025

please provide logs with -vD

@morganwu
Copy link
Author

xmake_install_opencv.txt
The attached please find more details, thanks.

@waruqi
Copy link
Member

waruqi commented Jan 20, 2025

/opt/homebrew/opt/llvm/bin/llvm-profdata merge -output="/Users/wuzixiu/.xmake/cache/packages/2501/p/python/3.13.0/source/code.profclangd" "/Users/wuzixiu/.xmake/cache/packages/2501/p/python/3.13.0/source"/*.profclangr
warning: /Users/wuzixiu/.xmake/cache/packages/2501/p/python/3.13.0/source/code-34671.profclangr: raw profile version mismatch: Profile uses raw profile format version = 8; expected version = 10
PLEASE update this tool to version in the raw profile, or regenerate raw profile with expected version.

maybe python/3.13.0/source/code-34671.profclangr use version 8, but your homebrew/opt/llvm/bin/llvm-profdata is using version 10.

But I don't known how to fix it.

you can check python/configure and debug this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants