Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compile QtOpenCl.dll with Qt (64bit)
Forum Updated to NodeBB v4.3 + New Features

Compile QtOpenCl.dll with Qt (64bit)

Scheduled Pinned Locked Moved Installation and Deployment
49 Posts 2 Posters 17.0k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Can you show what errors you get ?

    You don't need to move the OpenCL dll however you need the OpenCL lib file(s) to link to.

    Do you have them ?

    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
    • M Offline
      M Offline
      morflink
      wrote on last edited by
      #3

      it just says that it cannot find all the following .obj files.
      how do i get the OpenCL lib file(s) ?
      (sry its the german client >_<)

      @Bibliothek "....\bin\QtOpenCL.lib" und Objekt "....\bin\QtOpenCL.exp" werden erstellt.
      qclsampler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "clRetainEvent".
      qcluserevent.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "clRetainEvent" in Funktion ""public: __cdecl QCLEvent::QCLEvent(class QCLEvent const &)" (??0QCLEvent@@QEAA@AEBV0@@Z)".
      qclvector.obj : error LNK2001: Nicht aufgelöstes externes Symbol "clRetainEvent".
      qclimage.obj : error LNK2001: Nicht aufgelöstes externes Symbol "clRetainEvent".
      qclkernel.obj : error LNK2001: Nicht aufgelöstes externes Symbol "clRetainEvent".
      qclmemoryobject.obj : error LNK2001: Nicht aufgelöstes externes Symbol "clRetainEvent".
      qclprogram.obj : error LNK2001: Nicht aufgelöstes externes Symbol "clRetainEvent".
      qclbuffer.obj : error LNK2001: Nicht aufgelöstes externes Symbol "clRetainEvent".
      qclcommandqueue.obj : error LNK2001: Nicht aufgelöstes externes Symbol "clRetainEvent".
      qclcontext.obj : error LNK2001: Nicht aufgelöstes externes Symbol "clRetainEvent".
      qclevent.obj : error LNK2001: Nicht aufgelöstes externes Symbol "clRetainEvent".
      qclsampler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "clReleaseEvent".
      qcluserevent.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "clReleaseEvent" in Funktion ""public: __cdecl QCLEvent::~QCLEvent(void)" (??1QCLEvent@@QEAA@XZ)".
      @ ...about 180 failures later...
      @
      qclprogram.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "clCreateKernelsInProgram" in Funktion ""public: class QList<class QCLKernel> __cdecl QCLProgram::createKernels(void)const " (?createKernels@QCLProgram@@QEBA?AV?$QList@VQCLKernel@@@@XZ)".
      qclprogram.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "clBuildProgram" in Funktion ""public: bool __cdecl QCLProgram::build(class QList<class QCLDevice> const &,class QString const &)" (?build@QCLProgram@@QEAA_NAEBV?$QList@VQCLDevice@@@@AEBVQString@@@Z)".
      qclsampler.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "clGetSamplerInfo" in Funktion ""public: bool __cdecl QCLSampler::normalizedCoordinates(void)const " (?normalizedCoordinates@QCLSampler@@QEBA_NXZ)".
      ....\bin\QtOpenCL.dll : fatal error LNK1120: 61 nicht aufgelöste externe Verweise.
      NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.EXE"": Rückgabe-Code "0x460"
      Stop.
      NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.exe"": Rückgabe-Code "0x2"
      Stop.
      NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
      Stop.
      NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
      Stop.
      10:32:47: Der Prozess "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.exe" wurde mit dem Rückgabewert 2 beendet.
      Fehler beim Erstellen des Projekts opencl(Ziel: Desktop)
      Bei der Ausführung von Build-Schritt 'Make'@

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

        Looks like you're missing the OpenCL development libraries

        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
        • M Offline
          M Offline
          morflink
          wrote on last edited by
          #5

          can you tell me what to do ?

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

            Install the OpenCL drivers and SDK from your graphics card manufacturer. AFAIK, for e.g. Nvidia you can install the CUDA SDK and it should come with it

            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
            • M Offline
              M Offline
              morflink
              wrote on last edited by
              #7

              i have cuda installed... where to finde all needed files?

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

                I don't have a windows computer at hand but doing a search in the CUDA sdk folder should tell you where the OpenCL libs can be found

                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
                • M Offline
                  M Offline
                  morflink
                  wrote on last edited by
                  #9

                  where to paste the opencl.lib and the opencl.h ?

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

                    No need to past them anywhere, just put the right paths in your pro file

                    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
                    • M Offline
                      M Offline
                      morflink
                      wrote on last edited by
                      #11

                      omfg, i just realized that i got a new graphics card...
                      its amd and i just can find so called amd_opencl32.dll or 64.dll in sum drivers folders...but nothing in the catalyst folders nor ATI Technologies folders.

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

                        Did you install the AMD OpenCL SDK ?

                        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
                        • M Offline
                          M Offline
                          morflink
                          wrote on last edited by
                          #13

                          well i did now.... can you tell me what to execute or how to link and which files need to be linked ?
                          omfg im such a noob :D

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

                            Before that did you retry to build QtOpenCL from scratch ?

                            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
                            • M Offline
                              M Offline
                              morflink
                              wrote on last edited by
                              #15

                              the failures above still come up, if thats what you ask for

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                morflink
                                wrote on last edited by
                                #16

                                mb i've got the wrong sdk.... named APP AMD SDK.
                                there is a so called OpenCLService.exe which i installed via prompt
                                OpenCLService.exe -i and run it via -s

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

                                  So, it is working now ?

                                  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
                                  • M Offline
                                    M Offline
                                    morflink
                                    wrote on last edited by
                                    #18

                                    no its not, still the same errors

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

                                      Do you have any OpenCL something lib file in the AMD sdk ?

                                      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
                                      • M Offline
                                        M Offline
                                        morflink
                                        wrote on last edited by
                                        #20

                                        nope
                                        just kernels for examples and stuff

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

                                          Strange, did you do a global disk search ? Sometimes there are things are dispatched in both Program Files and Program Files (x86)

                                          Just to be sure did you download "that":http://developer.amd.com/tools-and-sdks/opencl-zone/opencl-tools-sdks/amd-accelerated-parallel-processing-app-sdk/ sdk ?

                                          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

                                          • Login

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