-
-
Notifications
You must be signed in to change notification settings - Fork 774
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 在qt.application xmake build 时会默认链接Qt5Qml 如何设置不连接? #570
Comments
qt.application确实会附带qml framework,我现在做了拆分。 gui程序分成两个rules
只有 如果你没用到qml去写gui,可以试试 仅仅设置 你更新下dev分支代码试试,xmake update -s dev |
深夜更新,辛苦你们了,我早上测试了一下 创建qt.widgetapp 模板 可以运行,但是在qt.widgetapp rules下那个控制台还存在,那个好像应该隐藏吧 还有就是自V2.2.8开始在win10 powershell中使用xmake create命令,创建成功后,输出信息 |
我尝试改了下,之前只对msvc工具链设置了-entry:mainCRTStartup入口,mingw的没有,你更新下dev后再试试
这块是由于2.2.8默认放开了emoji显示,这在部分win terminal上也许还不支持显示,dev上我加了个开关来控制,你可以设置 XMAKE_COLORTERM_NOEMOJI=y 环境变量来禁用emoji显示 |
开发者们,你们好,刚才我更新了一下Xmake,xmake build后出错了 关于隐藏控制台,我之前在qt.application rules下 在xmake -v 看到有个-fvisibility=hidden 是不是隐藏控制台窗口的,或者你可以参考QtCreator 中qmake的构建Qt 程序只有界面,没有控制台窗口 |
跟 -fvisibility=hidden 那个没啥关系,我更新了下 你再update dev后试试 |
更新后,依然出现 |
这个flags之前就一直在的,之前没报错? 你敲 -v 编译给我看下完整链接命令 |
昨天深夜你更新的那个就没有出错 |
哦 你从gitee更新的dev,我刚没环境,只在web上改了github的。。你强制从github更新dev吧。。gitee的还没更新 xmake update -s github:xmake-io#dev |
xmake update -s github:xmake-io#dev Please make sure you have the correct access rights 我用git clone -b dev https:/github.com/xmake-ip/xmake.git 程序本来是可以运行的,现在不能运行了 |
哦,那看来跟msvc那样加 -Wl,-entry:mainCRTStartup 还不一定行,我先还原回去了,等回头我有mingw环境了,再给你看看吧,现在身边没mingw环境,也没时间细致调试。。或者等晚上再看看吧。。 如果你有时间,也可以自己修改下安装目录下相关源码,尝试做些修改: Line 239 in 3333ef1
刚敲错了,xmake update -s github:xmake-io/xmake#dev 应该是这个。。 |
嗯,好的 |
你又改了下,你再更新下dev试试 |
佩服您这股子钻研精神,试了dev,好用了,控制台窗口隐藏了 |
ok |
开发者们,你们好,我在window10 系统下使用 mingw gcc9.0 x86_64版本编译了 Qt 5.12.4的Base 模块 默认是没有QML的
我在VSCode 下 配合Xmake 开发Qt界面,在xmake.lua文件中
add_rules(qt.application)
时会默认链接Qt5Qml程序在
add_rules(qt.console)
时是可以运行的,不依赖Qt5Qml请问
在qt.application下有什么方法取消默认链接Qt5Qml?
The text was updated successfully, but these errors were encountered: