fsu0413 / qtcompile Goto Github PK
View Code? Open in Web Editor NEWPersonal build of Qt5 onwards, with SSL builtin. Multiple configuration available.
Home Page: https://build-qt.fsu0413.me/
Personal build of Qt5 onwards, with SSL builtin. Multiple configuration available.
Home Page: https://build-qt.fsu0413.me/
LINK : fatal error LNK1181: cannot open input file 'E:\postgresql-9.5.3-1-windows-x64-binaries\pgsql\lib\libpq.lib'
我的引擎和游戏在几周前用了5.15.10的安卓版本,一开始还好,上周突然出现了一个严重的Bug,而且只是闪退,我加入的报错、日志什么的完全没有记录,Qt调试安卓只有一句:
W google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
W google-breakpad: Chrome build fingerprint:
W google-breakpad: 70.0.3538.110
W google-breakpad: 353811050
W google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x100 in tid 22781 (qtMainLoopThrea), pid 22748 (amus.MakerFrame)
一开始我以为我代码有问题,但找了一周怎么也找不到,我只好拿出最原始的方案:一段一段的删代码,看看到底哪句有问题,直到我快把引擎代码删完了,才感觉应该是环境的问题,于是我原封不动的用5.15.2编译了下,正常运行,我靠。。。于是我又换回5.15.10,并用NDK(21.4)编译,问题依旧。。真是无语啊。。。
我在github actions上使用macos版本编译一个小样例的时候,发现了这个错误
This is needed for (at least) check if the Qt is usable in QtBase.
(Install directory should be renamed for testing relocation)
This should be a continuation of #22 , which is only for Windows.
编译程序出现以下错误::-1: error: LNK1181: 无法打开输入文件“libssl.lib”
使用的包是:Qt6.5.3-Windows-x86_64-VS2022-17.9.0-staticFull-20240216
是我打开的姿势有问题吗,大佬教教我
Thanks for sharing the qt development kit, it's very useful. Can you add debug version dll and pdb to it for debugging use
Qt5.6.3-Windows-x86-MinGW4.9.4-staticFull-20200104-ManualPatchSslLib.7z 下面的github链接应该是
https://github.com/Fsu0413/QtCompile/releases/download/release-20200707/Qt5.6.3-Windows-x86-MinGW4.9.4-staticFull-20200104-ManualPatchSslLib.7z
https://github.com/Fsu0413/QtCompile/releases/download/release-20200707/Qt5.6.3-Windows-x86-VS2010-staticFull-20200104-ManualPatchSslLib.7z
之前不是用qt5.15.8编译了下我的项目发现两个问题,现在新下载了5.15.10继续编译试了下,解决了个问题,又发现了个新问题:
1、之前说的那个Purchasing库仍然有问题,只要加入就闪退,我也不想折腾啦,反正也用不到。。
2、访问外部文件确实是权限问题,我加了就正常了~
3、新问题,使用QML的时候会报错:
【Warning】qrc:/android_rcc_bundle/qml/QtQuick/Controls/Styles/Android/LabelStyle.qml:94: TypeError: Cannot read property 'ENABLED_SELECTED_STATE_SET' of undefined
【Warning】qrc:/android_rcc_bundle/qml/QtQuick/Controls/Styles/Android/LabelStyle.qml:89: TypeError: Cannot read property 'ENABLED_STATE_SET' of undefined
【Warning】qrc:/android_rcc_bundle/qml/QtQuick/Controls/Styles/Android/LabelStyle.qml:94: TypeError: Cannot read property 'ENABLED_SELECTED_STATE_SET' of undefined
【Warning】qrc:/android_rcc_bundle/qml/QtQuick/Controls/Styles/Android/LabelStyle.qml:89: TypeError: Cannot read property 'ENABLED_STATE_SET' of undefined
好像是安卓的某个组件有问题。。。
我对比了一下Qt5.15.2的安卓库和你编译的5.15.10的v7a和v8a的so库,你的能大个80多M,比如v8a的libc++_shared.so,原版的991k,你的6772k。。请问一下这个库带debug了嘛?还是没有开启优化什么的。。。
What does "Windows-MinGW" use as the backend if not LLVM?
Currently, using Qt 6.6 with the default settings MinGW 64-bit (not sure if its using Qmake or Cmake), however, it won't link to my 32-bit library. I'd like to try using Qt 5.15 but not sure which Qt 5.15 flavor I need to install.. or would be closest to what I'm using with Qt 6.6.
May I ask the author how Qt 5.15 is compiled? Can you introduce the compilation method and steps?
Can the author give your QQ or WeChat contact information? I would like to ask you for advice.
It would be more convenient for user to check what feature has or has not been included.
Just a suggestion.
I use the kit(Qt6.5.3-Windows-x86_64-VS2022-17.9.0-staticFull-20240216) to open a project and then error occurred:
but it set Qt6Core_FOUND to FALSE so package "Qt6Core" is considered to be
NOT FOUND. Reason given by package:
Qt6Core could not be found because dependency WrapOpenSSL could not be
found.
Configuring with --debug-find-pkg=WrapOpenSSL might reveal details why the
package was not found.
Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
of the path variables that find_package uses to try and find the package.
大佬有计划把linux的版本也加入到其中吗?
(Translated)
Do you have any plans for including builds for Linux?
首先很感谢你的分享,这个真的方便了很多人,也包括我,很感谢~
昨天我用你的5.15.8 for android库,编译了我的一个项目,我发现有2个问题:
1、libqt5purchasing.xxx.so 这个库,v7a和v8a,只要携带就会报错(报错原因具体我忘了,翻译过来就是库不适合);
2、编译并安装后,app无法创建文件夹和写文件(读好像可以),哪怕给了读写外部存储空间权限也不行。
上面两个问题我用官方的qt5.15.2的安卓编译均正常,不知哪里有问题,所以想请教一下~
催更一下,hahaha~ 大佬勿怪
非常感谢您分享的Qt构建,另外想问可以用GCC14.1编译么,毕竟14.1已经出了,而且相较13.2对C++23进行了更为完善的支持
刚找了一下,好像没有看到Linux环境的编译版本,可能Linux下用的不多,不过arm架构的国产化机子(UOS、麒麟什么的)现在也慢慢开始流行,所以想问一下大神有没有计划呢?
Qt 5.15 on Windows - Clang versions
Qt 6.2 on Windows - Clang versions (for MSVC only)
Qt 6 Latest on Windows - Clang versions (for MSVC only)
Qt 4.8 (Hard for now since build environment of OpenSSL 1.0.2 series has been defunct)
Qt 4.8 with QtWebKit and backported SChannel SSL backend
Qt 4.8 with QtWebkit and backported SecureTransport SSL backend
Qt 5.15 with QtWebkit 5.212
Qt 5.15 on aarch64 Android using termux
Qt 6.2 on aarch64 Android using termux
说来话长,我只在用Qt5.15.2的安卓开发环境,最近想给引擎加个二维码扫描功能,找了三方开源库,发现QZXing挺不错,就加了进去,没想到有个问题:
win下完全正常,安卓下armeabi-v7a正常,arm64-v8a的应用,只要一解析就报错闪退:
Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x6e6b63db00 in tid 24061 (Thread (pooled)), pid 23955
造成闪退的原因是,一个函数throw出exception,而调用这个函数的函数明明用try包含了但好像没get到(当然不是低级错误,比如类型错误等等),我花了大量的时间去修改和调试,无果,真的是太诡异了,主要是只有arm64-v8a会有这个问题,无论我换安卓、改用NDK其他版本编译、找了大量的fork后又修改了QZXing的源码都没解决。。。
于是想起来要不试试咱这个最新的开发环境(前面那么多废话是原因铺垫),下载、解压、配置环境、编译插件一套步骤下来后,发现上面的问题解决了,但其他问题却更大了。。。
1、QtCreator的编译安卓时,ABIs本来是armeabi-v7a arm64-v8a可以勾选,但全变成arm-linux-android-elf-32bit arm-linux-android-elf-64bit了,虽然可以用自定义步骤来重写一下,但运行真机时居然提示我的机子没有armeabi-v7a arm64-v8a架构,所以不能运行,QtCreator这种Bug我也见多了,现在我还发现两三个bug没解决,但奇怪的是之前是正常的,下载配置了咱这个安卓开发环境后突然就变成这样了。。。
2、purchasing问题依旧(只要加入就闪退)。。。
3、运行我的项目后,发现整个应用程序的大小超出了屏幕(高度超出了大概一个字的距离);
4、继续加载另一个界面(以前都是正常的),会黑屏,看日志报错:
W Qt A11Y : AccessibilityNodeInfo with empty contentDescription: -2147483641
W Qt A11Y : AccessibilityNodeInfo with empty contentDescription: -2147483640
W Qt A11Y : AccessibilityNodeInfo with empty contentDescription: -2147483639
W Qt A11Y : AccessibilityNodeInfo with empty contentDescription: -2147483611
(这几个错误会一直弹)
,再加载其他界面,会有报错:
qrc:/QML/menu.qml:664:5: Type Dialog1.FileDialog unavailable,
qrc:/android_rcc_bundle/qml/QtQuick/Dialogs/DefaultFileDialog.qml: No such file or directory
不知道是不是咱这个版本把 QtQuick.Dialogs 去掉了还是怎么(应该不是,因为PC版的Qt5.15.12是正常的,所以目前完全用不了了。。。
哦对了,NDK21和NDK23两个版本我都试了,错误一致。
1>LINK : fatal error LNK1104: 无法打开文件“D:\Qt5.15.12\lib\Qt5Multimediad.lib”
能编译一下吗.x86的版本
我私以为静态链接,可以直接打包成一个exe,无需依赖其他动态库,但实际运行时发现需要libgcc_s_seh-1,libstdc++-6和 libwinpthread-1三个动态库。虽然可以通过指定静态链接形式,但libwinpthread似乎没有单独静态编译选项。
疑问:
-static-libstdc++
选项一样,如果直接使用-static
也可行,但好像就无法链接其他动态库?(未作验证)A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.