GithubHelp home page GithubHelp logo

gles-egg's Introduction

gles-egg

Chicken Scheme OpenGL ES egg for Android

Work in progress .... This egg is based upon the project android-chicken-example. Right now, it compiled and load fine under debian/i386.

Next step: use android-ndk to compile the module Android NDK based cross-chicken: Refferng to $NDK/docs/STANDALONE-TOOLCHAIN.html

Use $NDK/build/tools/make-standalone-toolchain.sh to install an Android NDK based toolchain to your home.

$NDK/build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=~/my-android-toolchain

After that, build the cross-chicken like explained in 3 Step: http://wiki.call-cc.org/man/4/Cross%20development#building-the-target-libraries

1st Step: setup PTH to find the Android NDK compiler and linker e.g: export PATH=$PATH:$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/

2nd Step: Unpack chicken-4.8.0.tgz and do make ARCH=
PREFIX=/usr
PLATFORM=linux
HOSTSYSTEM=arm-linux-androideabi
DESTDIR=$HOME/target
TARGET_FEATURES="-no-feature x86 -feature arm"
libs install-dev

I had to disable HAVE_EXITS_H in Makefile.linux + disable all references in posixunix.scm to pw-gecos.

3rd Step: Unpack chicken-4.8.0.tgz AGAIN and do: make PLATFORM=linux
PREFIX=$HOME/cross-chicken
TARGETSYSTEM=arm-linux-androideabi
PROGRAM_PREFIX=arm-
TARGET_PREFIX=$HOME/target/usr
TARGET_RUN_PREFIX=/usr
install

However, you need to fix some things manually, before building finally the gles-egg. Go to ~/target/usr/include and link chicken to arm-chicken. ln -s chicken arm-chicken

After that copy libGLESv1_CM.so from $NDK/platforms/android-14/arch-arm/usr/lib/

After that, you can e.g. call ~/cross-chicken/bin/arm-chicken-install -target inside the gless-egg directory.

gles-egg's People

Contributors

paines avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.