Skip to content

Unable to compile fcitx5-qt on Debian 12, build fails with lots of undefined references #1035

Closed Answered by wengxt
etna asked this question in Q&A
Discussion options

You must be logged in to vote

I pulled a docker debian 12 and it build perfectly fine in the docker.

It's definitely your issue, not fcitx's.

So first of all, you're using debian system Qt (based on the path /usr/lib/x86_64-linux-gnu/libQt6Core.so)

Which means, this Qt must be built against system's libstdc++. You SHOULD NOT mix libc++ and libstdc++ in the same binary. libc++ symbol and libstdc++ are not ABI compatible.

If you want to use libc++, build your own Qt.

As for the issue you mentioned with gcc, you're likely has a dirty cmake directory. Just remove the build/ directory and rerun.

I tried both clang(from debian) and gcc(from debian) and there's no problem building it.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wengxt
Comment options

Answer selected by wengxt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants