yocto imx6 compiling problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

yocto imx6 compiling problem

1,312 Views
mariclewang
Contributor I

I wanna use both qmake and cmake to compile my own project .But it failed with the following log:

-- Configuring incomplete, errors occurred!

|

| make: *** [cmake_check_build_system] Error 1

|

| + cd /home/zoulz/fsl-release-bsp/wayland/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/hmi/0.8.9-r0/hmi

| + do_compile

| + cmake_do_compile

| + [ ]

| + base_do_compile

| + [ -e Makefile -o -e makefile -o -e GNUmakefile ]

| + oe_runmake

| + bbnote make -j 8

| + echo NOTE: make -j 8

| NOTE: make -j 8

| + make -j 8

| CMake Error at /home/zoulz/fsl-release-bsp/wayland/tmp/sysroots/imx6dlsabreauto/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:27 (message):

|   The imported target "Qt5::Core" references the file

|

|      "/usr/bin/qt5/qmake"

|

|   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/zoulz/fsl-release-bsp/wayland/tmp/sysroots/imx6dlsabreauto/usr/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"

|

|   but not all the files it references.

|

| Call Stack (most recent call first):

|   /home/zoulz/fsl-release-bsp/wayland/tmp/sysroots/imx6dlsabreauto/usr/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:6 (_qt5_Core_check_file_exists)

|   /home/zoulz/fsl-release-bsp/wayland/tmp/sysroots/imx6dlsabreauto/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:130 (include)

|   /home/zoulz/fsl-release-bsp/wayland/tmp/sysroots/imx6dlsabreauto/usr/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:89 (find_package)

|   /home/zoulz/fsl-release-bsp/wayland/tmp/sysroots/imx6dlsabreauto/usr/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:89 (find_package)

|   CMakeLists.txt:25 (find_package)

|

|

| -- Configuring incomplete, errors occurred!

BEFORE bitbake my own bb ,I have installed qt5 and it has no error during compiling . I just wanna use qmake to generate some tools and make the project by cmake.How can I fix my bb or my CMakeLists.txt? :smileyconfused:

Labels (2)
Tags (1)
0 Kudos
2 Replies

646 Views
jimmychan
NXP TechSupport
NXP TechSupport

This may useful for you

OpenEmbedded Project Discussion

646 Views
mariclewang
Contributor I

it's really useful .Thanks. but i still don't know how to set enviroment variables to find native qmake .I also add the class cmake_qt5 ,but it doesn't work

0 Kudos