Ignore:
Timestamp:
May 26, 2020, 11:25:30 AM (5 months ago)
Author:
Sanahuja Guillaume
Message:

diusable dri3 if used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/distribution_specific_hack.sh

    r345 r360  
    1616        return 1
    1717    fi
     18}
     19
     20function green_echo () {
     21        echo -e "\033[32m$1\033[0m"
    1822}
    1923
     
    3943ldd $EXEC | grep "libGL.so" > /dev/null
    4044if [ $? -eq 0 ]; then
     45    green_echo "checking for incompatibility when using libGL and trying to solve it..."
    4146    #allow root access to the X server
    4247    xhost si:localuser:root
     
    6065                   ADDED_LIBS="$ADDED_LIBS:$(ldconfig -p | grep libstdc++.so.6 | grep libc6,x86-64 | cut -d'>' -f2)"
    6166            fi
     67
    6268        #remove whitespace
    6369        #add libs to LD_PRELOAD if version robomap3 version is not sufficient
    6470        export LD_PRELOAD="$(echo -e "${ADDED_LIBS}" | tr -d '[:space:]')"
    6571    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"
    6681fi
    6782
Note: See TracChangeset for help on using the changeset viewer.