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

无法安装qt 5.15.2 #5534

Open
wang-mengdi opened this issue Oct 18, 2024 · 7 comments
Open

无法安装qt 5.15.2 #5534

wang-mengdi opened this issue Oct 18, 2024 · 7 comments
Labels

Comments

@wang-mengdi
Copy link

Xmake Version

2.9.5

Operating System Version and Architecture

Windows 10, Visual Studio Community 17.11

Describe Bug

daf9e26ab56166dc32bcae2299a695e
在编译项目时安装qt5.15.2失败,提示install failed

Expected Behavior

成功安装qt

Project Configuration

add_rules("mode.debug", "mode.release", "mode.releasedbg")
set_languages("c++17")
set_runtimes("MT")

add_requires("cuda", {system=true})
add_requires("eigen >=3.4.0")
add_requires("fmt =8.1.1")
add_requires("boost =1.78.0")
add_requires("nlohmann_json =3.10.5")
add_requires("polyscope")
add_requires("tbb")
add_requires("qt5base =5.15.2")
add_requires("qt5core")
add_requires("qt5gui")
add_requires("qt5network")
add_requires("qt5webview")
add_requires("qt5widgets")
add_requires("glu")

target("StitchMeshQt")
    add_rules("qt.console")
    add_rules("qt.widgetapp")
    add_frameworks("QtCore", "QtGui", "QtOpenGL", "QtWidgets")
    add_defines("Q_OBJECT", "Q_GADGET", "Q_NAMESPACE", "Q_NAMESPACE_EXPORT")
    add_ldflags("-SUBSYSTEM:CONSOLE")
    set_kind("binary")
    add_includedirs("StitchMeshQt", "persist_contact")
    add_files("StitchMeshQt/*.h") -- add meta header files with Q_OBJECT
    add_files("StitchMeshQt/*.cpp")
    add_files("persist_contact/*.cpp", "persist_contact/*.cu")

    local current_dir = os.curdir()
    if is_plat("windows") then
        current_dir = string.gsub(current_dir, "\\", "/")
    end
    add_defines("PROJECT_ROOT=\"" .. current_dir .. "\"")

    add_packages("cuda")
    add_packages("eigen", "fmt", "boost", "nlohmann_json", "polyscope", "tbb")
    add_packages("qt5base", "qt5core", "qt5gui", "qt5lib", "qt5network", "qt5webview", "qt5widgets")
    add_packages("glu") -- add glu
    if is_plat("windows") then
        add_defines("WIN32")
    end
    add_cugencodes("native","compute_75")
    add_cuflags("-extended-lambda --std=c++17", {force = true})
    add_cuflags("-allow-unsupported-compiler", {force = true})
    if is_plat("windows") then
        add_cuflags("-rdc=true", {force = true})
        --add_ldflags("/utf-8", {force = true})
        --add_cxflags("/utf8")
    end

Additional Information and Error Logs

exec qmake.exe失败,是不是因为user name带了空格?

@waruqi waruqi transferred this issue from xmake-io/xrepo Oct 18, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Cannot install qt 5.15.2

@waruqi
Copy link
Member

waruqi commented Oct 18, 2024

自己加 -vD 看下完整错误,然后提 pr 过来改进

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Add -vD yourself to see the complete error, and then submit a PR to improve it.

@star-hengxing
Copy link
Contributor

建议不要用 xrepo 的 qt,自己单独下(比如用 aqt

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It is recommended not to use xrepo's qt, but to download it yourself (for example, use aqt

@SirLynix
Copy link
Member

建议不要用 xrepo 的 qt,自己单独下(比如用 aqt

why not? xrepo package use aqt, they will get the exact same binaries.

@star-hengxing
Copy link
Contributor

star-hengxing commented Oct 18, 2024

why not? xrepo package use aqt, they will get the exact same binaries.

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

5 participants