leinad
1st October 2020, 17:40
Hi,
It seems I'm having an issue with running qwt under Qt Creator on a MAC. It works fine on Windows and CentOS.
I installed and built qwt on my MAC as per the instructions on the qwt website.
The library is installed in /usr/local/qwt-6.1.5/plugins/designer an the library name is libqwt_designer_plugin.dylib
in the project file I reference this library as I do with any other but for some reason I keep getting the error: library not found -llibrary_designer_plugin, linker command failed with exit code 1 (use -v to see invocation). Here are parts of the project file which references the qwt library.
---------------
QT += core gui
CONFIG += qwt
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = MyAppName
TEMPLATE = app
Sources += \
whole bunch of sources
HEADERS += \
whole bunch of .h files
FORMS += \
mainwindow.ui
QWT_LIB_PATH = /usr/local/qwt-6.1.5/plugins/designer
QWT_SRC_PATH = /Users/Myname/Qt/qwt-6.1.5
PLATFORM = macos1014-clang100
QWT_LIB = libqwt_designer_plugin
INCLUDEPATH += Bunch of sources \
$${QWT_SRC_PATH}/src
LIBS += -L$$(bunch of other libs path} \
-lsomeLibs \
-L$${QWT_LIB_PATH} \
-l$${QWT_LIB}
---------------------------
Not sure what I can be doing wrong, this should be straight forward. Any help would be appreciated.
I'm running on Catalina 10.15.7
Thanks in advance!
It seems I'm having an issue with running qwt under Qt Creator on a MAC. It works fine on Windows and CentOS.
I installed and built qwt on my MAC as per the instructions on the qwt website.
The library is installed in /usr/local/qwt-6.1.5/plugins/designer an the library name is libqwt_designer_plugin.dylib
in the project file I reference this library as I do with any other but for some reason I keep getting the error: library not found -llibrary_designer_plugin, linker command failed with exit code 1 (use -v to see invocation). Here are parts of the project file which references the qwt library.
---------------
QT += core gui
CONFIG += qwt
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = MyAppName
TEMPLATE = app
Sources += \
whole bunch of sources
HEADERS += \
whole bunch of .h files
FORMS += \
mainwindow.ui
QWT_LIB_PATH = /usr/local/qwt-6.1.5/plugins/designer
QWT_SRC_PATH = /Users/Myname/Qt/qwt-6.1.5
PLATFORM = macos1014-clang100
QWT_LIB = libqwt_designer_plugin
INCLUDEPATH += Bunch of sources \
$${QWT_SRC_PATH}/src
LIBS += -L$$(bunch of other libs path} \
-lsomeLibs \
-L$${QWT_LIB_PATH} \
-l$${QWT_LIB}
---------------------------
Not sure what I can be doing wrong, this should be straight forward. Any help would be appreciated.
I'm running on Catalina 10.15.7
Thanks in advance!