SRD

xcompile

SRD
Oct 29th, 2016
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. Trying to cross compile OpenDDS for Android on Linux using the Crystax NDK.
  2.  
  3. Thoughts?
  4. ---
  5.  
  6. export ANDROID_NDK=/home/pepp/tools/crystax-ndk-10.3.2
  7. export CROSS_COMPILE=arm-linux-androideabi
  8. export ANDROID_PREFIX=/opt/android-toolchain
  9. export SYSROOT=${ANDROID_NDK}/platforms/android-21/arch-arm
  10. export CROSS_PATH=${ANDROID_PREFIX}/bin/${CROSS_COMPILE}
  11.  
  12. export CPP=${CROSS_PATH}-cpp
  13. export AR=${CROSS_PATH}-ar
  14. export AS=${CROSS_PATH}-as
  15. export NM=${CROSS_PATH}-nm
  16. export CC=${CROSS_PATH}-gcc
  17. export CXX=${CROSS_PATH}-g++
  18. export LD=${CROSS_PATH}-ld
  19. export RANLIB=${CROSS_PATH}-ranlib
  20.  
  21. export CFLAGS="${CFLAGS} --sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${ANDROID_PREFIX}/include"
  22. export CPPFLAGS="${CFLAGS}"
  23. export LDFLAGS="${LDFLAGS} -L${SYSROOT}/usr/lib -L${ANDROID_PREFIX}/lib"
  24.  
  25. tar -xvzf ./OpenDDS-3.9.tar.gz
  26.  
  27. cd OpenDDS-3.9
  28.  
  29. ./configure --host=${CROSS_COMPILE} --target=arm-linux
  30.  
  31. # --with-sysroot no longer supported?
  32. #./configure --host=${CROSS_COMPILE} --target=arm-linux --with-sysroot=${SYSROOT} "$@"
  33.  
  34. make
  35.  
  36. Results ...
  37. ---
  38.  
  39. ERROR: unknown host arm-linux-androideabi, stopped at ./configure line 317.
  40. make: *** No targets specified and no makefile found. Stop.
  41.  
  42. ---
  43.  
  44. $ ./configure --help
  45. Welcome to OpenDDS version 3.9
  46.  
  47. Options for this script are listed below, with the default behavior described
  48. in parens after the option description.
  49. Boolean options can take the form "--opt" or "--no-opt", the more commonly
  50. needed one (the one that changes the default behavior) is shown below.
  51. Options that require arguments are shown as "--opt=VAL" Options with optional
  52. arguments are shown as "--opt[=VAL]". Options that can be repeated with
  53. cumulative effect are shown with a trailing "...". Some third-party
  54. optional dependencies can be automatically located if they are installed in the
  55. expected locations (see entries below marked with "system pkg"). In those
  56. cases, specify the option as --opt without an = to enable the corresponding
  57. feature in OpenDDS and use the default installation location.
  58.  
  59. Options controlling the configure script:
  60. --help Show this help and exit
  61. --target-help Show details of cross-compile target configs
  62. --verbose Trace script execution
  63. --dry-run Don't do anything
  64.  
  65. Build platform and compiler:
  66. --host=VAL Host (auto detect: linux, win32, solaris, macosx)
  67. --compiler=VAL Compiler (auto detect / guess by searching PATH)
  68. --target=VAL Cross-compile target (none): see --target-help
  69. --target-compiler=VAL Compiler for target (if req'd): see --target-help
  70. --prefix=VAL Installation prefix (none)
  71.  
  72. Build flags:
  73. --[no-]debug Debugging (yes)
  74. --optimize Optimization (no)
  75. --[no-]inline Inlining (yes)
  76. --static Static libraries (no)
  77. --ipv6 IPv6 support (no)
  78.  
  79. Required dependencies for OpenDDS:
  80. --ace=VAL ACE (use ACE_ROOT, ACE_wrappers, or download)
  81. --tao=VAL TAO (use TAO_ROOT, ACE_ROOT/TAO, or download)
  82. --mpc=VAL MPC (use MPC_ROOT, ACE_ROOT/MPC, or download)
  83.  
  84. Advanced configuration:
  85. --configh=VAL... Extra text for config.h
  86. --macros=VAL... Extra text for platform_macros.GNU
  87. --features=VAL... Extra text for default.features
  88. --mpcopts=VAL Extra command-line args for MPC (if MPC is run)
  89.  
  90. Optional dependencies for OpenDDS:
  91. --java[=VAL] Java development kit (use JAVA_HOME)
  92. --jboss[=VAL] JBoss application server (use JBOSS_HOME)
  93. --ant[=VAL] Ant for JBoss (use ANT_HOME or system pkg)
  94. --wireshark[=VAL] Wireshark (use WIRESHARK_SRC)
  95. --glib[=VAL] GLib for wireshark (use GLIB_ROOT or system pkg)
  96. --rapidjson RapidJSON for wireshark itl (optional)
  97. --qt[=VAL] Qt (use QTDIR or system pkg)
  98. --qt-include[=VAL] Qt include dir (use QT4_INCDIR or QTDIR/include)
  99. --boost[=VAL] Boost (use BOOST_ROOT or system pkg)
  100. --boost-version[=VAL] Boost version (only if needed to find headers)
  101.  
  102. Minimizing OpenDDS:
  103. --[no-]built-in-topics Built-in Topics (yes)
  104. --[no-]content-subscription Content-Subscription Profile (yes)
  105. --[no-]content-filtered-topic ContentFilteredTopic (CS Profile) (yes)
  106. --[no-]multi-topic MultiTopic (CS Profile) (yes)
  107. --[no-]query-condition QueryCondition (CS Profile) (yes)
  108. --[no-]ownership-profile Ownership Profile (yes)
  109. --[no-]ownership-kind-exclusive Exclusive Ownership (Ownership Profile) (yes)
  110. --[no-]object-model-profile Object Model Profile (yes)
  111. --[no-]persistence-profile Persistence Profile (yes)
  112. --safety-profile[=VAL] Safety Profile: base or extended (none)
  113. --[no-]tests Build tests, examples, and performance tests (yes)
Advertisement
Add Comment
Please, Sign In to add comment