-
Notifications
You must be signed in to change notification settings - Fork 2
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
Symbol not found when loading Eigen #12
Comments
Sometimes this can happen if the The work around is to load that other library before. Is that maybe the case here ? In any first try to see if any of the following works:
|
ok. loading with ocamlfind seems to work:
loading with omod in ocaml:
fails with apparently the same issue |
So where is |
the external function that is not found seems to be defined here: https://github.com/owlbarn/eigen/blob/61c47df9b7e42800f1317b5bed131785409c5abe/eigen/ffi_eigen_bindings.ml#L125 |
That's the ctypes stubs generation. It must be in a C library somewhere. |
i'll try to dig deeper. |
According to the
|
ah cool, i'll try that. i'm a bit out of my depth with the c bindings business. |
hmm. for me the first load succeeds but not the second.
|
Can you first try to see if it works in the |
ah sorry i missed that. (disregard the comment that was here) yes, in ocaml, omod can successfully load as you showed. |
Well according to what I see here via ( |
would this be a bug in the library? if so would it mean that the library is not working properly in general? (sorry for the naive questions) |
Yes. In general the Have a look the build of
but it should have something like
|
indeed! this line is in the build log:
i'll report this on the eigen bug tracker. thanks! |
incidentally, is this just a matter of writing the correct dune file or should dune do something better? |
I don't know you should ask the |
That should be solved by ocaml/opam-repository#17613 |
i have been trying to load the Eigen library on the way to loading Owl into the native toplevel on ocaml 4.10.
gives
Is this a known limitation or is something wrong with the Eigen installation?
For reference, see also owlbarn/eigen#27 and ocaml/dune#3889 . Those threads are probably only interesting at the end; in the beginning there was an unrelated problem of cmxs files not being properly installed on my system probably due to leftovers from a failed installation.
The text was updated successfully, but these errors were encountered: