cross compilation issue with x86_64 arm processor board

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

cross compilation issue with x86_64 arm processor board

512 Views
pooja_todakar
Contributor I

hiiii,

I am facing issue while building azure sdk for cross compiler build. i am using poky 1.6.2 cross compiler, error is as mentioned below,

/opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld: cannot find -luuid

my toolchain.make file is 

INCLUDE(CMakeForceCompiler)

SET(CMAKE_SYSTEM_NAME Linux) # this one is important
SET(CMAKE_SYSTEM_VERSION 1) # this one not so much
SET(CMAKE_SYSTEM_PROCESSOR arm)

# this is the location of the amd64 toolchain targeting the Raspberry Pi
SET(CMAKE_C_COMPILER $ENV{RPI_ROOT}/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER $ENV{RPI_ROOT}/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++)
# this is the file system root of the target
SET(CMAKE_FIND_ROOT_PATH $ENV{RPI_ROOT}/usr/lib)
SET(CMAKE_FIND_ROOT_PATH $ENV{RPI_ROOT}/lib)
SET(CMAKE_FIND_ROOT_PATH /opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/)
SET(CMAKE_LINKER /opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld)


# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)

please help me out in this,

0 Kudos
1 Reply

501 Views
jimmychan
NXP TechSupport
NXP TechSupport

Which board are you using?

Which BSP or software package are you using?

0 Kudos