state-of-the-art / qt6-docker

This repo contains sources for the dockerhub https://hub.docker.com/r/stateoftheartio/qt6
Apache License 2.0
87 stars 21 forks source link

Qt6-mingw - KF6 missing perl.exe #7

Closed kassane closed 1 year ago

kassane commented 1 year ago

Hi @rabits,

I have been building an image over your image with mingw adding some tools such as KF6 (master) and grantlee. However, it's having trouble generating ECMPo (KSyntaxHighlighting) because perl.exe is missing, even though perl (elf) is detected.

Reference: https://invent.kde.org/frameworks/syntax-highlighting/-/issues/28

rabits commented 1 year ago

Hi @kassane , I'm trying to keep those images as minimal as possible, so if your app requires some additional dependencies, please feel free to add them to your custom image or build additional layer on top of the base image like I described here: https://github.com/state-of-the-art/qt6-docker/issues/1#issuecomment-1112830662

Or if some component is not working correctly - it's probably worth to investigate, so please describe what the preinstalled component is not working in this case.

kassane commented 1 year ago

No worries!

I've tried building each dependency separately from KDE and some fail and also tried craftMaster & ci-utilities, which attempts to merge all framework dependencies, but doesn't cross-compile, so I'll need python3.exe in wine to run it, and the mingw target does all the work. KDE-sysadmin uses windows-runner on gitlab CI for build.

# using python3 - elf
4.160 CraftMaster Arguments: craftmaster/CraftMaster.py --config ci-utilities/craft/qt6/CraftConfig.ini --config-override CI-Craft-Deploy-Config.ini --target=windows-mingw_64-gcc -c -i --no-cache --options virtual.ignored=True craft
4.160 Target windows-mingw_64-gcc is not a valid target. Valid targets are ['linux-64-gcc']

My dockerfile based on your qt6mingw-image: https://gist.github.com/kassane/57fc0024e950ddd730adcdaad6e996b9

rabits commented 1 year ago

Oh, yeah - sorry but building such a huge frameworks could be very complicated, so could wish you only luck with that. The only thing I could recommend is to install python for windows into wine env, because most probably they are using bython-builtin os-detector, which will show linux if you run elf.