Advertisement
Ancurio

android mkxp deps notes

Aug 8th, 2015
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. General automake line:
  2. ./configure --prefix=$PREF --host=$HOST
  3.  
  4. libogg: no problems
  5.  
  6. libvorbis: outdated config.sub & config.guess, fetch from automake sources
  7.  
  8. pixman:
  9. ./configure --prefix=$PREF --host=$HOST --disable-arm-neon --disable-arm-simd --disable-timers --disable-gtk --disable-libpng
  10.  
  11. sigc++:
  12. ./configure --prefix=$PREF --host=$HOST --enable-static
  13.  
  14. libpng: no problems
  15.  
  16. libjpeg: outdated config.{sub,guess}, also disable simd just in case
  17. ./configure --prefix=$PREF --host=$HOST --without-simd
  18.  
  19. freetype2:
  20. LIBPNG_CFLAGS=`pkg-config --cflags libpng` LIBPNG_LDFLAGS=`pkg-config --ldflags libpng` ./configure --prefix=$PREF --host=$HOST
  21.  
  22. zlib:
  23. CHOST=$HOST ./configure --prefix=$PREF
  24.  
  25. cmake android toolchain:
  26. git clone git://github.com/taka-no-me/android-cmake.git
  27.  
  28. physfs:
  29. cmake -DCMAKE_TOOLCHAIN_FILE=$PREF/src/android-cmake/android.toolchain.cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREF ..
  30.  
  31. openal: targets SL 1.1, needs patch to work with 1.0
  32. build a second time with -DLIBTYPE=STATIC to enable static lib
  33. cmake -DCMAKE_TOOLCHAIN_FILE=$PREF/src/android-cmake/android.toolchain.cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREF ..
  34.  
  35. SDL: use tip. apply patch to fix compile without audio (or alternatively enable audio).
  36. ./configure --prefix=$PREF --host=$HOST --disable-video-x11 --disable-audio --disable-render --disable-dbus
  37.  
  38. SDL2_image: use tip. Remove first "showimage" line from Makefile.in.
  39. CFLAGS="$CFLAGS -I$PREF/include" ./configure --prefix=$PREF --host=$HOST --with-sdl-prefix=$PREF --disable-bmp --disable-gif --disable-lbm --disable-pcx --disable-pnm --disable-tga --disable-tif --disable-xcf --disable-xpm --disable-xv --disable-webp --disable-sdltest --disable-png-shared --disable-jpg-shared
  40.  
  41. SDL2_ttf: use tip. Remove first "glfont" line from Makefile.in. After configure, remove "/usr/include" CFLAGS ref from Makefile.
  42. ./configure --prefix=$PREF --host=$HOST --disable-sdltest
  43.  
  44. SDL_sound: apply mkxp patches.
  45. CFLAGS="$CFLAGS -I$PREF/include" ./configure --prefix=$PREF --host=$HOST --disable-sdltest
  46.  
  47. boost: (should prolly disable some more libs, but it worked); when done, symbolic link static libs into lib and boost/ folder into include
  48. echo "using gcc : : $HOST-g++ ;" >> tools/build/v2/user-config.jam
  49. ./bootstrap.sh
  50. ./b2 -d+2 --without-python --without-mpi --without-locale variant=release debug-symbols=on pch=off link=static stage --without-atomic --without-chrono --without-context --without-coroutine --without-date_time --without-random --without-regex --without-serialization --without-signals --without-test --without-wave --without-math --without-log --without-graph --without-exception --without-iostreams --without-system --without-thread --without-timer --without-graph_parallel
  51.  
  52. ruby:
  53. ./configure --prefix=$PREF --host=$HOST --enable-shared
  54. make -j2 ruby
  55. ~/programming/C++/mkxp/deps/src/ruby_install_simple.sh 2.1 $PREF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement