Support Request #2274
closedQt Gui filter linker error
Description
Supportanfrage
During the updation of the Qt filter's CMake according to the new ADTF3.3.0 build framework, I am facing some linker errors. When the qt gui filter is compiled, the compiler is not able to find the object file(ex. Qt5Widgets-NOTFOUND object). This can be
seen when user selects project properties->Linker->Input->Additional dependencies. Here instead of the library path or the library itself, it shows Qt5Widgets-NOTFOUND and I have highlighted it in one of my attachments (my_filter_QT5WidgetLibError.PNG).
In order to cross verify, I have tried to build the qt demo filter delivered by the ADTF3.3.0, somehow the project builds but the “Qt5Widgets-NOTFOUND” is still found in the Additional dependencies. How could this be resolved in order to compile my filter without linker failure? I have tried changing the linking syntax (for ex: target_link_libraries(${TARGETNAME} PUBLIC adtf::ui Qt5::Widgets/Widgets/Qt5Widgets)) but none of them are working.
CMake version used : 3.10.1
Lösung
- QT_DIR-variable point to your own QT-Installation
- CMAKE_PREFIX_PATH also to QT
- Build Type must be RelWithDebInfo or Debug
Files