-
-
Notifications
You must be signed in to change notification settings - Fork 62
Failed to compile on Linux due to missing lib #125
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
Comments
qt_subclasses is compiled from the rpfm_ui/qt_subclasses folder when you compile rpfm_ui. If it's not finding it and you haven't touched the build.rs... maybe there was some error while compiling it? Do you have qt and qmake installed? |
@Frodo45127 I have Qt 5.13.0 built from source (tried 5.15 but it says can't recognize the version and is falling back to closest version 5.13), I also didn't edit source code yet, and for the all 285 building tasks it is the only error I have in compilation.. Does Qt version matter here? In doc and readme the numbers don't meet. $ qmake --version
QMake version 3.1
Using Qt version 5.13.0 in /usr/local/Qt-5.13.0/lib |
Or if it's easier to add a compiled dylib for Linux under |
any version of qt above 5.8 is enough. You can check why it doesn't compile by compiling it manually. Just go to rpfm_ui/qt_subclasses, then launch qmake, then make. That's really what cargo does when compiling the UI. |
Thanks, that's helpful! I got the error: $ qmake
Project ERROR: Unknown module(s) in QT: KTextEditor Means kde framework missing? Tried install |
I am getting this same error when trying to build on Arch... |
Here on arch, I just needed qt and the ktexteditor (kf5) package, make and qt with qmake. If that doesn't work.... try compiling it with qt-creator. Sometimes that works. Sadly, this falls into the "weird c++ magic" category. Works as-is in some systems, needs modifications and dark rituals on others. And I have no idea why. |
I had some progress today building kf5 from source - the reason I think However, when I enter Project ERROR: Unknown module(s) in QT: KTextEditor How do I link kf5 to this project (or, the Qt it is using)? This didn't work: # edit qt_subclasses.pro
LIBS += /usr/lib/x86_64-linux-gnu/ ps. This guideline builds the whole kf5, even though we don't actually need all of them but it's quite informative. Also this post on GitHub helped. Thanks! |
After checking a bit on my side, you may need the ktexteditor.pri file. On arch, it gets installed as part of the ktexteditor package, on |
Finally, got it running. :D For anyone who needs to build kf5 with Qt, have a look at the gist.
|
on fedora 33, fixed by installing kf5-* and adding -I/usr/include/KF5/ to INCPATH in rpfm_ui/qt_subclasses/Makefile. (because /usr/include/KF5/KTextEditor/ktexteditor/editor.h includes <KSyntaxHighlighting/Theme>...) |
I got that one too on both arch and windows. The solution for me was to change <KSyntaxHighlighting/Theme> with <KF5/KSyntaxHighlighting/Theme> in editor.h and view.h. |
This error is occurring again on the most recent PKGBUILD |
That error will happen anytime you update/reinstall ktexteditor. It's explained in the docs how to fix it: https://frodo45127.github.io/rpfm/chapter_comp.html |
@Frodo45127 Hiya, I have an alternative for Arch users. 0001-Add-include-for-Arch.patch
We can add this patch to the PKGBUILD like this:
This way we can avoid running sed on files owned by root. |
@AaronBPaden Been testing this in develop for a few days, and seems to work quite well. I've replaced the seds with the patch to the pro file for the next version. |
I tried to compile rpfm on Ubuntu 18.04 and failed on building
rfpm-ui
:= note: /usr/bin/ld: cannot find -lqt_subclasses collect2: error: ld returned 1 exit status
This is due to a missing lib
qt_subclasses
. Though I see the command using local./libs
directory which contains aqt_subclasses.lib
, I think.lib
is not usable for Linux. Can I compile the.so
myself using source code?The text was updated successfully, but these errors were encountered: