[Craft] [Bug 429511] New: QMimeDatabase: Error loading internal MIME data

george fb bugzilla_noreply at kde.org
Sun Nov 22 16:36:07 GMT 2020


https://bugs.kde.org/show_bug.cgi?id=429511

            Bug ID: 429511
           Summary: QMimeDatabase: Error loading internal MIME data
           Product: Craft
           Version: unspecified
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Core
          Assignee: vonreth at kde.org
          Reporter: georgefb899 at gmail.com
                CC: kde-windows at kde.org
  Target Milestone: ---

SUMMARY

Qt installed by craft fails to find/load the mime database, if I use qt
installed through the online installer it works.


STEPS TO REPRODUCE
1. Set up craft and install qtbase
2. In Qt Creator create new qt widgets application
3. add QMimeDatabase db; qDebug() << db.allMimeTypes(); to main function
4. run

OBSERVED RESULT
QMimeDatabase: Error loading internal MIME data
An error has been encountered at line 1 of <internal MIME data>: Premature end
of document.:
()

EXPECTED RESULT
Mime types database is loaded and all types are printed

SOFTWARE/OS VERSIONS
Windows: 10 Pro
Version: 20H2
OS build: 19042.630
Experience: Windows Feature Experience Pack 120.2212.31.0

Qt Version: 5.15.1

ADDITIONAL INFORMATION
I have a freedesktop.org.xml and kde5.xml in
C:\CraftRoot\bin\data\mime\packages.
QT Creator is installed through chocolatey since craft fails to install it.

------- QT Kit -------
C++ compiler: C:\CraftRoot\mingw64\bin\g++.exe
C compiler: C:\CraftRoot\mingw64\bin\gcc.exe
gdb: C:\CraftRoot\mingw64\bin\gdb.exe
CMake: C:\CraftRoot\dev-utils\cmake-base\bin\cmake.exe
qmake:C:\CraftRoot\bin\qmake.exe

Environment
PATH=$(PATH);C:\CraftRoot\bin;C:\CraftRoot\dev-utils\bin\;C:\CraftRoot\mingw64\bin
QT_ASSUME_STDERR_HAS_CONSOLE=1

CMake config
CMAKE_CXX_COMPILER:STRING=%{Compiler:Executable:Cxx}
CMAKE_C_COMPILER:STRING=%{Compiler:Executable:C}
CMAKE_PREFIX_PATH:STRING=%{Qt:QT_INSTALL_PREFIX};C:\CraftRoot
QT_QMAKE_EXECUTABLE:STRING=%{Qt:qmakeExecutable}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Kde-windows mailing list