Building a qt testprogram with cmake fails.
I have built the Full SDK "arago-core-tisdk-image" for "am335x-evm".I have installed the generated SDK on my machine.
Cmake references required packages in its configfile with find_package:
# Widgets finds its own dependencies (QtGui and QtCore).
find_package(Qt5Core REQUIRED)
find_package(Qt5Test REQUIRED)
find_package(Qt5Widgets REQUIRED)
With old "AMSDK 7.0X" cmake finds the required packages.
With "Processor SDK 2.0.1.7" cmake does not find this essential packages: Qt5Widgets Qt5Gui Qt5Svg Qt5Qml Qt5Quick Qt5XmlPatterns Qt5LinguistTool.
This packages are found: Qt5Core Qt5Test Qt5Sql
Below an example for errormessages generated by cmake version 3.4.3 on Ubuntu 14.04.3:
-----------------------------------------------------------------------------------------------------------------------------------------------
roland@hp-dc5800:~/src/jet_cust$ cmake -DSSP_PLATFORM=arm -DCMAKE_TOOLCHAIN_FILE=source/CMakeToolchainARM.cmake source/
-- Using tool chain ARM
CMake Error at /home/roland/SDK/ti-processor-sdk-linux-am335x-evm-02.00.01.07/sysroots/cortexa8hf-vfp-neon-linux-gnueabi/usr/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:27 (message):
The imported target "Qt5::Gui" references the file
"/home/roland/SDK/ti-processor-sdk-linux-am335x-evm-02.00.01.07/sysroots/cortexa8hf-vfp-neon-linux-gnueabi/usr/lib/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/home/roland/SDK/ti-processor-sdk-linux-am335x-evm-02.00.01.07/sysroots/cortexa8hf-vfp-neon-linux-gnueabi/usr/lib/cmake/Qt5Gui/Qt5Gui_QIbusPlatformInputContextPlugin.cmake"
but not all the files it references.
Call Stack (most recent call first):
/home/roland/SDK/ti-processor-sdk-linux-am335x-evm-02.00.01.07/sysroots/cortexa8hf-vfp-neon-linux-gnueabi/usr/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:145 (_qt5_Gui_check_file_exists)
/home/roland/SDK/ti-processor-sdk-linux-am335x-evm-02.00.01.07/sysroots/cortexa8hf-vfp-neon-linux-gnueabi/usr/lib/cmake/Qt5Gui/Qt5Gui_QIbusPlatformInputContextPlugin.cmake:4 (_populate_Gui_plugin_properties)
/home/roland/SDK/ti-processor-sdk-linux-am335x-evm-02.00.01.07/sysroots/cortexa8hf-vfp-neon-linux-gnueabi/usr/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:153 (include)
/home/roland/SDK/ti-processor-sdk-linux-am335x-evm-02.00.01.07/sysroots/cortexa8hf-vfp-neon-linux-gnueabi/usr/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:99 (find_package)
CMakeLists.txt:24 (find_package)
-----------------------------------------------------------------------------------------------------------------------------------------------
Note: I have successfully built a qt testprogram with make => required headers and libraries are present.