This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: Qt-opencv-opencl-opengl-multithreaded build error

Part Number: AM5728


Tool/software: Linux

Hi,

I'm trying example project named "qt-opencv-opencl-opengl-multithreaded" on AM5728EVM.

I'm using Qt and seeing "Sitara Linux Training: Hands on with QT" at this below page.

processors.wiki.ti.com/.../Sitara_Linux_Training:_Hands_on_with_QT.

I got some errors as below.

---------------------

:-1: error: skipping incompatible /home/sitara_user/ti-processor-sdk-linux-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libOpenCL.so when searching for -lOpenCL

:-1: error: cannot find -lOpenCL

:-1: error: skipping incompatible /home/sitara_user/ti-processor-sdk-linux-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libocl_util.a when searching for -locl_util

:-1: error: cannot find -locl_util

...

There are many similar errors.

How can I fix that?

Regards,

  • Hello,

    Please use this guide to build the demo:
    software-dl.ti.com/.../Overview.html
    MACHINE=am57xx-evm bitbake qt-opencv-opencl-opengl-multithreaded

    Best Regards,
    Margarita
  • Thank you for your reply.
    I tried that command, but the situation does not change.
    And I got warning message as below.

    ---------------------
    MACHINE=am57xx-evm bitbake qt-opencv-opencl-opengl-multithreaded
    Loading cache: 100% |############################################| Time: 0:00:01
    Loaded 3817 entries from dependency cache.
    Parsing recipes: 100% |##########################################| Time: 0:00:01
    Parsing of 3045 .bb files complete (3042 cached, 3 parsed). 3820 targets, 534 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
    /home/sitara_user/tisdk/sources/meta-openamp/recipes-bsp/device-tree/device-tree-generation_%.bbappend
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION = "1.32.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "Ubuntu-14.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am57xx-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2017.12"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:92db4d8023d88ab59fab2953e7447ec0bd5a6db1"
    meta-ros = "HEAD:e2566402ab108a19634354a934788109422cf409"
    meta-arago-distro
    meta-arago-extras = "HEAD:5b2a44b0c4d989133bc13d59398fd10375d351bb"
    meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
    meta-openamp = "HEAD:8a214032bfb7e8124bc1485c70c69f7d60abb819"
    meta-qt5 = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
    meta-networking
    meta-ruby
    meta-python
    meta-oe
    meta-gnome
    meta-multimedia = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6"
    meta-ti = "HEAD:3dc08477529b31ce887bb22a08201a843ded48f0"
    meta-linaro-toolchain
    meta-optee = "HEAD:d73e794c7e7ebb1cc5bf495a52a72b26fb118250"
    meta = "HEAD:39fd8c129e2bff7f2f1649b7f6e036ccc50fd5d8"

    Initialising tasks: 100% |#######################################| Time: 0:00:03
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    NOTE: Tasks Summary: Attempted 2607 tasks of which 2607 didn't need to be rerun and all succeeded.

    Summary: There was 1 WARNING message shown.
  • Hello,

    What you mean by "situation does not change"?
    It seems fine, there are no errors.
    If you want to modify the demo then you could refer chapter "Forced Re-compilation" .

    BR
    Margarita
  • Hello,

    I mean that I still got same errors on Qt.

    :-1: error: skipping incompatible /home/sitara_user/ti-processor-sdk-linux-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libOpenCL.so when searching for -lOpenCL

    :-1: error: cannot find -lOpenCL

    :-1: error: skipping incompatible /home/sitara_user/ti-processor-sdk-linux-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libocl_util.a when searching for -locl_util

    :-1: error: cannot find -locl_util

    ....

    I tried commands that you taught, but it doesn't success to build the project on Qt creator.

    MACHINE=am57xx-evm bitbake qt-opencv-opencl-opengl-multithreaded

    MACHINE=am57xx-evm bitbake qt-opencv-opencl-opengl-multithreaded --force -c compile

    I want to modify the demo program.

    Regards,

  • Hello,

    You could find the demo in /tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/qt-opencv-opencl-opengl-multithreaded/1.3.3-r2/
    You could try to modify it there and compile by using MACHINE=am57xx-evm bitbake qt-opencv-opencl-opengl-multithreaded --force -c compile

    BR
    Margarita
  • Hello,

    I already tried the demo program in "/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/qt-opencv-opencl-opengl-multithreaded/1.3.3-r2/git".

    And, I tried compile by using "MACHINE=am57xx-evm bitbake qt-opencv-opencl-opengl-multithreaded --force -c compile".

    But I still got errors in Qt creator.

    Regards,

  • Hello,

    user5302712 said:
    MACHINE=am57xx-evm bitbake qt-opencv-opencl-opengl-multithreaded --force -c compile

    This is the way to rebuild the demo if you make source code modifications by using bitbake.

    user5302712 said:
    :-1: error: cannot find -lOpenCL

    Regarding this error it seems like you must add OpenCL lib.

    You could try add LIBS +=  ... in pro file.

    Hope this helps.

    BR
    Margarita

  • Hello,

    I can see already added "LIBS += -lOpenCL -locl_util" in pro file.
    But "cannot find -lOpenCL" and "cannot find -locl_util" errors are shown.
  • Hello,


    Please try to write hard-coded path to OpenCL library.
    LIBS+=/.../usr/.../libOpenCL.so

    BR
    Margarita
  • Hello,

    I wrote below path in pro file.

    LIBS+=/home/sitara_user/ti-processor-sdk-linux-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libOpenCL.so

    So, I got "/home/sitara_user/ti-processor-sdk-linux-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libOpenCL.so:-1: error: error adding symbols: File in wrong format" error.

    Is anything wrong ?
  • Hello,

    I am sorry I was OoO.
    Please in this guide:
    processors.wiki.ti.com/.../Sitara_Linux_Training:_Hands_on_with_QT
    check Bring up Qt Creator chapter and important note there.


    You also could use MACHINE=am57xx-evm bitbake qt-opencv-opencl-opengl-multithreaded --force -c compile
    if you want to modify and rebuild the demo.

    BR
    Margarita