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 guider for binary execution #15

Open
iipeace opened this issue Dec 27, 2017 · 0 comments
Open

compile guider for binary execution #15

iipeace opened this issue Dec 27, 2017 · 0 comments

Comments

@iipeace
Copy link
Owner

iipeace commented Dec 27, 2017

  1. static build
    $ ./configure LDFLAGS="-static -static-libgcc" --disable-shared CPPFLAGS="-static" --enable-optimizations
    $ make -j LDFLAGS="-static" LINKFORSHARED=" "
    $ cp build/lib.linux-x86_64-2.7/* Lib/
    $ tar cvfz python.tgz python Lib

  2. https://github.com/pyinstaller/pyinstaller
    $ ./pyinstaller.py --onefile guider.py --exclude=matplotlib --exclude=PIL --exclude=pylab

  1. http://nuitka.net/pages/overview.html
  • cross compile is not supported
  • use qemu environment to build

./nuitka test/guider.py --portable --show-progress --show-modules --recurse-not-to=pylab,matplotlib,PIL

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

No branches or pull requests

1 participant