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.widgetapp 脚手架工程编译不过 #2388

Closed
afoolsbag opened this issue May 27, 2022 · 1 comment
Closed

内置 qt.widgetapp 脚手架工程编译不过 #2388

afoolsbag opened this issue May 27, 2022 · 1 comment
Labels

Comments

@afoolsbag
Copy link

Xmake 版本

xmake v2.6.6+HEAD.da8dc993f

操作系统版本和架构

Windows 10 version 21H2

描述问题

将 Xmake 从 v2.6.5 升级到 v2.6.6 后,编译 Qt Widgets 工程失败,遂尝试编译最简的脚手架工程,依然失败。

命令如下:

workspace> xmake create -t qt.widgetapp testqt
create testqt ...
  [+]: src\main.cpp
  [+]: src\mainwindow.cpp
  [+]: src\mainwindow.h
  [+]: src\mainwindow.ui
  [+]: xmake.lua
  [+]: .gitignore
create ok!

workspace> cd testqt

workspace\testqt> xmake f --qt=D:\Qt\6.3.0\msvc2019_64\
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Qt SDK directory ... D:/Qt/6.3.0/msvc2019_64
checking for Qt SDK version ... 6.3.0

workspace\testqt> xmake
[ 14%]: compiling.qt.ui src\mainwindow.ui
error: method 'str' is not callable (a nil value)

期待的结果

编译通过。

工程配置

No response

附加信息和错误日志

workspace\testqt> xmake -vD
error: @programdir\core\main.lua:280: @programdir\actions\build\main.lua:166: ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:96: ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:56: @programdir\modules\private\async\runjobs.lua:256: @programdir\core\base\path.lua:132: method 'str' is not callable (a nil value)
stack traceback:
    [@programdir\core\base\path.lua:132]: in function 'concat'
    [@programdir\modules\core\tools\cl.lua:506]:
    [@programdir\modules\private\utils\batchcmds.lua:242]: in function 'compile'
    [@programdir\rules\qt\moc\xmake.lua:95]: in function 'script'
    [@programdir\actions\build\kinds\object.lua:86]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:872: in function 'os.raiselevel'
        (...tail calls...)
        @programdir\modules\private\async\runjobs.lua:256: in field 'catch'
        @programdir\core\sandbox\modules\try.lua:127: in global 'try'
        @programdir\modules\private\async\runjobs.lua:218: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:388: in function <@programdir\core\base\scheduler.lua:385>
stack traceback:
        @programdir\core\base\utils.lua:290: in function <@programdir\core\base\utils.lua:280>
        [C]: in function 'error'
        @programdir\core\base\os.lua:872: in function 'os.raiselevel'
        (...tail calls...)
        ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:56: in field 'co_start_withopt'
        @programdir\modules\private\async\runjobs.lua:217: in function <@programdir\modules\private\async\runjobs.lua:162>
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'base/utils.trycall'
        @programdir\core\base\scheduler.lua:504: in function 'base/scheduler.co_group_begin'
        ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:94: in field 'co_group_begin'
        @programdir\modules\private\async\runjobs.lua:162: in function <@programdir\modules\private\async\runjobs.lua:56>
        (...tail calls...)
        @programdir\actions\build\build.lua:252: in function <@programdir\actions\build\build.lua:240>
        (...tail calls...)
        @programdir\actions\build\main.lua:103: in global '_do_build'
        @programdir\actions\build\main.lua:150: in function <@programdir\actions\build\main.lua:144>
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'base/utils.trycall'
        @programdir\core\sandbox\modules\try.lua:121: in global 'try'
        @programdir\actions\build\main.lua:142: in function <@programdir\actions\build\main.lua:108>
        (...tail calls...)
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'base/utils.trycall'
        (...tail calls...)
        @programdir\core\base\task.lua:519: in function 'base/task.run'
        @programdir\core\main.lua:278: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:388: in function <@programdir\core\base\scheduler.lua:385>
stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:872: in function 'os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:280: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:388: in function <@programdir\core\base\scheduler.lua:385>
@afoolsbag afoolsbag added the bug label May 27, 2022
@waruqi
Copy link
Member

waruqi commented May 27, 2022

这个问题 我master之前修复了,先直接更新到master,近期我会发新版更新

xmake update -s master

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