Android(Chromebook) Build - USI Pen Right Click support

Sharaf Zaman sharafzaz121 at gmail.com
Tue Dec 29 08:30:48 GMT 2020


Hi!

You could try to cherry-pick e2d74286
<https://invent.kde.org/szaman/krita/commit/e2d742866021a32409074031655f9ef62e3136f4>
to see if this fixes the problem. You might have to rebuild Qt.

On Tue, Dec 29, 2020 at 1:43 PM Sharaf Zaman <sharafzaz121 at gmail.com> wrote:

> Hi!
>
> >  - Can someone confirm why USI Pen right click does not work? Is the too
> low Android API level a reasonable root cause?
>
> I took a quick look at the code, we don't handle the case where the button
> would be BUTTON_SECONDARY (Right click) in Qt. A simple general `else`
> handling would fix the problem :)
>
> > - Is there a different instruction I can follow to rebuild Krita for
> Android?
>
> Instructions to build haven't changed, besides that we build with API
> level 23. The reason you get an error is because the checkout 4.4.1 uses a
> different way to build kf5 which recently broke. Try 4.4.2-beta2, it should
> build fine.
>
>
> On Mon, Dec 28, 2020 at 9:12 PM Rafał Sontowski <rafal.sont at gmail.com>
> wrote:
>
>> Hello,
>>
>> I recently started using Krita on Chromebook with USI Pen support (Acer
>> Chromebook Spin 713). Even in Beta Krita already is the best drawing
>> application available on Chromebook! It is a pleasure to use it with a USI
>> Pen with pressure supported.
>>
>> *Problem* - Krita does not recognize USI Pen right click, or to be
>> strict - Krita does not recognize right click when I touch the canvas with
>> USI Pen having Pen button pressed (this works as right click in other apps)
>> - hence I cannot change the drawing tool using tools wheel :(.
>>
>> *Potential root cause*: support for USI Pen buttons has been added in
>> Android 6.0 (API 23) -
>> https://developer.android.com/about/versions/marshmallow/android-6.0#bluetooth-stylus,
>> Looks like Krita for Android(and Chromebooks) is build with Android API 21,
>> or 22 (at least this is what I found in building instructions)
>>
>> I tried to rebuild Krita myself to check if the statement above is
>> correct. I am new to building KDE applications and I failed :(. I was able
>> to build Krita for Linux fine, by following instructions from
>> https://docs.krita.org/en/untranslatable_pages/building_krita.html#building-on-linux,
>> but failed to build Krita for Android following
>> https://docs.krita.org/en/untranslatable_pages/building_krita.html#building-on-android
>> It stopped while building few kf5 components due to QT versions mismatch:
>> {code}
>> CMake Error at CMakeLists.txt:15 (find_package):
>> Could not find a configuration file for package "Qt5" that is compatible
>> with requested version "5.14.0".
>>
>> The following configuration files were considered but not accepted:
>>
>> /home/appimage/build/i/lib/cmake/Qt5/Qt5Config.cmake, version: 5.12.9
>> {code}
>> I used "git clone / git checkout tags/4.4.1" to get sources. I faced the
>> same problem while I was trying to use Docker container for building as
>> described at:
>> https://docs.krita.org/en/untranslatable_pages/building/build_krita_with_docker_on_linux.html
>>
>> *Questions*:
>> - Can someone confirm why USI Pen right click does not work? Is the too
>> low Android API level a reasonable root cause?
>> - Is there a different instruction I can follow to rebuild Krita for
>> Android?
>>
>> regards, Rafał
>>
>>
>>
>
> --
> Kind Regards,
> Sharaf Zaman
> https://www.sh-zam.com
>


-- 
Kind Regards,
Sharaf Zaman
https://www.sh-zam.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20201229/93a26f6c/attachment-0001.htm>


More information about the kimageshop mailing list