![]() The change in behaviour from Qt 5.14 to 5.15 seems to have been caused by the following change: Building from sources fails on macOS with MimeTypeDatabaseOriginalSize error The following bug report is very close to the problem that Dries is facing: Mimetypes\qmimeprovider.cpp:633:52: note: suggested alternative: 'QMimeDatabasePrivate'Īny ideas why this is caused and how this can get fixed? Q_STATIC_ASSERT_X(sizeof(mimetype_database) <= MimeTypeDatabaseOriginalSize, Mimetypes\qmimeprovider.cpp:633:52: error: 'MimeTypeDatabaseOriginalSize' was not declared in this scope Mimetypes\qmimeprovider.cpp:632:30: note: suggested alternative: 'mimeTypeForName' # define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message) Global/qglobal.h:121:68: note: in definition of macro 'Q_STATIC_ASSERT_X' Q_STATIC_ASSERT_X(sizeof(mimetype_database), "Bundled MIME database is empty") Mimetypes\qmimeprovider.cpp:632:30: error: 'mimetype_database' was not declared in this scope QMimeXMLProvider::InternalDatabaseEnum)': Mimetypes\qmimeprovider.cpp: In constructor 'QMimeXMLProvider::QMimeXMLProvider(QMimeDatabasePrivate*, The issue has also been reported here: but no reply has been posted to that forum. The proposed resolution qt QTBUG-81484 seems to imply that a problem with the system's Perl installation is causing the qtbase/src/corelib/mimetypes/mime/ script to fail (and thus the Mime Type Database is not generated correctly). This could potentially explain why building a static version of 5.15.1 from source succeeds under Linux but fails under Windows. ![]() I have Strawberry Perl (correctly) installed on my system, but I will try with Activestate Perl (that the Qt project document on static building recommends) and I will report any progress. This will not include perl interpreter code inside the executable, reducing the size of the executable, however you will need to provide perl5x.dll in the same directory as your executable, or include it on the PATH environment variable.In the meantime, if any other member of the forum has more information (in addition to words of encouragement to search the bug tracker) it would be most helpful!Īfter analyzing the output from my copy of the powershell script, I discovered that these two commands are not running properly: cmd /c D:\Qt\5.12.2-static-mingw\src\qt-everywhere-src-5.15.2\qtbase\src\corelib\mimetypes\mime\generate.bat mimetypes\mime\packages\ >. Note: You can use the -d command line switch in order to reduce the size of the executable. Which will produce a myScript.exe which is a standalone executable (no external perl interpreter is needed).c:\strawberry\perl\site\bin\pp.bat -o myScript.exe.Once installation is complete, you can simply run:. ![]() In the client console that opens, type:.through start menu -> All programs -> Strawberry Perl -> Tools), and invoke CPAN Client ![]() Once installed, open Strawberry Perl Tools (e.g.I used 5.16.3.1 because I wanted to try out perl2exe as well, while I'm at it (perl2exe at the time supported only up to 5.16.3 version of perl).Install Strawberry Perl for windows (I installed strawberry-perl-5.16.3.1-64bit.msi).I know this is a relatively old question, but for the sake of others, here is a solution that worked for me using pp ( Par Packager): ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |