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.

TDA4VH-Q1: Unable to add boost library for the cross compilation

Part Number: TDA4VH-Q1

Hello,

I am trying to cross compile my application using the cross compilation toolchain within the ti-linux sdk.

I have downloaded and installed the ti-processor-sdk-linux-j784s4-evm-08_06_00_12 sdk.

inside the sdk, I have set the environment for cross compilation by sourcing the  /linux-devkit/environment-setup-aarch64-linux setup file.

I require boost libraries for my compilation for which I have downloaded and copied the required files into the /ti_linux/linux-devkit/sysroots/aarch64-linux directory. 

While compiling I am getting following error:

//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

CMake Warning at /home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1161 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1283 (_Boost_COMPONENT_DEPENDENCIES)
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1921 (_Boost_MISSING_DEPENDENCIES)
external/vsomeip/CMakeLists.txt:153 (find_package)


CMake Warning at /home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1161 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1283 (_Boost_COMPONENT_DEPENDENCIES)
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1921 (_Boost_MISSING_DEPENDENCIES)
external/vsomeip/CMakeLists.txt:153 (find_package)


CMake Warning at /home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1161 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1283 (_Boost_COMPONENT_DEPENDENCIES)
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1921 (_Boost_MISSING_DEPENDENCIES)
external/vsomeip/CMakeLists.txt:153 (find_package)


CMake Warning at /home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1161 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1283 (_Boost_COMPONENT_DEPENDENCIES)
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1921 (_Boost_MISSING_DEPENDENCIES)
external/vsomeip/CMakeLists.txt:153 (find_package)


CMake Warning at /home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1161 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1283 (_Boost_COMPONENT_DEPENDENCIES)
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1921 (_Boost_MISSING_DEPENDENCIES)
external/vsomeip/CMakeLists.txt:153 (find_package)


CMake Warning at /home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1161 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1283 (_Boost_COMPONENT_DEPENDENCIES)
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:1921 (_Boost_MISSING_DEPENDENCIES)
external/vsomeip/CMakeLists.txt:153 (find_package)


CMake Error at /home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):

version "1.75.0", minimum required is "1.55")
Call Stack (most recent call first):
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:395 (_FPHSA_FAILURE_MESSAGE)
/home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/FindBoost.cmake:2181 (find_package_handle_standard_args)
external/vsomeip/CMakeLists.txt:153 (find_package)

//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Could you please let me know how to resolve the error or how to setup boost library correctly?

  • Hello Arjun,

    As the error says "New Boost version may have incorrect or missing dependencies and imported", So we suspect the version of the boost library downloaded and copied is not 1.72.0 or earlier,  which is what supported by the toolchain. Looks like the version you downloaded is 1.75.0.

    Suggest downloading the correct version and try building.

    Thanks.

  • So, anything beyond 1.72.0 is not supported?
    Also please suggest from where can I download the correct version. A link to the appropriate location would be much appreciated.

  • Hello Arjun,

    So, anything beyond 1.72.0 is not supported?

    Yes,  This is as per the FindBoost.cmake found in your /home/arjunsanu/ti_linux/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake-3.16/Modules/ see line number 1161.

    Also please suggest from where can I download the correct version. A link to the appropriate location would be much appreciated.

    You had previously mentioned that as below:

    I require boost libraries for my compilation for which I have downloaded and copied the required files into the /ti_linux/linux-devkit/sysroots/aarch64-linux directory. 

    So we suggest downloading the required version from the same source. 

    Thanks.

  • I downloaded and used 1.72.0