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

Simple example with OpenCL

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 1.7k Views
  • 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 8 Feb 2017, 14:34 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Feb 2017, 22:11 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 9 Feb 2017, 12:36 last edited by
        #3

        I want to program my Moto Z with Qt 5.7

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 9 Feb 2017, 21:12 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 12 Feb 2017, 15:24
          0
          • S SGaist
            9 Feb 2017, 21:12

            Some pointers here and there about OpenCL on Android.

            X Offline
            X Offline
            Xav12358
            wrote on 12 Feb 2017, 15:24 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
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 12 Feb 2017, 20:01 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 15 Feb 2017, 15:48 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

                1/7

                8 Feb 2017, 14:34

                • Login

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