On 11/06/17 09:55, Philippe Coval wrote: > > > On 05/11/17 06:30, 翟墨 wrote: >> Dear develops: >> Hi! I followed the guidance >> in https://wiki.iotivity.org/build_iotivity_for_raspberry_pi, to build >> iotivity for raspberry pi 3 with raspbian jessie OS. When I built >> with scons TARGET_ARCH=arm in home/pi/iotivity-1.3.0, I met an error: >> Linking out/linux/arm/release/resource/IPCA/unittests/ipcatests >> extlibs/gtest/googletest-release-1.7.0/lib/.libs/libgtest.a: error >> adding symbols: File format not recognized. >> I don't know how to solve it, I guess I need an armhf version of that >> libgtest.a. Can any one help me? >> Thanks >> Zhai > > Hi > What if you just build 1.3-rel, using scons on device without > "TARGET_ARM=arm" arg > Please file a bug if this (or any) wiki page is not correct.
I have in fact very recently built master branch natively, and it works (though my distribution was Raspbian GNU/Linux 9.1 (stretch) so a bit newer). Be sure to add some swap space - recommend installing the Debian 'swapspace' pkg to take care of it automatically - and make sure there's no chance of scons trying a multi-job setup - might want to include "-j1" explicitly, or the poor Pi will run itself out of memory. We should address the cross-build weaknesses, the fact they still exist is merely a question of lack of demand, other things are getting more attention because more people using. Cross-building IS working on those platforms that have very evolved SDKs for it - Android, Tizen and iOS. _______________________________________________ iotivity-dev mailing list iotivity-dev@lists.iotivity.org https://lists.iotivity.org/mailman/listinfo/iotivity-dev