Comments (9)
I remember when I did the tests with the mac book, I was able to compile with dune build
the examples in the "bin" directory. And of course it works in linux too. And in fact it must work with all the machines of the ocaml-CI they have when you submit a new package to opam, because the "bin" directory is part of oplot, hence it is built when compiling the library... (and they have a MacOS with homebrew, see https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/87c99fb064d7d85d8c519d992960063e583b7302)
What happens if you go to the "bin" directory and dune exec ./example.exe
?
from oplot.
Maybe another mac issue like this one?
https://stackoverflow.com/questions/16682156/ld-library-not-found-for-lgsl
I can
#require "lablgl"
and open modules from it in an ocaml shell, so it seems installed ok.
opening modules is not enough, you need to actually call a function to have the C library loaded.
(on the other hand, since you are able to run the example in the toplevel, it means that lablgl is installed, because oplot uses openGL even for 2D plots. So that's very weird.)
Did you try to reinstall lablgl cleanly?
from oplot.
another guess: did you make sure that dune build
uses the same version of ocaml
than your toplevel?
from oplot.
Hi, thanks for your help. I guess it's something weird on my system but I'm not sure what to look for.
I did try deleting my switch and reinstalling everything from scratch, but no change.
https://stackoverflow.com/questions/16682156/ld-library-not-found-for-lgsl seems a very similar error. The confusing part there is that gsl
is a package that installs via homebrew or macports, while lablgl
is purely from opam.
I guess I need to add something to my LD_LIBRARY_PATH
but I had a sniff around in ...opam-repository/packages/lablgl
and didn't see anything that looked likely
from oplot.
and yes if I go into the oplot/bin dir I can dune exec ./example.exe
and it works fine
from oplot.
and yes if I go into the oplot/bin dir I can
dune exec ./example.exe
and it works fine
that means that "dune build" does work!
from oplot.
yes, I don't understand why it doesn't work in my own project
from oplot.
turns out this was due to having (modes byte)
in the dune file for my test suite, which I'd added for sake of running the tests with ocamldebug
after removing that it builds successfully
from oplot.
I'm not sure but this might be a bug in dune
...
from oplot.
Related Issues (5)
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 oplot.