Giter VIP home page Giter VIP logo

Comments (6)

MatthiasKauer avatar MatthiasKauer commented on July 29, 2024

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.

MatthiasKauer avatar MatthiasKauer commented on July 29, 2024

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.

ViralBShah avatar ViralBShah commented on July 29, 2024

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.

MatthiasKauer avatar MatthiasKauer commented on July 29, 2024

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.

ViralBShah avatar ViralBShah commented on July 29, 2024

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.

MatthiasKauer avatar MatthiasKauer commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.