Git Product home page Git Product logo

Comments (17)

r1chardj0n3s avatar r1chardj0n3s commented on May 22, 2024

I think I found the gcc problem: the script has the path hard-coded:

# this must be something depending of the API level of Android
export PATH="$ANDROIDNDK/toolchains/arm-eabi-4.4.3/prebuilt/linux-x86/bin/:$ANDROIDNDK:$ANDROIDSDK/tools:$PATH"

This needs to be "toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin" on my system.

from python-for-android.

r1chardj0n3s avatar r1chardj0n3s commented on May 22, 2024

More issues once I fix that path issue:

  Leaving ARM enviromnent
  ./distribute.sh: line 278: declare: -A: invalid option
  declare: usage: declare [-afFirtx] [-p] [name[=value] ...]

and then the script stops again because OS X does not have wget, only curl.

from python-for-android.

r1chardj0n3s avatar r1chardj0n3s commented on May 22, 2024

(the replacement curl command is "curl -O -L $url")

from python-for-android.

r1chardj0n3s avatar r1chardj0n3s commented on May 22, 2024

I can't find anything that documents what "declare -A" might do so I've altered it to "declare -a" (declare as array) which appears to be the intent.

from python-for-android.

r1chardj0n3s avatar r1chardj0n3s commented on May 22, 2024

Now I've hit this problem:

Run prebuild
Call prebuild_pygame
./distribute.sh: line 447: prebuild_pygame: command not found
Call prebuild_android
./distribute.sh: line 447: prebuild_android: command not found
Call prebuild_kivy
Run build
Call build_pygame
./distribute.sh: line 457: build_pygame: command not found
Call build_android
./distribute.sh: line 457: build_android: command not found
Call build_kivy

build_pygame does exist in recipes/pygame/recipe.sh ... no idea why this breaks yet. The script continued on though and then died with stacks of cython errors, the start of which was:

Compiler found at /usr/local/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin//arm-linux-androideabi-gcc
/usr/local/src/python-for-android/recipes/kivy/recipe.sh: line 28: /usr/local/src/python-for-android/build/python-install/bin/python.host: No such file or directory

Error compiling Cython file:
------------------------------------------------------------
...
include "config.pxi"
^
------------------------------------------------------------

c_opengl.pxd:1:0: 'config.pxi' not found

There is no "build/python-install" directory.

from python-for-android.

r1chardj0n3s avatar r1chardj0n3s commented on May 22, 2024

Ah, I'm figuring it out. It seems I need to build a bunch of dependencies first, possibly starting right back with ./distribute.sh -m "hostpython"

... still doesn't work though. When I try the above I end up with:

Biglink create /usr/local/src/python-for-android/build/libs/libpymodules.so library
Biglink arguments:
arm-linux-androideabi-gcc: no input files

from python-for-android.

r1chardj0n3s avatar r1chardj0n3s commented on May 22, 2024

I'm afraid I've hit a dead-end now. No matter what combination of modules I try to build I end up with the build terminating with:

Biglink create /usr/local/src/python-for-android/build/libs/libpymodules.so library
Biglink arguments:
arm-linux-androideabi-gcc: no input files

from python-for-android.

revolunet avatar revolunet commented on May 22, 2024

fighting with this too...

looks like md5sumcan ba aliases with md5 and then we just need to remove the tool detection on line 223

line 103: we have to use :
export PATH="$ANDROIDNDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/:$ANDROIDNDK:$ANDROIDSDK/tools:$PATH"

but then, the declare -A is not recognised and i end with :

./distribute.sh: line 278: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
Read kivy recipe
Recipe kivy does not exit

Its very important to be able to compile from our environnement and not from VMs.

can anyone help ?

from python-for-android.

ptq1 avatar ptq1 commented on May 22, 2024

I am wading through similar problems using Mac Lion - its a real pain. I am fiddling with distribute.sh but am not confident in what best to do. Has anyone any ideas?

With thanks in anticipation...

from python-for-android.

revolunet avatar revolunet commented on May 22, 2024

we're working on it. are you at europython ?

from python-for-android.

ptq1 avatar ptq1 commented on May 22, 2024

er europython?? - I am taking my very first steps with this and have
unfortunately hit a brick wall!

I am rather foolishly trying to write an Android app on my Mac laptop in
Python. I am beginning to wonder whether I should ditch this and simply
revert to a PC.

Any advice gratefully received,

Best

Philip.

On 4 July 2012 17:34, Julien Bouquillon <
[email protected]

wrote:

we're working on it. are you at europython ?


Reply to this email directly or view it on GitHub:
#36 (comment)

from python-for-android.

revolunet avatar revolunet commented on May 22, 2024

yep. its not working yet on OSX but in a few days it should. you can also use this ubuntu VM which works great on virtualbox and has all you need inside : https://groups.google.com/forum/?fromgroups#!topic/python-android/UbFDWXhGtZI

from python-for-android.

ptq1 avatar ptq1 commented on May 22, 2024

Thanks very much for engaging - please let me know if/when you get it to
work.

Many thanks

Philip.

On 4 July 2012 17:48, Julien Bouquillon <
[email protected]

wrote:

yep. its not working yet on OSX but in a few days it should. you can also
use this ubuntu VM which works great on virtualbox and has all you need
inside :
https://groups.google.com/forum/?fromgroups#!topic/python-android/UbFDWXhGtZI


Reply to this email directly or view it on GitHub:
#36 (comment)

from python-for-android.

revolunet avatar revolunet commented on May 22, 2024

here's where i'm finally stucked with the macosx branch; cant understand; any help appreciated.

ends with bad -rpath option...

ccache arm-linux-androideabi-gcc -mandroid  -fomit-frame-pointer --sysroot /Applications/android-ndk-r8/platforms/android-14/arch-arm -dynamiclib -Wl,-single_module  -Wl,-install_name,/Users/juju/Documents/projects/kivysrc/python-for-android/build/python-install/lib/libpython2.7.dylib -Wl,-compatibility_version,2.7 -Wl,-current_version,2.7 -o libpython2.7.dylib Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/cobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/obmalloc.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/dtoa.o Python/formatter_unicode.o Python/formatter_string.o Python/dynload_shlib.o   Python/thread.o Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o  Modules/threadmodule.o  Modules/signalmodule.o  Modules/posixmodule.o  Modules/errnomodule.o  Modules/pwdmodule.o  Modules/_sre.o  Modules/_codecsmodule.o  Modules/zipimport.o  Modules/symtablemodule.o  Modules/arraymodule.o  Modules/cmathmodule.o  Modules/mathmodule.o  Modules/_struct.o  Modules/timemodule.o  Modules/operator.o  Modules/_weakref.o  Modules/_randommodule.o  Modules/_collectionsmodule.o  Modules/itertoolsmodule.o  Modules/stropmodule.o  Modules/_functoolsmodule.o  Modules/_elementtree.o  Modules/datetimemodule.o  Modules/_bisectmodule.o  Modules/fcntlmodule.o  Modules/selectmodule.o  Modules/socketmodule.o  Modules/md5module.o Modules/md5.o  Modules/shamodule.o  Modules/sha256module.o  Modules/sha512module.o  Modules/binascii.o  Modules/parsermodule.o  Modules/cStringIO.o  Modules/cPickle.o  Modules/zlibmodule.o  Modules/xmlparse.o Modules/xmlrole.o Modules/xmltok.o Modules/pyexpat.o  Modules/xxsubtype.o -ldl    ; \

/usr/bin/install -c -m 644 ./Misc/python.man \
        /Users/juju/Documents/projects/kivysrc/python-for-android/build/python-install/share/man/man1/python2.7.1
/usr/bin/install -c -m 644 ./Include/Python-ast.h /Users/juju/Documents/projects/kivysrc/python-for-android/build/python-install/include/python2.7
/usr/bin/install -c -m 644 ./Include/Python.h /Users/juju/Documents/projects/kivysrc/python-for-android/build/python-install/include/python2.7
/usr/bin/install -c -m 644 ./Include/abstract.h /Users/juju/Documents/projects/kivysrc/python-for-android/build/python-install/include/python2.7
/usr/bin/install -c -m 644 ./Include/asdl.h /Users/juju/Documents/projects/kivysrc/python-for-android/build/python-install/include/python2.7
/usr/bin/install -c -m 644 ./Include/ast.h /Users/juju/Documents/projects/kivysrc/python-for-android/build/python-install/include/python2.7
/Applications/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin//../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: bad -rpath option

from python-for-android.

tito avatar tito commented on May 22, 2024

All of theses have been fixed, and it's already merged in master. Closing this issue.

from python-for-android.

ptq1 avatar ptq1 commented on May 22, 2024

This is really good news - could you possibly provide a link to the fixes?

Thanks

On 21 August 2012 10:47, Mathieu Virbel [email protected] wrote:

All of theses have been fixed, and it's already merged in master. Closing
this issue.


Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-7896368.

from python-for-android.

tito avatar tito commented on May 22, 2024

No link to the fixes, it was part of the macosx branch plus additionnal fixes in master
Just pull the latest master, it will be ok.

from python-for-android.

Related Issues (20)

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.