Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Trying to cross compile OpenDDS for Android on Linux using the Crystax NDK.
- Thoughts?
- ---
- export ANDROID_NDK=/home/pepp/tools/crystax-ndk-10.3.2
- export CROSS_COMPILE=arm-linux-androideabi
- export ANDROID_PREFIX=/opt/android-toolchain
- export SYSROOT=${ANDROID_NDK}/platforms/android-21/arch-arm
- export CROSS_PATH=${ANDROID_PREFIX}/bin/${CROSS_COMPILE}
- export CPP=${CROSS_PATH}-cpp
- export AR=${CROSS_PATH}-ar
- export AS=${CROSS_PATH}-as
- export NM=${CROSS_PATH}-nm
- export CC=${CROSS_PATH}-gcc
- export CXX=${CROSS_PATH}-g++
- export LD=${CROSS_PATH}-ld
- export RANLIB=${CROSS_PATH}-ranlib
- export CFLAGS="${CFLAGS} --sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${ANDROID_PREFIX}/include"
- export CPPFLAGS="${CFLAGS}"
- export LDFLAGS="${LDFLAGS} -L${SYSROOT}/usr/lib -L${ANDROID_PREFIX}/lib"
- tar -xvzf ./OpenDDS-3.9.tar.gz
- cd OpenDDS-3.9
- ./configure --host=${CROSS_COMPILE} --target=arm-linux
- # --with-sysroot no longer supported?
- #./configure --host=${CROSS_COMPILE} --target=arm-linux --with-sysroot=${SYSROOT} "$@"
- make
- Results ...
- ---
- ERROR: unknown host arm-linux-androideabi, stopped at ./configure line 317.
- make: *** No targets specified and no makefile found. Stop.
- ---
- $ ./configure --help
- Welcome to OpenDDS version 3.9
- Options for this script are listed below, with the default behavior described
- in parens after the option description.
- Boolean options can take the form "--opt" or "--no-opt", the more commonly
- needed one (the one that changes the default behavior) is shown below.
- Options that require arguments are shown as "--opt=VAL" Options with optional
- arguments are shown as "--opt[=VAL]". Options that can be repeated with
- cumulative effect are shown with a trailing "...". Some third-party
- optional dependencies can be automatically located if they are installed in the
- expected locations (see entries below marked with "system pkg"). In those
- cases, specify the option as --opt without an = to enable the corresponding
- feature in OpenDDS and use the default installation location.
- Options controlling the configure script:
- --help Show this help and exit
- --target-help Show details of cross-compile target configs
- --verbose Trace script execution
- --dry-run Don't do anything
- Build platform and compiler:
- --host=VAL Host (auto detect: linux, win32, solaris, macosx)
- --compiler=VAL Compiler (auto detect / guess by searching PATH)
- --target=VAL Cross-compile target (none): see --target-help
- --target-compiler=VAL Compiler for target (if req'd): see --target-help
- --prefix=VAL Installation prefix (none)
- Build flags:
- --[no-]debug Debugging (yes)
- --optimize Optimization (no)
- --[no-]inline Inlining (yes)
- --static Static libraries (no)
- --ipv6 IPv6 support (no)
- Required dependencies for OpenDDS:
- --ace=VAL ACE (use ACE_ROOT, ACE_wrappers, or download)
- --tao=VAL TAO (use TAO_ROOT, ACE_ROOT/TAO, or download)
- --mpc=VAL MPC (use MPC_ROOT, ACE_ROOT/MPC, or download)
- Advanced configuration:
- --configh=VAL... Extra text for config.h
- --macros=VAL... Extra text for platform_macros.GNU
- --features=VAL... Extra text for default.features
- --mpcopts=VAL Extra command-line args for MPC (if MPC is run)
- Optional dependencies for OpenDDS:
- --java[=VAL] Java development kit (use JAVA_HOME)
- --jboss[=VAL] JBoss application server (use JBOSS_HOME)
- --ant[=VAL] Ant for JBoss (use ANT_HOME or system pkg)
- --wireshark[=VAL] Wireshark (use WIRESHARK_SRC)
- --glib[=VAL] GLib for wireshark (use GLIB_ROOT or system pkg)
- --rapidjson RapidJSON for wireshark itl (optional)
- --qt[=VAL] Qt (use QTDIR or system pkg)
- --qt-include[=VAL] Qt include dir (use QT4_INCDIR or QTDIR/include)
- --boost[=VAL] Boost (use BOOST_ROOT or system pkg)
- --boost-version[=VAL] Boost version (only if needed to find headers)
- Minimizing OpenDDS:
- --[no-]built-in-topics Built-in Topics (yes)
- --[no-]content-subscription Content-Subscription Profile (yes)
- --[no-]content-filtered-topic ContentFilteredTopic (CS Profile) (yes)
- --[no-]multi-topic MultiTopic (CS Profile) (yes)
- --[no-]query-condition QueryCondition (CS Profile) (yes)
- --[no-]ownership-profile Ownership Profile (yes)
- --[no-]ownership-kind-exclusive Exclusive Ownership (Ownership Profile) (yes)
- --[no-]object-model-profile Object Model Profile (yes)
- --[no-]persistence-profile Persistence Profile (yes)
- --safety-profile[=VAL] Safety Profile: base or extended (none)
- --[no-]tests Build tests, examples, and performance tests (yes)
Advertisement
Add Comment
Please, Sign In to add comment