Cross Compile allJoyn on Ubuntu for RaspberryPI -


i trying cross-compile alljoyn on ubuntu 16.04 raspberrypi2. followed steps mentioned https://wiki.allseenalliance.org/develop/building_and_running under section linux cross-compiling.

when try compile alljoyn using command scons os=openwrt cpu=openwrt bindings=cpp,c,java ws=off bt=off ice=off service="about,notification,controlpannel,config,onboarding,sample_apps" following error

    scons: reading sconscript files ... checking c++ compiler support -std=c++11 flag... printing env dump... { 'cpath': '/home/jha/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/include',   'home': '/home/jha',   'library_path': '/home/jha/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/lib:/home/jha/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/libexec',   'path': '/home/jha/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin',   'staging_dir': '/home/jha/rpi/linux/usr'} no checking c++ compiler support -std=c++0x flag... printing env dump... { 'cpath': '/home/jha/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/include',   'home': '/home/jha',   'library_path': '/home/jha/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/lib:/home/jha/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/libexec',   'path': '/home/jha/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin',   'staging_dir': '/home/jha/rpi/linux/usr'} no *** compiler old build alljoyn.  aborting. 

i modified sconscript file under build_core/conf/openwrt print env variables right before checking compiler.

to verify compiler not outdated compiler, tried following

  1. created file named "test.cc" 1 line in int main(void) { return 0; }
  2. compiled file using command /home/jha/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -std=c++11 -o ../test ../test.cc
  3. file compiles without error
  4. version of arm-linux-gnueabihf-g++ 4.9.3

following values of environment variables set, before running scons command

host_home="/home/jha/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf" target_prefix="arm-linux-gnueabihf-" export target_path="${host_home}/bin" export target_cc="${target_prefix}gcc" export target_cppflags="" export target_cflags="-i${host_home}/arm-linux-gnueabihf/sysroot/usr/include" export cxxflags="-std=c++11" export target_cxx="${target_prefix}g++" export target_link=$target_cc export target_linkflags="-l${host_home}/arm-linux-gnueabihf/sysroot/usr/lib -l${host_home}/arm-linux-gnueabihf/sysroot/usr/libexec" export target_ldflags=$target_linkflags export target_ar="${target_prefix}ar" export target_ranlib="${target_prefix}ranlib" export staging_dir="/home/jha/rpi/linux/usr" export cross_prefix=$target_prefix export cross_path=$target_path export cross_cflags="$target_cflags -march=armv7 " export cross_linkflags=$target_linkflags export cross_compile=$target_prefix 

i not able cross-compile alljoyn raspberrypi2 on ubuntu 16.04 machine. pointers in right direction appreciated. thank in advance.

i figure out cross compiling alljoyn arm, following steps http://itisprakash.blogspot.com/2016/05/cross-compile-alljoyn-for-raspberrypi.html


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -