GithubHelp home page GithubHelp logo

baskadym / compilemri.jl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from korbinian90/compilemri.jl

0.0 0.0 0.0 1.53 MB

Compiled executables and compilation scripts for ROMEO, CLEAR-SWI and MCPC-3D-S

License: MIT License

MATLAB 37.51% Julia 62.49%

compilemri.jl's Introduction

CompileMRI - mritools

Build Status

Note for MacOS: We automatically compile for MacOS too, however, it seems to only run on the same version it was compiled on (macos-11). The MacOS executable are not signed and require the user to allow the execution of multiple files.

Compile ROMEO and CLEAR-SWI

  1. Install Julia

    Please install Julia using the binaries from this page https://julialang.org. (Julia 1.7 or newer is recommended, some package managers install outdated versions)

  2. Install CompileMRI

    Start Julia (Type julia in the command line or start the installed Julia executable)

    Type the following in the Julia REPL:

    julia> ] # Be sure to type the closing bracket via the keyboard
    # Enters the Julia package manager
    
    # optional: activate a local julia project in the current folder
    (@v1.7) pkg> activate . 
    
    (compile) pkg> dev https://github.com/korbinian90/CompileMRI.jl
    # All dependencies are installed automatically
    (compile) pkg> build CompileMRI
  3. Create a command line executable

    julia> using CompileMRI
    julia> compile("/tmp/compiled")

    If the folder to output the binary (here /tmp/compiled) already exists, the additional keyword argument force=true is required:

    julia> compile("/tmp/compiled"; force=true)

Update to newest version

Since I'm using unregistered packages in dev mode, it is tricky to get updates to packages. Easiest is to remove the folder user/.julia/dev/CompileMRI and start over at step 2.

Known problems

Workaround for Permission Denied Error

ERROR: SystemError: opening file "/<path>/RomeoApp/<subfolder>/Project.toml"

If the compilation fails because of missing permissions, the RomeoApp folder needs write permission. In that case, changing the permission with

$ chmod 777 /<path>/RomeoApp/<subfolder>

and rerunning the command with

julia> compile("/tmp/compiled"; force=true)

should work.

compilemri.jl's People

Contributors

korbinian90 avatar

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.