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环境 #5801

Closed
Elite-stay opened this issue Nov 8, 2024 · 11 comments
Closed

无法识别数据盘上的Qt环境 #5801

Elite-stay opened this issue Nov 8, 2024 · 11 comments
Labels
Milestone

Comments

@Elite-stay
Copy link
Contributor

Xmake 版本

2.9.5

操作系统版本和架构

银河麒麟

描述问题

执行xmake f --qt=/data/Qt5.14.2时,提示Qt SDK directory ... %s,数据盘不是nas的

U5J~IZINO0IQM3UV_}WH9YH

期待的结果

可以正常使用

工程配置

xmake f --qt=/data/Qt5.14.2 -vD

附加信息和错误日志

checking for platform ... linux
checking for architecture ... arm64
checking for gcc ... /usr/bin/gcc
checkinfo: runv(zig version) failed(127)
checking for zig ... no
checkinfo: runv(zig version) failed(127)
checking for zig ... no
checkinfo: runv(nim --version) failed(127)
checking for nim ... no
checkinfo: runv(nim --version) failed(127)
checking for nim ... no
checking for unzip ... /usr/bin/unzip
checking for git ... /usr/bin/git
checking for gzip ... /bin/gzip
checking for tar ... /bin/tar
checking for Qt SDK directory ... %s
checking for Qt SDK version ... no
error: @programdir/core/main.lua:329: @programdir/rules/qt/ui/xmake.lua:35: uic not found!
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:1004]: in function 'raiselevel'
    [@programdir/core/sandbox/modules/utils.lua:143]: in function 'assert'
    [@programdir/rules/qt/ui/xmake.lua:35]: in function 'on_config'
    [...dir/core/sandbox/modules/import/core/project/project.lua:133]: in function '_config_target'
    [...dir/core/sandbox/modules/import/core/project/project.lua:157]: in function '_config_targets'
    [...dir/core/sandbox/modules/import/core/project/project.lua:204]: in function 'load_targets'
    [@programdir/actions/config/main.lua:407]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:241]:
    [@programdir/core/base/task.lua:491]: in function 'run'
    [@programdir/core/main.lua:327]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:406]:

stack traceback:
        [C]: in function 'error'
        @programdir/core/base/os.lua:1004: 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>
@Elite-stay Elite-stay added the bug label Nov 8, 2024
@waruqi
Copy link
Member

waruqi commented Nov 8, 2024

改成 /data/Qt/5.14.2 目录结构试下,然后看下 里面 bin 目录下有没有 qmake

或者自己 加 print 调试下 https://github.com/xmake-io/xmake/blob/dev/xmake/modules/detect/sdks/find_qt.lua

@Issues-translate-bot
Copy link

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


Title: Cannot recognize the Qt environment on the data disk

Xmake version

2.9.5

Operating system version and architecture

Galaxy Kirin

Describe the problem

When executing xmake f --qt=/data/Qt5.14.2, it prompts Qt SDK directory ... %s. The data disk is not NAS.

U5J~IZINO0IQM3UV_}WH9YH

Expected results

Can be used normally

Project configuration

xmake f --qt=/data/Qt5.14.2 -vD

Additional information and error logs

checking for platform... linux
checking for architecture ... arm64
checking for gcc ... /usr/bin/gcc
checkinfo: runv(zig version) failed(127)
checking for zig... no
checkinfo: runv(zig version) failed(127)
checking for zig... no
checkinfo: runv(nim --version) failed(127)
checking for nim... no
checkinfo: runv(nim --version) failed(127)
checking for nim... no
checking for unzip .../usr/bin/unzip
checking for git .../usr/bin/git
checking for gzip .../bin/gzip
checking for tar .../bin/tar
checking for Qt SDK directory ... %s
checking for Qt SDK version ... no
error: @programdir/core/main.lua:329: @programdir/rules/qt/ui/xmake.lua:35: uic not found!
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:1004]: in function 'raiselevel'
    [@programdir/core/sandbox/modules/utils.lua:143]: in function 'assert'
    [@programdir/rules/qt/ui/xmake.lua:35]: in function 'on_config'
    [...dir/core/sandbox/modules/import/core/project/project.lua:133]: in function '_config_target'
    [...dir/core/sandbox/modules/import/core/project/project.lua:157]: in function '_config_targets'
    [...dir/core/sandbox/modules/import/core/project/project.lua:204]: in function 'load_targets'
    [@programdir/actions/config/main.lua:407]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:241]:
    [@programdir/core/base/task.lua:491]: in function 'run'
    [@programdir/core/main.lua:327]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:406]:

stack traceback:
        [C]: in function 'error'
        @programdir/core/base/os.lua:1004: 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>

@Issues-translate-bot
Copy link

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


Try changing the directory structure to /data/Qt/5.14.2, and then check if there is qmake in the bin directory.

Or add print to debug yourself https://github.com/xmake-io/xmake/blob/dev/xmake/modules/detect/sdks/find_qt.lua

@Elite-stay
Copy link
Contributor Author

Elite-stay commented Nov 8, 2024

改成 /data/Qt/5.14.2 目录结构试下,然后看下 里面 bin 目录下有没有 qmake

或者自己 加 print 调试下 https://github.com/xmake-io/xmake/blob/dev/xmake/modules/detect/sdks/find_qt.lua

下载源码编译完了之后,source scripts/srcenv.profile提示权限不够,但是我ls -la看了xmake权限是775呀
企业微信截图_17310348203543

@Issues-translate-bot
Copy link

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


Change the directory structure to /data/Qt/5.14.2 and try it, and then check if there is qmake in the bin directory.

Or add print to debug yourself https://github.com/xmake-io/xmake/blob/dev/xmake/modules/detect/sdks/find_qt.lua

After downloading the source code and compiling it, source scripts/srcenv.profile prompts that the permissions are insufficient, but I checked with ls -la that the xmake permissions are 775.

@waruqi
Copy link
Member

waruqi commented Nov 8, 2024

改成 /data/Qt/5.14.2 目录结构试下,然后看下 里面 bin 目录下有没有 qmake
或者自己 加 print 调试下 https://github.com/xmake-io/xmake/blob/dev/xmake/modules/detect/sdks/find_qt.lua

下载源码编译完了之后,source scripts/srcenv.profile提示权限不够,但是我ls -la看了xmake权限是775呀 企业微信截图_17310348203543

这种权限问题,你自己研究下么,跟 xmake 又没啥关系。chmod 自己搞下

@Issues-translate-bot
Copy link

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


Change the directory structure to /data/Qt/5.14.2 and try it, and then check if there is qmake in the bin directory.
Or add print to debug yourself https://github.com/xmake-io/xmake/blob/dev/xmake/modules/detect/sdks/find_qt.lua

After downloading the source code and compiling it, source scripts/srcenv.profile prompts that the permissions are insufficient, but I ls -la and saw that the xmake permissions are 775! [Enterprise WeChat screenshot_17310348203543](https://private-user- images.githubusercontent.com/9249009/384252560-f39cc9ed-625e-4f02-ac58-fcb32db8cada.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..eSXe4zK9311NdI0mHewN4zuNor0t sxCeANv-csrWIN8)

Should you study this permission issue yourself? It has nothing to do with xmake. chmod and do it yourself

@Elite-stay
Copy link
Contributor Author

应该是权限问题,数据盘是mount出来然后noexec的,应该修一下find_qt.lua_get_qtenvsresults的判断nil就行,这种平时不提示,但是在-v的情况下提示一下比较好?

@Issues-translate-bot
Copy link

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


It should be a permissions issue. The data disk is mounted and then noexec. You should fix the judgment of results in _get_qtenvs of find_qt.lua to nil. This usually does not prompt, but in -v Would it be better to give a hint under the circumstances?

@waruqi
Copy link
Member

waruqi commented Nov 8, 2024

https://github.com/xmake-io/xmake/blob/dev/xmake/modules/detect/sdks/find_qt.lua

提示啥,这种出现概率不到 1% ,有问题调下 find_qt.lua 就行了,加了 logs,也没几个人能修,还是得调这个

@Issues-translate-bot
Copy link

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


https://github.com/xmake-io/xmake/blob/dev/xmake/modules/detect/sdks/find_qt.lua

Tip, the probability of this happening is less than 1%. If there is a problem, just adjust find_qt.lua. After adding logs, few people can fix it. You still need to adjust this.

@waruqi waruqi closed this as completed Nov 10, 2024
@waruqi waruqi added this to the v2.9.7 milestone Nov 10, 2024
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

3 participants