Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt not finding jack audio definitions

Qt not finding jack audio definitions

Scheduled Pinned Locked Moved General and Desktop
11 Posts 3 Posters 4.3k 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.
  • A Offline
    A Offline
    ad5xj
    wrote on last edited by
    #1

    I have a project that uses Jack Audio libraries. The includes and libraries are specified explicitly in the .pro but the linker still gives an undefined reference error for jack library calls to things like jack_client_close().

    Anyone have any idea on this?

    .pro
    [code]

    INCLUDEPATH = .
    includes
    fftreal
    /usr/include/jack
    . . .
    LIBS += -L/usr/lib/x86_64-linux-gnu/lib/jack

    [/code]

    error produced:
    [quote]
    ...source-line: error: undefined reference to jack_client_close' ...source-line: error: undefined reference to jack_client_open'
    ...source-line: error: undefined reference to `jack_client_shutdown'
    ...
    [/quote]

    24 errors in all similar to above.

    Using latest Qt SDK updates and QtCreator 2.5 on Ubuntu 12.04 64 bit (jack installed 1.9.8)

    Ken AD5XJ

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      I think your .pro file line should look like:
      @
      LIBS += -L/usr/lib/x86_64-linux-gnu/lib -ljack
      @
      (-L is the path, and -l is the library name)

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ad5xj
        wrote on last edited by
        #3

        The statement is correct. The folder is called jack. there are seveal libjack* files in that path which will be used in the application.

        Ken AD5XJ

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          You'll need to tell the linker which libraries you need, not just the folder of the locations.

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            ad5xj
            wrote on last edited by
            #5

            Tried that and no change was the result.

            Ken AD5XJ

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ad5xj
              wrote on last edited by
              #6

              Well I have had some success on Linux but not Windows XP. Still getting the same errors even with LIBS specified correctly.

              @
              win32: {
              INCLUDEPATH += "C:\Jack\includes\"
              }

              win32: {
              DEPENDPATH += "C:\Jack\lib\"
              }

              win32: {
              LIBS += -L"C:\Jack\lib\" -ljack
              }
              @

              The lib folder specified does exist and contains libjack.lib, libjack.def, libjackserver.lib, libjackserver.def

              Now using Qt 5.1.1 on both Linux and Windows

              Ken AD5XJ

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

                Hi,

                Are you sure you are using the jack library from the correct architecture ? And for windows, are they compiled using the same compiler ?

                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
                • A Offline
                  A Offline
                  ad5xj
                  wrote on last edited by
                  #8

                  Well, I am calling from the Jack Audio library supplied by the Windows installer from their web site. The version is 1.9.9 32 bit.

                  Jack on Windows is only compiled using MinGW as far as I know so it should be compatible. You can use VC from source but that is not the case here.

                  Ken AD5XJ

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

                    Then the question is which version of mingw are you using and which one was used to build jack ?

                    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
                    • A Offline
                      A Offline
                      ad5xj
                      wrote on last edited by
                      #10

                      MinGW 4.4

                      Ken AD5XJ

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

                        If you are using the prebuilt mingw package then you have to rebuild jack with it. Qt's built with mingw 4.8

                        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