Code Monkey home page Code Monkey logo

lablgl's People

Contributors

garrigue avatar kit-ty-kate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lablgl's Issues

"ld: library not found for -llablgl" when I dune build

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)

Uses camlp4

As written here, camlp4 is deprecated and might never be updated for OCaml 4.08.0. Please consider using camlp5 or a ppx instead.

Togl/src/ml_togl.c: funcs wrong names

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"); \                                                                 
      |                                    ^

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.