Bug 475762 - resources\icudtl.dat does not exist
Summary: resources\icudtl.dat does not exist
Status: REPORTED
Alias: None
Product: Craft
Classification: Unmaintained
Component: Core (other bugs)
Version First Reported In: stable
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-17 19:17 UTC by Camila
Modified: 2023-10-24 15:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Camila 2023-10-17 19:17:26 UTC
SUMMARY
The qtwebengine is one of the dependencies of the Nextcloud desktop client.
https://github.com/nextcloud/desktop-client-blueprints/blob/95359aee3ef7a36e6d6f637fcb3f282d978eb085/nextcloud-client/nextcloud-client.py#L22C35-L22C55
When using Craft, the resources folder required is not created. 
Running windeployqt fails with "C:\Craft64\resources\icudtl.dat does not exist."

STEPS TO REPRODUCE
1. Install Craft on Windows 11 following the instructions in https://community.kde.org/Get_Involved/development/Windows
2. craft --add-blueprint-repository [git]https://github.com/nextcloud/desktop-client-blueprints.git
3. craft craft
4. craft --install-deps nextcloud-client
5. Build the desktop client (using the scripts in https://github.com/nextcloud/client-building/)
6. Run windeployqt to collect the dependencies.

OBSERVED RESULT
The resources was folder not created, the missing files are located in the bin folder.

Logs:
"* Run windeployqt to collect all Nextcloud.exe dependencies and output it to client-building/install/Release/Win64/qt-libs/."
Creating client-building\install\Release\Win64\qt-libs\...
client-building\install\Release\Win64\bin\Nextcloud.exe 64 bit, release executable [QML]
Scanning client-building\desktop\src\gui:
QML imports:
...
...
qsgd3d12backend.dll is up to date.
qwindowsvistastyle.dll is up to date.
Creating client-building\install\Release\Win64\qt-libs\\resources...
C:\Craft64\resources\icudtl.dat does not exist.


EXPECTED RESULT
There should be a resources folder with the expected files as listed in
https://doc.qt.io/qt-5/qtwebengine-deploying.html#deploying-resources

SOFTWARE/OS VERSIONS
Windows:  11
Qt Version: Qt 5.15.10

ADDITIONAL INFORMATION
The workaround is to create a resources folder and copy the missing files from the bin folder.
Comment 1 Hannah von Reth 2023-10-24 15:25:58 UTC
In our build the file is called bin/icudtl.dat .
Craft does not support windeployqt.
I'd recommend to use craft itself for the deployment.
craft --options "[Packager]PackageType=CreateArchivePackager" --package nextcloud-client
Will deploy all files needed to build/.../nextcloud-client/archive which then can be used for the installer.
You might still need to add a qt.conf