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

                    yes, thats what i installed...
                    i did searched for opencl files... and as i posted before i just found strange files like AMD_opencl64.dl_
                    i always throught the only thing i need is the opencl.dll (no matter from which source) and compile it with the needed compiler, in my case the amdx64 compiler of msvs10.0

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

                      no .lib or .a 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
                        #24

                        the only .lib or .a files are named glew32 and 64 or glut32 64.

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

                          I wonder if the SDK has installed correctly

                          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
                            #26

                            did you see the lib files if you take a look at it ?

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

                              ololol, i searched them manually and found them
                              dunno why the autosearch cant track them.... OpenCL.lib and libOpenCL.a
                              what to do now ?

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

                                Depending on your compiler link to either OpenCL.libg (Visual Studio) or libOpenCL.a if you are using MinGW

                                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
                                  #29

                                  i use MSVS compiler for 64bit... how to link libs in the pro file?

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

                                    You can use Qt Creator built in dialog for that.

                                    Or add

                                    @
                                    LIBS += -Lpath/to/sdk/ -lOpenCL
                                    @

                                    If you want to be independent from the SDK installation path, you can use the environment variables to generate the proper path

                                    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
                                      #31

                                      well, thank you so far... now the compiler says:
                                      @NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.EXE"": Rückgabe-Code "0x49d"
                                      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.@

                                      i just added the following:
                                      @LIBS += -LC:/Program Files (x86)/AMD APP SDK/2.9/lib/x86_64 -lOpenCL@

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

                                        Spaces are really bad on windows

                                        try

                                        @LIBS += -L$$quote("C:/Program Files (x86)/AMD APP SDK/2.9/lib/x86_64"@

                                        If that doesn't work, use the 8.3 naming scheme

                                        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
                                          #33

                                          if i just use this advice, i get the same errors like i got at the very beginning.
                                          then i tried to copy paste the whole folder to another path without spaces and get still the same errors.
                                          8.3 naming scheme means to give the files in particular like ?:

                                          @LIBS += -L$$quote("C:/Program Files (x86)/AMD APP SDK/2.9/lib/x86_64/libOpenCL.a") -lOpenCl@

                                          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