Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DavidLazarescu opened this issue Oct 25, 2023 · 7 comments
Open

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

DavidLazarescu opened this issue Oct 25, 2023 · 7 comments

Comments

@DavidLazarescu
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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

@probonopd
Copy link
Owner

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
Copy link

y761823 commented Jan 5, 2024

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
Copy link
Author

Does it work when installing mimersql for you?

@y761823
Copy link

y761823 commented Jan 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants