Project

General

Profile

Actions

Support Request #2274

closed

Qt Gui filter linker error

Added by hidden almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Customer:
AUDI
Department:
AST
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
No Customer Feedback
Product Issue Numbers:
Affected Products:
Platform:
Windows 7 64bit
Topic:
ADTF::Common
FAQ Links:

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

my_filter_CMakeLists.txt (940 Bytes) my_filter_CMakeLists.txt My Qt Gui filter CMake hidden, 2018-04-17 09:41
adtf_demo_qt_media_descp_disp_Qt5WidgetLibError.PNG (47.3 KB) adtf_demo_qt_media_descp_disp_Qt5WidgetLibError.PNG Missing object file of the demo filter from the IDE hidden, 2018-04-17 09:41
my_filter_Qt5WidgetLibError.PNG (82.5 KB) my_filter_Qt5WidgetLibError.PNG My Qt Gui filter linker error snapshot from the IDE hidden, 2018-04-17 09:41
Actions

Also available in: Atom PDF