<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>427856</bug_id>
          
          <creation_ts>2020-10-17 10:03:53 +0000</creation_ts>
          <short_desc>Enable build with OpenGL ES-only systems (mainly ARM)</short_desc>
          <delta_ts>2021-03-12 12:52:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>General</component>
          <version>git master (please specify the git hash!)</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>421136</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Alvin Wong">alvin</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          <cc>polypa</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1965789</commentid>
    <comment_count>0</comment_count>
    <who name="Alvin Wong">alvin</who>
    <bug_when>2020-10-17 10:03:53 +0000</bug_when>
    <thetext>After a bit of help on IRC, `wrn` was able to build Krita from source for
Raspberry Pi 4 after some changes to the source. They also posted their
experience [1]. It would be nice if Krita can fix its build issues and
re-enable the flatpak arm/aarch64 builds and other distro packages.

I also have a few extra notes and questions:

- Do *not* assume that ARM only has OpenGL ES available. Incidentally, Debian
  on Aarch64 builds Qt with desktop OpenGL support (see also QTBUG-72128 [2]
  and the mailing list thread linked in the comments). Therefore, any checks
  should rely on Qt&apos;s defines and not the target ARCH.
- Why would Krita need to set `QT_OPENGL_ES_3` (also related to Android)?
  Surely it is supposed to be set by Qt as part of its configure option/checks?
- Can we eliminate the need of its `HAS_ONLY_OPENGL_ES` define and just rely
  on Qt&apos;s defines? From what I gathered if `QT_OPENGL_ES` is defined that means
  the Qt build is configured for OpenGL ES only (dynamic OpenGL, i.e. ANGLE,
  should not have it defined).
- OCIO needs OpenGL, but I thought it can also be used with OpenGL ES
  (otherwise it wouldn&apos;t work with ANGLE)?

[1]: https://www.raspberrypi.org/forums/viewtopic.php?f=38&amp;t=288461
[2]: https://bugreports.qt.io/browse/QTBUG-72128</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965797</commentid>
    <comment_count>1</comment_count>
    <who name="Patrice Poly">polypa</who>
    <bug_when>2020-10-17 10:46:44 +0000</bug_when>
    <thetext>Hello I am &apos;wrn&apos; on freenode -
I just tested to rebuild without

 add_definitions(-DQT_OPENGL_ES_3) in libs/ui/CMakeLists.txt

It builds and runs fine , so that was not needed.

I will be very happy to help with testing if anyone picks this up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014838</commentid>
    <comment_count>2</comment_count>
    <who name="Alvin Wong">alvin</who>
    <bug_when>2021-03-12 12:52:36 +0000</bug_when>
    <thetext>Looks like this is actually a duplicate of bug 421136 so I&apos;m marking it as such.

*** This bug has been marked as a duplicate of bug 421136 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>