dbuenzli / tgls

Thin bindings to OpenGL {3,4} and OpenGL ES {2,3} for OCaml
http://erratique.ch/software/tgls/
ISC License
54 stars 7 forks source link

tgls on FreeBSD #17

Closed CodiePP closed 8 years ago

CodiePP commented 9 years ago

I think it failed to dynamically link the libGL.so library on FreeBSD.

uname -s FreeBSD

./linkgl3.native [FAIL] glProvokingVertex not found for OpenGL 3.2

the library can be found with:

pkg-config --cflags --libs gl -DMESA_EGL_NO_X11_HEADERS -I/usr/local/include/libdrm -D_THREAD_SAFE -I/usr/local/include -L/usr/local/lib -lGL

Hope this helps. Thanks.

dbuenzli commented 9 years ago

Thanks for the info. Could please try the fix by doing a:

opam pin add tgls https://github.com/dbuenzli/tgls.git
opam upgrade tgls
dbuenzli commented 9 years ago

Btw. @yallop any idea if -Wl,-no-as-needed is needed on FreeBSD ? I did not add the flag.

CodiePP commented 9 years ago

Passed!

./trigl3.native INFO: Renderer Mesa DRI Intel(R) Ivybridge Mobile OpenGL 3.2 (Core Profile) Mesa 10.4.6 / GLSL 3.30

./linkgl3.native [OK] Found glProvokingVertex for OpenGL 3.2

./linkgl4.native [OK] Found glBindTransformFeedback for OpenGL 4.0

yallop commented 9 years ago

Btw. @yallop any idea if -Wl,-no-as-needed is needed on FreeBSD ? I did not add the flag.

It's not needed as far as I know (and the passing test appears to confirm that).

dbuenzli commented 9 years ago

Thanks Jeremie.