- Timestamp:
- May 26, 2020, 11:25:30 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/distribution_specific_hack.sh
r345 r360 16 16 return 1 17 17 fi 18 } 19 20 function green_echo () { 21 echo -e "\033[32m$1\033[0m" 18 22 } 19 23 … … 39 43 ldd $EXEC | grep "libGL.so" > /dev/null 40 44 if [ $? -eq 0 ]; then 45 green_echo "checking for incompatibility when using libGL and trying to solve it..." 41 46 #allow root access to the X server 42 47 xhost si:localuser:root … … 60 65 ADDED_LIBS="$ADDED_LIBS:$(ldconfig -p | grep libstdc++.so.6 | grep libc6,x86-64 | cut -d'>' -f2)" 61 66 fi 67 62 68 #remove whitespace 63 69 #add libs to LD_PRELOAD if version robomap3 version is not sufficient 64 70 export LD_PRELOAD="$(echo -e "${ADDED_LIBS}" | tr -d '[:space:]')" 65 71 fi 72 73 #check if using DRI3 and disable it 74 #otherwise you get /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0: undefined symbol: xcb_dri3_get_supported_modifiers 75 cat /var/log/Xorg.0.log | grep DRI3 > /dev/null 76 if [ $? -eq 0 ]; then 77 export LIBGL_DRI3_DISABLE=1 78 echo "we must disable DRI3" 79 fi 80 green_echo "...done\n" 66 81 fi 67 82
Note:
See TracChangeset
for help on using the changeset viewer.