seq-lang / seq

A high-performance, Pythonic language for bioinformatics

Home Page:https://seq-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build an execution program not depending on the runtime libraries

liqg opened this issue · comments

commented

Could I use seqc build to build an execution program not depending on the runtime libraries, such as libomp.so libseqrt.so and libseq.so?

commented

I found an alternative method that create an appimage file using linuxdeploy and appimagetool like this:

seqc build --exe a.seq # compile a.seq

./linuxdeploy-x86_64.AppImage --appdir=appdir -e a --library ./libomp.so --library ./libseqrt.so --library ./libseq.so  --create-desktop-file -i a.png
./appimagetool-x86_64.AppImage appdir/

a.seq just a simple seq code

print 'act'

a.png is an icon file.

This will generate an appimage file, a-x86_64.AppImage, and get the right result by running it.

./a-x86_64.AppImage