oProfile - yszheda/wiki GitHub Wiki

http://oprofile.sourceforge.net

Install

./configure --with-kernel-support --target=arm-linux-androideabi --host=arm-linux-androideabi --with-kernel=/opt/android-hikey-linaro-4.4-headers/ CFLAGS="-I/opt/popt/include -I/opt/binutils/include -fPIC -v"  CXXFLAGS="-fPIC -I/opt/popt/include -I/opt/binutils/include -lstdc++ -v" SYSROOT="/opt/android-toolchain/sysroot/" LDFLAGS="-L/opt/popt/lib -L/opt/binutils/lib -static -lm -lstdc++" APP_STL=c++_static

popt

./configure --with-kernel-support --target=arm-linux-android --host=arm-linux-android  --enable-install-libfd  --prefix=/opt/pop

androideabi

C compiler cannot create executables

ld: error: cannot open crtbegin_dynamic.o

liberty library not found

error: libz library not found; required by libbfd

Cross compile zlib and install

error: Unable to find clock_gettime function; required by ocount

// TODO

iostream: No such file or directory

APP_STL:=stlport_static

error: 'AT_BASE_PLATFORM' undeclared (first use in this function)

iostream: No such file or directory

APP_STL                 := stlport_static
APP_STL=c++_static
APP_STL := gnustl_static

References


./configure --with-kernel-support --target=arm-linux-androideabi --host=arm-linux-androideabi --with-kernel=/opt/android-hikey-linaro-4.4-headers/ CFLAGS="-I/opt/popt/include"  CXXFLAGS="-I/opt/popt/include" LDFLAGS="-L/opt/popt/lib -static -lm"