Giter Club home page Giter Club logo

Comments (8)

fremling avatar fremling commented on June 11, 2024

Dear @JanLeppert, from the logs it looks like some of the Mathematica Files cannot be found.

If that is the case, first try following this troubleshoot
https://github.com/JuliaInterop/MathLink.jl?tab=readme-ov-file#installation-troubleshoot
to se if linking to them manually works.

from mathlink.jl.

JanLeppert avatar JanLeppert commented on June 11, 2024

Thanks for the suggestion @fremling,

but what is the correct file for the MathLink dynamic library on MacOS? I cannot find any of the suggested files from the Readme (libML64i4.so/ libML32i4.so on Linux or ml64i4.dll/ml32i4.dll/libML64.dll/ libML32.dll on Windows). I also followed the link from the example for the deps.jl file and found the similar path on my system:
/Applications/Mathematica.app/Contents/SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x86-64/CompilerAdditions
In this path there is a file libMLi4.a and I tried to link to this file, but with no sucess.

from mathlink.jl.

fremling avatar fremling commented on June 11, 2024

I must admit Mac is not my specialty: @simonbyrne do you know how Mathematica is set up on a Mac?

from mathlink.jl.

simonbyrne avatar simonbyrne commented on June 11, 2024

What does

file /Applications/Mathematica.app/Contents/Frameworks/mathlink.framework/mathlink

give? On my machine, I get:

/Applications/Mathematica.app/Contents/Frameworks/mathlink.framework/mathlink: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64]
/Applications/Mathematica.app/Contents/Frameworks/mathlink.framework/mathlink (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64
/Applications/Mathematica.app/Contents/Frameworks/mathlink.framework/mathlink (for architecture arm64):	Mach-O 64-bit dynamically linked shared library arm64

from mathlink.jl.

JanLeppert avatar JanLeppert commented on June 11, 2024

I only get one line with the x86_64 version:

/Applications/Mathematica.app/Contents/Frameworks/mathlink.framework/mathlink: Mach-O 64-bit dynamically linked shared library x86_64

from mathlink.jl.

simonbyrne avatar simonbyrne commented on June 11, 2024

Can you download a newer version which supports ARM? If not, then you should be able to use it with the Julia x86 binaries.

from mathlink.jl.

JanLeppert avatar JanLeppert commented on June 11, 2024

Thanks @simonbyrne

I was able to update Mathematica to a newer version, which also supports ARM. With this I was able to use MathLink.

So the answer to my question would be, that you need the ARM version of Mathematica for a Mac with M1 processor.

from mathlink.jl.

simonbyrne avatar simonbyrne commented on June 11, 2024

You need the platform to be the same for both Julia and Mathematica (you should be able to in both x86 under Rosetta)

from mathlink.jl.

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.