Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building qml on an Apple Silicon M1 Mac #16

Open
somethingbloodyfunky opened this issue Nov 6, 2024 · 0 comments
Open

Building qml on an Apple Silicon M1 Mac #16

somethingbloodyfunky opened this issue Nov 6, 2024 · 0 comments

Comments

@somethingbloodyfunky
Copy link

I've tried several building qml on my M1 Mac. Here's roughly what I do to build it

cd qml
./configure CC=clang, FC=gfortran, KXARCH=m64
cd download
wget http://www.netlib.org/cephes/cprob.tgz
wget https://www.netlib.org/opt/conmax.f
wget https://github.com/stevengj/nlopt/releases/download/nlopt-2.4.2/nlopt-2.4.2.tar.gz
cp ~/q/c/k.h .
cd ..
cd src
cp ~/q/m64/c.o .
cd ..
make KXVER=4
cd src
clang -shared -fPIC -o qml.so ../lib/libprob.a ../lib/libconmax.a ../lib/libnlopt.a -llapack -lblas -framework Accelerate -lm
cp qml.so ~/q/m64

but running q qml.q I get:

'qml: loading qml_sin(): dlsym(0x64849920, qml_sin): symbol not found
  [5]  /Volumes/Storage/Code/qml/src/qml.q:5: {'x}
                                               ^
  [4]  /Volumes/Storage/Code/qml/src/qml.q:4: {x[0] set @[dll 2:;1_x;
                                                        ^
    {'x}"qml: loading ",string[x 1],"(): ",]}
q.qml))
``` because `qml.so` does not contain any symbols. 

Is `qml` supported on an M1 Mac? If so, instructions to install it would be appreciated. Thanks!
@somethingbloodyfunky somethingbloodyfunky changed the title Building dml on an Apple Silicon M1 Mac Building qml on an Apple Silicon M1 Mac Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant