Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile failing #66

Closed
son-link opened this issue Nov 18, 2012 · 18 comments
Closed

Compile failing #66

son-link opened this issue Nov 18, 2012 · 18 comments

Comments

@son-link
Copy link

Hi, firts sorry for my english
I try compile but in make show this error:

/home/sonlink/proyectos/python-for-android/src/jni/../jni/jpeg/jidctfst.S: Assembler messages:
/home/sonlink/proyectos/python-for-android/src/jni/../jni/jpeg/jidctfst.S:66: Error: missing ')'
/home/sonlink/proyectos/python-for-android/src/jni/../jni/jpeg/jidctfst.S:66: Error: garbage following instruction -- pld (r2,#0)' /home/sonlink/proyectos/python-for-android/src/jni/../jni/jpeg/jidctfst.S:259: Error: missing ')' /home/sonlink/proyectos/python-for-android/src/jni/../jni/jpeg/jidctfst.S:259: Error: garbage following instruction --pld (sp,#32)'
/home/sonlink/proyectos/python-for-android/src/jni/../jni/jpeg/jidctfst.S:271: Error: missing ')'
/home/sonlink/proyectos/python-for-android/src/jni/../jni/jpeg/jidctfst.S:271: Error: garbage following instruction -- `pld (ip,#32)'
make: *** [/home/sonlink/proyectos/python-for-android/src/obj/local/armeabi/objs/jpeg/jidctfst.o] Error 1

any idea why this error?

My system:
Arch Linux (64 bits)
Gcc-multilib 4.7.2
Ant 1.8.4
Android SDK r21
Android NDK r8c

Thanks

@tshirtman
Copy link
Member

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

@son-link
Copy link
Author

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)

@tshirtman
Copy link
Member

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

@son-link
Copy link
Author

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

@refnode
Copy link

refnode commented Nov 23, 2012

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

@akshayaurora
Copy link
Member

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

@son-link
Copy link
Author

Ok, tomorrow i try

@son-link
Copy link
Author

Finally works ^^

@son-link son-link reopened this Nov 23, 2012
@refnode
Copy link

refnode commented Nov 23, 2012

thx, works like a charm now

@Hans2011
Copy link

Here is my log, anybody help me...

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

@akshayaurora
Copy link
Member

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

git pull
git checkout ndkr8c

now re-run distribute.sh...

@Hans2011
Copy link

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

@akshayaurora
Copy link
Member

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.

@Hans2011
Copy link

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/

@refnode
Copy link

refnode commented Dec 1, 2012

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

@ghost
Copy link

ghost commented Dec 9, 2012

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.

@derzu
Copy link

derzu commented Feb 16, 2013

@akshayaurora
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants