QuasarApp / CQtDeployer

This project is used to deploy applications written using QML, qt or other С / С++ frameworks.
https://quasarapp.ddns.net:3031/docs/QuasarApp/CQtDeployer/latest/
GNU Lesser General Public License v3.0
570 stars 89 forks source link

"...is not a directory!!" multiple errors #809

Closed avttrue closed 3 months ago

avttrue commented 3 months ago

OS: Linux 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux (KDE Neon, wayland)

CQtDeployer version : 1.6.2351.ec4840f

command line: cqtdeployer -bin MY_APP -extraLibs "libb2,libxcb-cursor,libvdpau_va_gl" -enablePlugins "wayland-graphics-integration-client,wayland-graphics-integration-server" -disablePlugins "platformthemes,styles,wayland-decoration-client" -verbose 3 >&verboselog.txt

I get a lot of errors like "...is not a directory!!". Even the "DistributionKit" catalog is not created.

  • sudo snap connect cqtdeployer:process-control
  • sudo snap connect cqtdeployer:removable-media
  • sudo snap connect cqtdeployer:system-backup

permissions is enabled

verboselog.txt

EndrII commented 3 months ago

Try to add -qmake ... option to your deployment command

avttrue commented 3 months ago

Try to add -qmake ... option to your deployment command

But I not use qmake. This is cmake project.

EndrII commented 3 months ago

it looks as you tried to deploy app in forbidden for snap directory, make sure that you run cqtdeployer in /home/*, /media/* or /mnt/* dirs. If you use the LXD the /root dir is also allowed

avttrue commented 3 months ago

No... ~/Projects/Projects_QT/build-karass-Desktop_Qt_6_7_0-Release$ cqtdeployer -bin karass -extraLibs "libb2,libxcb-cursor,libvdpau_va_gl" -enablePlugins "wayland-graphics-integration-client,wayland-graphics-integration-server" -disablePlugins "platformthemes,styles,wayland-decoration-client" -verbose 3 >&verboselog.txt

EndrII commented 3 months ago
Error: The deployment target requires Qt libraries, but initialize of Qt directories is failed. Please use the qmake option to set a path to the qmake executable.

Do you're sure that your deployed binaries not require qt ? Because cqtdeployer detect qt dependencies. if you want to ignore this error, just use the noQt option

EndrII commented 3 months ago

Try to add -qmake ... option to your deployment command

But I not use qmake. This is cmake project.

Yes but the -qmake option just sets qt paths for cqtdeployer, you must use this option if you deploy qt project if you deploy not a qt project, you must use the noQt option.

EndrII commented 3 months ago

see this issue https://github.com/QuasarApp/CQtDeployer/issues/788

avttrue commented 3 months ago

qmake

Yes, the qmake option helped (it seems) the distribution was assembled, but the errors remained. I just don't know how successful the build was.

verboselog.txt

avttrue commented 3 months ago

Do you're sure that your deployed binaries not require qt ? Because cqtdeployer detect qt dependencies. if you want to ignore this error, just use the noQt option

Error: The deployment target requires Qt libraries, but initialize of Qt directories is failed. Please use the qmake option to set a path to the qmake executable.

The fact is that I previously built distribution kit using this command. But I recently reinstalled Qt.

EndrII commented 3 months ago

qmake

Yes, the qmake option helped (it seems) the distribution was assembled, but the errors remained. I just don't know how successful the build was.

verboselog.txt

About what error you are talking ? output log looks as fine

avttrue commented 3 months ago

About what error you are talking ? output log looks as fine

About is not a directory!! - There were no such messages before.

avttrue commented 3 months ago

see this issue #788

-qtRootDir option would be more understandable, by the way. There is not yet?

avttrue commented 3 months ago

I think the problem is solved, thank you!

EndrII commented 3 months ago

okay close please this issue, if all works fine