Re: Private: Re: [poky] Weird Compilation issue with a c++ recipe


arunlee@...
 


Adding yp mailing list back.

On Wed, Mar 24, 2021 at 1:04 PM <arunlee@gmail.com> wrote:

This what i see:

/build$ bitbake -e rs-oem-kit-server | grep -e "CXX="
export BUILD_CXX="g++ "
export CXX="aarch64-poky-linux-g++ -mcpu=cortex-a72+crc+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/aravind2/work/mevolve-yocto/mvdevice/build/tmp/work/aarch64-poky-linux/rs-oem-kit-server/1.8.2.0-r0/recipe-sysroot"
but the logs you posted doesn't show this as CXX, so somewhere its
being overwritten. Are there more CMakeFiles that are in play ?
I have posted the top level CMakeList.txt in the first post, which
added a sub directory

INCLUDE_DIRECTORIES(include)

# Add the sources to the target
add_subdirectory(src)


that has one CMakeList.txt.


# Set minimum required CMake version
cmake_minimum_required(VERSION 3.5.1)

# Name the project
project (sources)

add_subdirectory(calsimple)
add_subdirectory(calibinfo)
add_subdirectory(writer)
add_subdirectory(converter)
add_subdirectory(server)

regards
Arun

Join yocto@lists.yoctoproject.org to automatically receive all group messages.