Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Qt 5.1, Qwt 6.1, on Windows gives undefined reference to Qwt::function()
Forum Updated to NodeBB v4.3 + New Features

Qt 5.1, Qwt 6.1, on Windows gives undefined reference to Qwt::function()

Scheduled Pinned Locked Moved 3rd Party Software
7 Posts 2 Posters 5.9k 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.
  • A Offline
    A Offline
    ad5xj
    wrote on last edited by
    #1

    Well I feel like a real newbie. This problem should be obvious to me but I have not been able to solve it. and my tired old brain is just not seeing it.

    @
    TEMPLATE = app
    TARGET = qmmvari

    QT += widgets
    CONFIG += qt thread exceptions
    win32: CONFIG += windows
    unix: CONFIG += x11

    win32: {
    INCLUDEPATH += C:/Projects/C++/qwt-6.1.0/src/
    INCLUDEPATH += "C:\Program Files\Jack\includes\"

    DEPENDPATH += C:/Qwt-6.1.0/lib/
    DEPENDPATH += "C:\Program Files\Jack\"
    }

    unix: {
    INCLUDEPATH += /home/ken/Projects/C++/qwt-6.1.0/src/
    INCLUDEPATH += /usr/include/jack/
    INCLUDEPATH += qjack/

    DEPENDPATH += /usr/lib/i386-linux-gnu/jack/
    DEPENDPATH += /home/ken/Projects/C++/qwt-6.1.0/lib/
    }

    MOC_DIR = moc
    RCC_DIR = rcc
    OBJECTS_DIR = obj

    HEADERS +=
    globals.hpp
    sound.hpp
    dlgAppOptions.hpp \

    dlglogsettings.hpp \

    mainwindow.hpp
    

    HEADERS +=
    qjack/inport.h
    qjack/outport.h
    qjack/qinport.h
    qjack/qoutport.h
    qjack/qjackclient.h
    qjack/jackport.h
    qjack/jackinport.h
    qjack/jackoutport.h
    qjack/qsignalinport.h
    qjack/ringbuffer.h

    HEADERS += vumeter.hpp waterfall_widget.hpp

    SOURCES +=
    main.cpp
    sound.cpp
    vumeter.cpp
    waterfall_widget.cpp
    dlgappoptions.cpp \

    dlglogsettings.cpp \

    mainwindow.cpp
    

    SOURCES +=
    qjack/jackport.cpp
    qjack/jackinport.cpp
    qjack/jackoutport.cpp
    qjack/qjackclient.cpp
    qjack/qsignalinport.cpp

    RESOURCES += application.qrc

    win32: LIBS += -LC:/Qwt-6.1.0/lib/ -lqwtd
    win32: LIBS += -L"C:\Program Files\Jack\jack\" ljack_portaudio

    unix: {
    LIBS += -L/usr/lib/ -llibqwt
    LIBS += -L/usr/lib/i386-linux-gnu/jack/ -ljack_alsa
    }
    @
    *Updated after last post...

    The linker gives an error : cannot find lqtmaind

    and undefined reference to QwtThermo::setOrientation()... and many similar - basically any widget function from the Qwt widgets library.

    I think this is a combination of problems but I have not been able to untangle them yet.

    Anyone have suggestions?

    BTW I have checked the pathnames a dozen times or more and all are valid.

    Ken AD5XJ

    1 Reply Last reply
    0
    • U Offline
      U Offline
      uwer
      wrote on last edited by
      #2

      Concerning the Qwt part I can see, that you try to build against the Qwt build directory instead of installing it properly.

      Read http://qwt.sourceforge.net/qwtinstall.html

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

        Well the link you used is not there anymore, but I did find other pages that explain what you were trying to point to. That has (I think) cleared the Qwt issue).

        However I still have this nagging error about -lqtmaind that I both do not understand and cannot find much relevant documentation on.

        Ken AD5XJ

        1 Reply Last reply
        0
        • U Offline
          U Offline
          uwer
          wrote on last edited by
          #4

          There was a trailling dot at the end of the link ( fixed ).

          Better don't trust any other pages - there are trillions of outdated or misleading howtos on the web.

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

            Noted, but does not help with the linker problem. It appears to be limited to Windows as there are other issues on Linux.

            Ken AD5XJ

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

              This project now runs fine on Linux but I still get the "can't find -lqmaind" error on Windows.

              Ken AD5XJ

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

                Re-installation of Qt 5.1 did not change anything. I am just going to work on the Linux version and hope someone will come up with a workable solution.

                Ken AD5XJ

                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