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 编译后,无法运行 #63

Open
junkcook opened this issue Dec 27, 2024 · 8 comments
Open

Qt 5.15 编译后,无法运行 #63

junkcook opened this issue Dec 27, 2024 · 8 comments

Comments

@junkcook
Copy link

Snipaste_2024-12-27_17-32-48

@orestonce
Copy link
Owner

  1. 有没有先执行 export/main.go ?
  2. 是不是动态链接的没windeployqt 复制动态库?
  3. 看图标上面有个小盾牌,是需要管理员权限?

@junkcook
Copy link
Author

你好,感谢回复

  1. 执行了 go run export/main.go
  2. 确实是动态链接,但是直接 qt 运行也起不来,报错如下,暂时没查到资料因为啥
  3. 是的 以管理员身份运行了 win11 电脑

Snipaste_2024-12-27_18-14-24

@orestonce
Copy link
Owner

我本地用的也是5.15,可以运行: Qt5.15.3-Windows-x86_64-MinGW8.1.0-staticFull

@orestonce
Copy link
Owner

那你尝试下载一下这个版本的QT来试试:https://build-qt.fsu0413.me/5.15-series/5.15.11-for-windows/index.html

@orestonce
Copy link
Owner

我的是win10的,没有win11的环境所以无法复现你的情况

@orestonce
Copy link
Owner

qt-creator内的报错是说你没有使用管理员权限运行

@junkcook
Copy link
Author

难道是 win11 问题吗? 我用管理员身份,运行编译 qt-creator 能编译过但还是无法运行,报的同样的错误

@orestonce
Copy link
Owner

可能是win11的问题,我想到了另一种可能,你在命令行执行以下 g++ -v,gcc -v,看看这两个命令是不是你的qt对应的编译器,如果不是可能这里有问题

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

No branches or pull requests

2 participants