Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Simple example with OpenCL
Forum Update on Tuesday, May 27th 2025

Simple example with OpenCL

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xav12358
    wrote on last edited by
    #1

    Hello,

    I am looking for a simple example of Qt for smartphone to use NDK and OpenCL.

    I compile easily the sample on Qt on my smartphone but I don't know how to setup NDK qtcreator. How can I use OpenCL function on it?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What smartphone are you talking about ? Which version of Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • X Offline
        X Offline
        Xav12358
        wrote on last edited by
        #3

        I want to program my Moto Z with Qt 5.7

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Some pointers here and there about OpenCL on Android.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          X 1 Reply Last reply
          0
          • SGaistS SGaist

            Some pointers here and there about OpenCL on Android.

            X Offline
            X Offline
            Xav12358
            wrote on last edited by
            #5

            @SGaist thanks you for the answer. But I already do it on eclipse but I don't know how to do it on qtcreator.
            Where should I add the so library un qtcreator? How to properly include it into the project?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Add the path to the library in your .pro file as well as link line.

              i.e.

              LIBS += -L/path/to/folder_that_contains_OpenCL_lib/ -lOpenCL (or replace with name of the library)
              

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • X Offline
                X Offline
                Xav12358
                wrote on last edited by
                #7

                Ok thank you I will try it.

                I thought it was more complicated to add it to the project like in Eclipse.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved