Hi everyone, i start new topic with RPI2 and the last SFML version. i use cmake-qt-gui for visualize easily informations , firstly i've got an error with OPENGL_gl_LIBRARY , i use gles , i cheat with /usr/lib/arm-linux-gnueabihf/libEGL.so for bypass the error.
After configuration is okay , i launch a compilation with sample , i've got no error with the library , just with an example :
/home/pi/sfml/SFML-2.3.2/examples/X11/X11.cpp: In function ‘void initialize(sf::Window&)’:
/home/pi/sfml/SFML-2.3.2/examples/X11/X11.cpp:26:21: error: ‘glClearDepth’ was not declared in this scope
/home/pi/sfml/SFML-2.3.2/examples/X11/X11.cpp:37:5: error: ‘GLdouble’ was not declared in this scope
/home/pi/sfml/SFML-2.3.2/examples/X11/X11.cpp:37:14: error: expected ‘;’ before ‘extent’
/home/pi/sfml/SFML-2.3.2/examples/X11/X11.cpp:38:16: error: ‘extent’ was not declared in this scope
/home/pi/sfml/SFML-2.3.2/examples/X11/X11.cpp:38:59: error: ‘glFrustum’ was not declared in this scope
[ 75%] Built target voip
examples/X11/CMakeFiles/X11.dir/build.make:57: recipe for target 'examples/X11/CMakeFiles/X11.dir/X11.cpp.o' failed
make[2]: *** [examples/X11/CMakeFiles/X11.dir/X11.cpp.o] Error 1
CMakeFiles/Makefile2:863: recipe for target 'examples/X11/CMakeFiles/X11.dir/all' failed
make[1]: *** [examples/X11/CMakeFiles/X11.dir/all] Error 2
the sfml lib has been created in my build/lib/ folder, i launch an ldd -r on sfml-graphics part for see if library have a problem , and i see that's :
pi@RASPI2-SERVER ~/sfml/SFML-2.3.2/build/lib $ ldd -r libsfml-graphics.so
linux-vdso.so.1 => (0x7ef52000)
/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0x76f57000)
libsfml-window.so.2.3 => /home/pi/sfml/SFML-2.3.2/build/lib/libsfml-window.so.2.3 (0x76f32000)
libsfml-system.so.2.3 => /home/pi/sfml/SFML-2.3.2/build/lib/libsfml-system.so.2.3 (0x76f21000)
libEGL.so.1 => /usr/lib/arm-linux-gnueabihf/libEGL.so.1 (0x76ef0000)
libGLESv1_CM.so.1 => /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so.1 (0x76ee2000)
libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0x76e59000)
libjpeg.so.8 => /usr/lib/arm-linux-gnueabihf/libjpeg.so.8 (0x76e1e000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76dff000)
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x76df0000)
libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0x76cdc000)
libudev.so.0 => /lib/arm-linux-gnueabihf/libudev.so.0 (0x76cc7000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x76bf5000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76b83000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x76b5b000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76a2b000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76a20000)
libX11-xcb.so.1 => /usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1 (0x76a17000)
libxcb-dri2.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-dri2.so.0 (0x76a0a000)
libxcb-xfixes.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-xfixes.so.0 (0x769fd000)
libxcb-render.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-render.so.0 (0x769ee000)
libxcb-shape.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-shape.so.0 (0x769e3000)
libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0x769c4000)
libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0x769b1000)
libgbm.so.1 => /usr/lib/arm-linux-gnueabihf/libgbm.so.1 (0x769a6000)
libglapi.so.0 => /usr/lib/arm-linux-gnueabihf/libglapi.so.0 (0x7697f000)
libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x76961000)
libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0x76939000)
/lib/ld-linux-armhf.so.3 (0x54add000)
libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0x7692e000)
libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0x76922000)
undefined symbol: xcb_randr_id (/home/pi/sfml/SFML-2.3.2/build/lib/libsfml-window.so.2.3)
undefined symbol: xcb_randr_query_version_reply (/home/pi/sfml/SFML-2.3.2/build/lib/libsfml-window.so.2.3)
undefined symbol: xcb_randr_get_screen_info (/home/pi/sfml/SFML-2.3.2/build/lib/libsfml-window.so.2.3)
undefined symbol: xcb_randr_set_screen_config_reply (/home/pi/sfml/SFML-2.3.2/build/lib/libsfml-window.so.2.3)
undefined symbol: xcb_randr_get_screen_info_sizes (/home/pi/sfml/SFML-2.3.2/build/lib/libsfml-window.so.2.3)
undefined symbol: xcb_randr_set_screen_config (/home/pi/sfml/SFML-2.3.2/build/lib/libsfml-window.so.2.3)
undefined symbol: xcb_create_pixmap_from_bitmap_data (/home/pi/sfml/SFML-2.3.2/build/lib/libsfml-window.so.2.3)
undefined symbol: xcb_randr_get_screen_info_sizes_length (/home/pi/sfml/SFML-2.3.2/build/lib/libsfml-window.so.2.3)
undefined symbol: xcb_randr_query_version (/home/pi/sfml/SFML-2.3.2/build/lib/libsfml-window.so.2.3)
undefined symbol: xcb_randr_get_screen_info_reply (/home/pi/sfml/SFML-2.3.2/build/lib/libsfml-window.so.2.3)
i've got a lot of undefined symbol xcb_randr... , but , i have installed the dev lib.