Giter Site home page Giter Site logo

Compile failing about python-for-android HOT 18 CLOSED

son-link avatar son-link commented on May 20, 2024
Compile failing

from python-for-android.

Comments (18)

tshirtman avatar tshirtman commented on May 20, 2024

Can you put the whole log? there is likely an error before that triggers this.

from python-for-android.

son-link avatar son-link commented on May 20, 2024

The whole log -> http://paste.desdelinux.net/4662
and i use api version 9 (NDK also include the 3, 4, 5, 8 and 14, y try with 8 too)

from python-for-android.

tshirtman avatar tshirtman commented on May 20, 2024

this log is truncated, try with another paste site paste.ubuntu.com for example.

from python-for-android.

son-link avatar son-link commented on May 20, 2024

http://paste.ubuntu.com/1367510/
It's the complete log

from python-for-android.

refnode avatar refnode commented on May 20, 2024

here is another build fail log for SHA: c98bec6
http://paste.ubuntu.com/1380444/

from python-for-android.

akshayaurora avatar akshayaurora commented on May 20, 2024

Hi try the ndkr8c branch. git pull, git checkout ndkr8c then re-compile

from python-for-android.

son-link avatar son-link commented on May 20, 2024

Ok, tomorrow i try

from python-for-android.

son-link avatar son-link commented on May 20, 2024

Finally works ^^

from python-for-android.

refnode avatar refnode commented on May 20, 2024

thx, works like a charm now

from python-for-android.

Hans2011 avatar Hans2011 commented on May 20, 2024

Here is my log, anybody help me...

http://paste.ubuntu.com/1385606/

from python-for-android.

akshayaurora avatar akshayaurora commented on May 20, 2024

Hans2011,
Go-to the pthon-for-android directory,
run the following commands

git pull
git checkout ndkr8c

now re-run distribute.sh...

from python-for-android.

Hans2011 avatar Hans2011 commented on May 20, 2024

Akshayaurora,
Thx, the jpeg/jidctfst.S is ok.

I meet another issue with zlib.h
http://paste.ubuntu.com/1387283/

I tried to copy the subfold's Zlib.h and zconf.h into the folder of zlibmodule.c, but
http://paste.ubuntu.com/1387315/

gcc -pthread -Xlinker -export-dynamic -o python
Modules/python.o
libpython2.7.a -lpthread -ldl -lutil -L/usr/local/lib -lz -lm
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status

from python-for-android.

akshayaurora avatar akshayaurora commented on May 20, 2024

Could you start fresh? git clean -dxf(usual warning about this deleting any
uncommitted changes) and then restart your distribution build,
see if that helps.

On Mon, Nov 26, 2012 at 10:05 AM, Hans2011 [email protected] wrote:

Akshayaurora,
Thx, the jpeg/jidctfst.S is ok.

I meet another issue with zlib.h
http://paste.ubuntu.com/1387283/

I tried to copy the subfold's Zlib.h and zconf.h into the folder of
zlibmodule.c, but
http://paste.ubuntu.com/1387315/

gcc -pthread -Xlinker -export-dynamic -o python
Modules/python.o
libpython2.7.a -lpthread -ldl -lutil -L/usr/local/lib -lz -lm

/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status


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

from python-for-android.

Hans2011 avatar Hans2011 commented on May 20, 2024

The cleaning seems not works.
The Zlib issue is ok when i installed the jpeg lib.
anyway thank you very much!


sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/
sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/
sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/

from python-for-android.

refnode avatar refnode commented on May 20, 2024

would make sense to have a step in the recipes checking for build dependencies, opened a new issue #68

from python-for-android.

 avatar commented on May 20, 2024

Alternatively,
you could just keep using the master branch and overwrite src/jni/jpeg folder files with
files from: https://github.com/android/platform_external_jpeg

If you run into any issues regarding jmem-ashmem.c compilation, just change the memory manager in src/jni/jpeg/Android.mk back to jmem-android.c

In other words, your Android.mk should have something like this:

    # keep this section commented
    # use ashmem as libjpeg decoder's backing store
    #LOCAL_CFLAGS += -DUSE_ANDROID_ASHMEM
    #LOCAL_SRC_FILES += \
            #jmem-ashmem.c

    # keep this section uncommented
    # the original android memory manager.
    # use sdcard as libjpeg decoder's backing store
    LOCAL_SRC_FILES += \
            jmem-android.c

Now ./distribute.sh -m "kivy pil" should work fine.

from python-for-android.

derzu avatar derzu commented on May 20, 2024

I solved the problem doing what this post explain:
http://stackoverflow.com/questions/14366630/getting-this-error-while-building-andriod-ndk/14913754#14913754

from python-for-android.

akshayaurora avatar akshayaurora commented on May 20, 2024

This was merged into master some time ago and such you shouldn't need to use this branch and the error shouldn't arise if you have the latest master.

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.