That got me a bit further, as the libries are now found. However, I get a page full of linking errors, that I cannot make sense of. The order I list the libraries in target_link_libraries doen't seem to make a difference, and the errors are the same whether I compile for Release or Debug:
[100%] Linking CXX executable plottapp
/usr/bin/ld: /usr/local/qwt-6.2.0/lib/libqwt.so: undefined reference to `QtPrivate::QMetaTypeInterfaceWrapper<QVariant>::metaType@Qt_6'
/usr/bin/ld: /usr/local/qwt-6.2.0/lib/libqwt.so: undefined reference to `QtPrivate::QMetaTypeInterfaceWrapper<bool>::metaType@Qt_6'
/usr/bin/ld: /usr/local/qwt-6.2.0/lib/libqwt.so: undefined reference to `QtPrivate::QMetaTypeInterfaceWrapper<QSize>::metaType@Qt_6'
.
.
.
/usr/bin/ld: /usr/local/qwt-6.2.0/lib/libqwt.so: undefined reference to `QtPrivate::QMetaTypeInterfaceWrapper<QTime>::metaType@Qt_6'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/plottapp.dir/build.make:591: plottapp] Error 1
make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/plottapp.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
*** Failure: Exit code 2 ***
[100%] Linking CXX executable plottapp
/usr/bin/ld: /usr/local/qwt-6.2.0/lib/libqwt.so: undefined reference to `QtPrivate::QMetaTypeInterfaceWrapper<QVariant>::metaType@Qt_6'
/usr/bin/ld: /usr/local/qwt-6.2.0/lib/libqwt.so: undefined reference to `QtPrivate::QMetaTypeInterfaceWrapper<bool>::metaType@Qt_6'
/usr/bin/ld: /usr/local/qwt-6.2.0/lib/libqwt.so: undefined reference to `QtPrivate::QMetaTypeInterfaceWrapper<QSize>::metaType@Qt_6'
.
.
.
/usr/bin/ld: /usr/local/qwt-6.2.0/lib/libqwt.so: undefined reference to `QtPrivate::QMetaTypeInterfaceWrapper<QTime>::metaType@Qt_6'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/plottapp.dir/build.make:591: plottapp] Error 1
make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/plottapp.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
*** Failure: Exit code 2 ***
To copy to clipboard, switch view to plain text mode
Bookmarks