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

distribute fails to build flask or sqlite3 : Error: libpymodules.so - no input files #275

Closed
ToddG opened this issue Oct 2, 2014 · 3 comments

Comments

@ToddG
Copy link

ToddG commented Oct 2, 2014

  1. Building 'Flask' fails...
./distribute.sh -m 'Flask'

http://pastebin.com/spDBqp3M

./distribute.sh -m 'Flask' -C

http://pastebin.com/ErJfVKGs

  1. As a double-check, I also tried building something for which there is a recipe, sqlite3...
./distribute.sh -m 'sqlite3'
./distribute.sh -m 'sqlite3' -C

http://pastebin.com/um0WaL5t

  1. The common error seems to be:
Biglink create [...]/p4a3/build/libs/libpymodules.so library
Biglink arguments:
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.
  1. Using the -C compilation flag fails with
    http://pastebin.com/yMQj4HQx

Here, the common error is:

Copy python distribution
./distribute.sh: line 769: /media/RHINO/data/projects/p4a3/build/python-install/bin/python.host: No such file or directory
Copy libs
Copy java files from various libs
cp: cannot stat ‘/media/RHINO/data/projects/p4a3/build/java/*’: No such file or directory
Fill private directory
cp: cannot stat ‘python-install/include/python2.7/pyconfig.h’: No such file or directory

Note, I'm on master:

commit a1fbc8259b6bf5831c6c10f9aad88e2cc3680fdd
Author: Mathieu Virbel <[email protected]>
Date:   Tue Sep 30 16:13:20 2014 +0200

    fix django compilation. closes #231 

I cannot seem to reproduce it, but I was able to build Flask. I had fiddled with building other things (kivy, for example) and then, in the same p4a clone directory, running distribute again to get it to build Flask. I even moved the run_pymodules_install before the run_prebuild step... that actually makes sense to me, and seemed to work, too. But I'll admit, I do not fully understand distribute.sh yet...

function run() {
    check_build_deps
    run_prepare
    run_source_modules
    run_get_packages
        run_pymodules_install  ## my change
    run_prebuild
    run_build
    run_biglink
    run_postbuild
    run_distribute
    info "All done !"
}
@ToddG ToddG changed the title distribute fails to build with libpymodules.so... no input files distribute fails to build flask or sqlite3 : Error: libpymodules.so - no input files Oct 2, 2014
@tito
Copy link
Member

tito commented Oct 2, 2014

Hi,

The current master version cannot build anything without at least Kivy. This is intended to be resolved at some point with the bootstrap branch. For now, python-for-android works only with Kivy toolkit.

So you need to do: ./distribute.sh -m "sqlite3 flask kivy". :)

@tito tito closed this as completed Oct 2, 2014
@ToddG
Copy link
Author

ToddG commented Oct 2, 2014

Tito - Thanks! That's great to hear, and I'm trying that now. However, if 'kivy' is required... then why even make it optional? I've spent hours trying to figure out how to package flask... You could just have a check to insure that at least one of the arguments passed in to '-m' is kivy, and if not, tell the user what you just told me.

@franciscod
Copy link

+1 to what ToddG said!

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

3 participants