Ultimaker / cura-build

Build scripts for Cura
GNU Affero General Public License v3.0
75 stars 116 forks source link

missing directory linux, docker-image:latest /srv/cura-build-environment/lib/plugins #278

Open sqsoft-devops opened 2 years ago

sqsoft-devops commented 2 years ago

I try to build cura on linux image: ultimaker/cura-build-environment:latest newest repo freshlu pulled from github

build fails on

  File "/srv/cura-build-environment/lib/python3.10/site-packages/cx_Freeze/freezer.py", line 1017, in __init__
    super().__init__(*args, **kwargs)
  File "/srv/cura-build-environment/lib/python3.10/site-packages/cx_Freeze/freezer.py", line 101, in __init__
    self.include_files: InternalIncludesList = process_path_specs(
  File "/srv/cura-build-environment/lib/python3.10/site-packages/cx_Freeze/common.py", line 78, in process_path_specs
    raise ConfigError(f"cannot find file/directory named {source!s}")
cx_Freeze.exception.ConfigError: cannot find file/directory named /srv/cura-build-environment/lib/plugins
make[2]: *** [CMakeFiles/packaging.dir/build.make:64: packaging] Error 1
make[1]: *** [CMakeFiles/Makefile2:466: CMakeFiles/packaging.dir/all] Error 2

after look into docker container there is no "plugins" folder in /srv/cura-build-environment/lib

Is there any workaround this error ?

sqsoft-devops commented 2 years ago

Any progress with this error? currently working on this repo https://github.com/sqsoft-devops/cura-build.git I find out that path in packaging/setup_linux.py.in is wrong, it ends on /lib but in image with latest tag Qt repository is under path

@CMAKE_PREFIX_PATH@/lib/python3.10/site-packages/PyQt5/Qt/lib/

And of course you must add ".5" at end of each file also some libQt files is missing :

libQt5Charts.so.5
libQt5DataVisualization.so.5
libQt5SerialBus.so.5

now after add to "build_in_docker.sh" commands to copy this file i've got these error

File "/srv/cura-build-environment/lib/python3.10/pathlib.py", line 816, in relative_to
    raise ValueError("{!r} is not in the subpath of {!r}"
ValueError: '/home/ultimaker/src/output/build/package/usr/bin/plugins/plugins/platformthemes/libselinux.so.1' is not in the subpath of '/home/ultimaker/src/output/build/package/usr/bin/lib' OR one path is relative and the other is absolute.

Can You repair docker image to work properly with newest github repository ?

Ghostkeeper commented 2 years ago

We are currently in the process of updating to Qt6 which changes a LOT of these things. Cx-Freeze is gone entirely, for one, and so is Qt5, so we wouldn't debug this any more for you. The branch where this is going on is CURA-8640_PyQt6_upgrade.