Coder Social home page Coder Social logo

/usr/local/webots/bin/webots-bin: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory about webots-docker HOT 1 CLOSED

cyberbotics avatar cyberbotics commented on July 21, 2024
/usr/local/webots/bin/webots-bin: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory

from webots-docker.

Comments (1)

abdul-mannan-khan avatar abdul-mannan-khan commented on July 21, 2024

I fixed this problem. I solved it by including following command:

strip --remove-section=.note.ABI-tag /usr/local/webots/lib/webots/libQt6Core.so.6

I got to know about this command from here.

For reference, I am including the whole container file here below:

Bootstrap: docker
#From: cyberbotics/webots:latest
From: cyberbotics/webots:R2023a-ubuntu20.04
#From: cyberbotics/webots:R2023b-ubuntu22.04
#From: cyberbotics/webots:R2022a-ubuntu20.04
#From: cyberbotics/webots:R2022a-ubuntu18.04


%files
    #/user/work/yf23868/ws/SafeAIControlledDrones /singularity_home/
    /home/yf23868/SafeAIControlledDrones /singularity_home/

%post
    # Install locale management packages
    apt-get update
    apt-get install -y apt-utils
    apt-get install -y locales
    apt-get update && apt-get install -y git openssh-client

    
    # Generate and set the desired locale
    locale-gen en_US.UTF-8
    update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8

    # Create runtime directory for QStandardPaths
    mkdir -p /run/user/1001
    chown 1001:1001 /run/user/1001
    chmod 700 /run/user/1001

    apt-get update
    apt-get install -y wget
    apt-get install -y python3-pip python3-dev
    apt-get update && apt-get install -y git

    apt-get install -y python3-pip
    apt-get install -y libgl1-mesa-glx  # For GUI applications
    apt install -y libcanberra-gtk-module libcanberra-gtk3-module
    apt-get install -y xvfb
    python3 -m pip install --upgrade pip
    apt-get install -y binutils


    apt-get update
    apt-get install -y \
        libglu1-mesa \
        libglib2.0-0 \
        libgl1-mesa-glx \
        libsm6 \
        libxrender1 \
        libfontconfig1 \
        libxext6 \
        swig \
        mlocate \
        nano \
        vim \
        nodejs \
        npm
        #libqt6core6 
        # Add any other dependencies you might need

    # Install TensorFlow, Keras, Matplotlib, Gym
    #pip3 install tensorflow==2.4.1 keras==2.4.3 matplotlib==3.4.2 gym==0.21
    pip3 install tensorflow==2.12.0 keras==2.12 matplotlib gym==0.25 imageio scipy
    pip3 install -i https://test.pypi.org/simple/ deepbots
    #pip3 install imageio torch scipy 
    apt-get update && apt-get install -y python3
    apt-get update --fix-missing

    strip --remove-section=.note.ABI-tag /usr/local/webots/lib/webots/libQt6Core.so.6

    # Clean up
    apt-get clean
    rm -rf /var/lib/apt/lists/*

    # making 
    # mkdir /singularity_home/
    export HOME=/singularity_home

    #export WEBOTS_HOME=$HOME/webots
    export WEBOTS_HOME=/usr/local/webots

    export LD_LIBRARY_PATH=$WEBOTS_HOME/lib/controller:$LD_LIBRARY_PATH
    export PATH=$WEBOTS_HOME:$PATH
    export PROJECT_DIR=/singularity_home/
    

%environment
    # Set any necessary environment variables
    #export QT_X11_NO_MITSHM=1
    #export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:/usr/local/webots/lib/webots
    #export QT_X11_NO_MITSHM=1
    #export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64:/usr/local/webots/lib/webots
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/webots/lib/webots

%runscript
    # Launch Webots
    #/usr/local/webots/bin/webots
    /bin/bash
    #xvfb-run --auto-servernum --server-num=1 --server-args='-screen 0, 1920x1080x24' webots --stderr --stdout --batch --mode=fast --minimize /user/work/yf23868/ws/SafeAIControlledDronesworlds/supervisor_world.wbt  # > run.txt 2> errors.txt

from webots-docker.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.