probonopd / linuxdeployqt

Makes Linux applications self-contained by copying in the libraries and plugins that the application uses, and optionally generates an AppImage. Can be used for Qt and other applications
Other
2.22k stars 414 forks source link

Can't find QSql dependencies even though I don't use QSql #592

Open DavidLazarescu opened 1 year ago

DavidLazarescu commented 1 year ago

I am getting the following method when trying to create an app image from my application.

8f99234b-61c8-474b-a815-f926d9668e58

I only use the following Qt modules though: find_package(Qt6 6.5 REQUIRED COMPONENTS Core Quick Widgets Network Gui QuickControls2 Test) thus I suppose that this could be a bug.

I'd appreciate any help on this.

probonopd commented 1 year ago

Please check what might be drawing in sql by running, prior to running linuxdeployqt, on your AppDir:

grep -i -e sql ./Your.AppDir

and the same for your qml directory.

DavidLazarescu commented 1 year ago

Please check what might be drawing in sql by running, prior to running linuxdeployqt, on your AppDir:

grep -i -e sql ./Your.AppDir

and the same for your qml directory.

Nothing in my src directory mentions sql

DavidLazarescu commented 1 year ago

The only thing that I was able to find is this in the CMakeCache.txt image

probonopd commented 1 year ago

Oh, it's Qt6. I never even tested linuxdeployqt with that. Possibly you are right and it is related to that line, I don't know.

y761823 commented 10 months ago

when I upgrade Qt to 6.6.1, I have the same problem (Qt 6.5.3 is ok) seems that some qml things depend on SQL log with -verbose=3:

log: Using ldd:
Log:  inspecting "/tmp/tmp.9grDFQLFtI/remote_operator/lib//libQt6QmlLocalStorage.so.6"
...
Log:  dylib.binaryPath "/home/ouyankai/Qt/6.6.1/gcc_64/lib/libQt6Sql.so.6"
...

I don't know how to solve or avoid it, I just installed the mimersql now

DavidLazarescu commented 10 months ago

Does it work when installing mimersql for you?

y761823 commented 10 months ago

Yes. After I installed mimersql, I successfully released a app (test passed)