Comments (6)
Ok, it seems like I have answered some of my questions:
o AG82w matt@hp840:~/dvl/static-julia (master)$ ldd builddir/hello
linux-vdso.so.1 => (0x00007ffebb7cd000)
libhello.so => /home/matt/dvl/static-julia/builddir/libhello.so (0x00007f2663a05000)
libjulia.so.0.6 => /opt/julia-903644385b/lib/libjulia.so.0.6 (0x00007f2663307000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2662f20000)
libLLVM-3.9.so => /opt/julia-903644385b/lib/julia/libLLVM-3.9.so (0x00007f266111a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2660f15000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2660d0d000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2660af0000)
libstdc++.so.6 => /opt/julia-903644385b/lib/julia/libstdc++.so.6 (0x00007f266076f000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2660466000)
libgcc_s.so.1 => /opt/julia-903644385b/lib/julia/libgcc_s.so.1 (0x00007f266024e000)
/lib64/ld-linux-x86-64.so.2 (0x0000555dbfa53000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2660033000)
So libjulia is still required right now.
Is it reasonable to attempt static linking or putting the shared libjulia file into the same directory for easier distribution?
from static-julia.
Your forum post https://discourse.julialang.org/t/compiling-and-building-binaries-from-your-julia-code/5687 I stumbled upon also clears up many things.
from static-julia.
The eventual goal is to be able to build standalone libraries and executables, and ship as part of a python wheel without needing Julia, or distributing a Julia package without source.
For now, it will live here, and we'll try to make sure it works well. I do hope that as julia gets better at this sort of thing, these capabilities should move into the julia codebase - but that is certainly post 1.0.
from static-julia.
Thank you for getting back to me. I will be watching this project :)
Is this project currently waiting for features from 1.0?
Could we get standalone libs on 0.6 already? We'd need to build a static libjulia from the main repo first, right?
from static-julia.
Currently, this will give you executables or shared libraries that depend on the libjulia.so
and any other libraries such as BLAS/other dependencies, or any BinDeps dependencies your code may be using.
from static-julia.
Ok. In other words, if we want static executables, there are a lot of build scripts to be adjusted to offer static libraries. In fact, the whole Julia ecosystem would have to offer a static library, right?
from static-julia.
Related Issues (20)
- Building so versions of packages? HOT 2
- Generating the single binary. HOT 2
- Segfault when gc runs? HOT 2
- Warning compiling program.c with ARGS HOT 1
- Set JULIA_HOME? HOT 1
- Compilation fails under Windows10 HOT 9
- Portability: LLVM error when running in different architecture
- Feature request: Automatically generate header file HOT 2
- Passing command line arguments HOT 1
- Compiled hello.jl hangs HOT 3
- Readme example fails when renaming hello.jl to hi.jl HOT 3
- ARGS doesn't work HOT 2
- Document what the result is in the README
- After #54, default compile doesn't build julia object. HOT 5
- exec format error: ./hello.o in MacOS (and It takes so long time to compile!!!) HOT 2
- Can juliac compile(bootstrap) itself? "required argument juliaprog was not provided".
- Handle package binary dependencies
- Library not loaded: @rpath/"libtiny.dylib" -- image not found HOT 1
- error LoadError: ArgumentError: broadcasting over dictionaries and `NamedTuple`s is reserved HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from static-julia.