Comments (5)
You can, by populating the julia_init_h_file
option,
PackageCompiler.jl/src/PackageCompiler.jl
Lines 959 to 961 in 466aec3
with appropriate values. For example, to include the default init file header plus the Julia header file, you could try something like
julia_init_h_file = [PackageCompiler.default_julia_init_header(),
joinpath(Sys.BINDIR, Base.INCLUDEDIR, "julia", "julia.h")]
from packagecompiler.jl.
Thanks. I will try that. I couldn't find it in the documentation anywhere.
Will it automatically pull in all of the julia.h include dependencies?
from packagecompiler.jl.
I couldn't find it in the documentation anywhere.
It is considered an "advanced" option and thus only documented in the References section. I'd be open to adding a section on custom header/init files in the main docs though.
Will it automatically pull in all of the julia.h include dependencies?
No, you're right. You'd have to do this manually. I also see currently no sane way to automate this, since you'd have to transitively also include those headers. Except maybe to include the entire joinpath(Sys.BINDIR, Base.INCLUDEDIR, "julia")
folder in the library bundle.
from packagecompiler.jl.
So it seems like this is still a valid issue? To somehow make this more manageable, or specify which functions to rehost in the shared library somehow.
from packagecompiler.jl.
Yes, I still consider this to be a valid issue. However, it is unclear to me if such a functionality should be included in PackageCompiler.jl to be automated, or whether it is something that could be documented but would be left up to the user to do manually.
Maybe @KristofferC has on opinion here?
from packagecompiler.jl.
Related Issues (20)
- Can't the JULIA_DEPOT_PATH be changed in apps?
- Package Compiler Fails on Julia v1.10 HOT 1
- Error in PackageCompiler.jl with Test.jl and `filter_stdlibs = true` in Julia 1.10 HOT 2
- Cache the "base" sysimage using Scratch.jl HOT 3
- Need to update Windows compilers for 1.11
- Sysimage documentation bug
- Type piracy on `Base` fails incremental sysimage builds (1.9 -> 1.10 regression) HOT 4
- Missing libcholmod when building apps with `filter_stdlibs = false` after updating PackageCompiler HOT 5
- Sysimage with `Plots.jl` breaks loading some shared libraries in R (via `RCall.jl`) HOT 1
- Compiled app errors when loading depencies HOT 2
- Building "examples/MyLib" fails on macOS HOT 1
- Error when creating a c-callable library on MacOS HOT 1
- Dependency analyzer seems to skip packages that are `import .PKGNAME` HOT 3
- Error occurred while compiling code that includes `using LoopVectorization` HOT 4
- Plans for the "true" Profile-Guided Optimization (PGO) in the compiler
- Zarr and DimensionalData in same package will not compile on macOS HOT 2
- Build from temporary depot (so that relocatability issues are locally reproducible)
- Failed consistency check when trying to relocate compiled app (MacOS) HOT 2
- Error for compiled executable program ran in another machine HOT 1
- How to select the GLIBC version for create_app?
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 packagecompiler.jl.