Open natxopedreira opened 1 year ago
I have a similar problem while trying to compile https://github.com/Cirrus-Minor/witchblast
[ 1%] Linking CXX executable Witch_Blast
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glFramebufferTexture2DOES'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_device_get_fd'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glGenRenderbuffersOES'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glGenerateMipmapOES'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_create_device'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_set_user_data'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_surface_create'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_height'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glCheckFramebufferStatusOES'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glBlendEquationSeparateOES'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glBindFramebufferOES'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_handle'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_stride'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glRenderbufferStorageOES'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glDeleteRenderbuffersOES'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_surface_release_buffer'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_offset'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_modifier'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_plane_count'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_device'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_format'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glFramebufferRenderbufferOES'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glBindRenderbufferOES'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_width'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glDeleteFramebuffersOES'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_device_destroy'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_stride_for_plane'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_user_data'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glGenFramebuffersOES'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_surface_lock_front_buffer'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to `glBlendFuncSeparateOES'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `gbm_surface_destroy'
collect2: error: ld returned 1 exit status```
Found a solution?
Hello. Works?
Hello
I'm trying to make this work with yocto on intel platform, i compile sfml pi with no problem
-DSFML_DRM=1 -DSFML_OPENGL_ES=1
Later i create a simple sample
That i compile
main.cpp -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system -lsfml-window -lGLESv1_CM -lGLESv2
And i get sereval undefinded methods..
Any clue? Thanks