garrigue / lablgl Goto Github PK
View Code? Open in Web Editor NEWLablGL: an openGL interface for OCaml
Home Page: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html
License: Other
LablGL: an openGL interface for OCaml
Home Page: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html
License: Other
I originally asked over here sanette/oplot#5
but I guess the real issue is something wrong with my lablgl install
I am trying to use oplot
, which has lablgl
as a dependency.
oplot works fine in ocaml shell (with #use "topfind"
if that is relevant), suggesting that lablgl is installed ok.
But when I add (libraries oplot)
to the dune file of my project, when I dune build
I get:
ld: library not found for -llablgl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
File "_none_", line 1:
Error: Error while building custom runtime system
I have:
$ opam list | grep gl
lablgl 1.06 Interface to OpenGL
Any ideas how I could get this working?
(I am guessing I may need to add something to my LD_LIBRARY_PATH
but I'm not sure what)
looks like plain wrong names... somehow
ml_togl.c: In function 'TOGLenum_val':
ml_togl.c:34:5: warning: implicit declaration of function 'invalid_argument'; did you mean 'caml_invalid_argument'? [-Wimplicit-function-declaration
]
34 | invalid_argument ("Unknown Togl tag");
| ^~~~~~~~~~~~~~~~
| caml_invalid_argument
ml_togl.c: In function 'togl_prerr':
ml_togl.c:40:20: warning: implicit declaration of function 'copy_string'; did you mean 'caml_copy_string'? [-Wimplicit-function-declaration]
40 | value ml_msg = copy_string(msg);
| ^~~~~~~~~~~
| caml_copy_string
ml_togl.c:41:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
41 | value *prerr = caml_named_value("togl_prerr");
| ^~~~~~~~~~~~~~~~
ml_togl.c: In function 'ml_Togl_Init':
ml_togl.c:48:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
48 | value *interp = caml_named_value("cltclinterp");
| ^~~~~~~~~~~~~~~~
ml_togl.c:52:7: warning: implicit declaration of function 'raise_with_string'; did you mean 'caml_raise_with_string'? [-Wimplicit-function-declarati
on]
52 | raise_with_string(*caml_named_value("tkerror"), "Togl_Init failed");
| ^~~~~~~~~~~~~~~~~
| caml_raise_with_string
ml_togl.c: In function 'callback_CreateFunc':
ml_togl.c:80:3: warning: implicit declaration of function 'callback'; did you mean 'calloc'? [-Wimplicit-function-declaration]
80 | { callback (Field(*callbacks, func), Val_addr(togl)); }
ml_togl.c:80:3: warning: implicit declaration of function 'callback'; did you mean 'calloc'? [-Wimplicit-function-declaration]
80 | { callback (Field(*callbacks, func), Val_addr(togl)); }
| ^~~~~~~~
ml_togl.c:91:1: note: in expansion of macro 'CALLBACK'
91 | CALLBACK (CreateFunc)
| ^~~~~~~~
ml_togl.c: In function 'ml_Togl_CreateFunc':
ml_togl.c:87:36: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
87 | { if (callbacks == NULL) callbacks = caml_named_value ("togl_callbacks"); \
| ^
As written here, camlp4 is deprecated and might never be updated for OCaml 4.08.0. Please consider using camlp5 or a ppx instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.