-
Notifications
You must be signed in to change notification settings - Fork 6
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
Cannot build with enchant 2.1 #3
Comments
Mh no, this looks like a fundamental API change in enchant 2.x, I'll need to investigate further. |
Fixed in bf87066, thanks for the report. |
Version detection doesn't appear to work correctly:
I believe line 28 of I'd put in a pullreq but I haven't tested this (installing through AUR as a gIR dependency, would have to write a patch for the PKGBUILD). Maybe later. |
Popping in here after helping @foghawk debug this in the #archlinux support channel... Specifically, I don't understand where Honestly, I'd just revert to |
[1] https://github.com/AbiWord/enchant/blob/master/Makefile.am#L9 |
Still does not build for me (qtspell 0.8.3, enchant 2.1.2):
Shouldn't there be a switch to override the enchant version, if autodetection fails? |
Looks like you need enchant-2.1.3 or newer, since that's when they introduced the -2 suffix to the pkgconfig file and libraries. I'll add some code to also handle versions older thant 2.1.3. |
Please try latest master. |
Yes, latest master does work fine. Thank you very much. |
OK cool |
Are you planning on making a new release, so I can properly package this for Arch Linux? |
Done |
I think that this is the same error as with enchant 1.6: https://github.com/manisandro/qtspell/issues/2
From console:
(...)[ 85%] Building CXX object CMakeFiles/qtspell.dir/src/Checker.cpp.o /home/pb/builds/gimagereader-qt5-git/qtspell-git/src/qtspell/src/Checker.cpp: In function 'bool QtSpell::checkLanguageInstalled(const QString&)': /home/pb/builds/gimagereader-qt5-git/qtspell-git/src/qtspell/src/Checker.cpp:60:26: error: 'instance' is not a member of 'enchant::Broker' return enchant::Broker::instance()->dict_exists(lang.toStdString()); ^~~~~~~~ /home/pb/builds/gimagereader-qt5-git/qtspell-git/src/qtspell/src/Checker.cpp: In member function 'bool QtSpell::Checker::setLanguageInternal(const QString&)': /home/pb/builds/gimagereader-qt5-git/qtspell-git/src/qtspell/src/Checker.cpp:109:32: error: 'instance' is not a member of 'enchant::Broker' m_speller = enchant::Broker::instance()->request_dict(m_lang.toStdString()); ^~~~~~~~ /home/pb/builds/gimagereader-qt5-git/qtspell-git/src/qtspell/src/Checker.cpp: In static member function 'static QList<QString> QtSpell::Checker::getLanguageList()': /home/pb/builds/gimagereader-qt5-git/qtspell-git/src/qtspell/src/Checker.cpp:162:45: error: 'instance' is not a member of 'enchant::Broker' enchant::Broker* broker = enchant::Broker::instance(); ^~~~~~~~ make[2]: *** [CMakeFiles/qtspell.dir/build.make:295: CMakeFiles/qtspell.dir/src/Checker.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:169: CMakeFiles/qtspell.dir/all] Error 2 make: *** [Makefile:130: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...
The text was updated successfully, but these errors were encountered: