Comments (1)
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)
- run webots,throw an error HOT 2
- Test suite failures on docker
- Use of a smaller base image HOT 2
- Update Wiki page HOT 1
- Optimize Layering System
- Reduce Image Size
- How to import the Webots-R20???.conf file HOT 1
- Is webots docker compatible with the latest nvidia-container-toolkit?
- Card Driver Not See
- Devcontainer over Vscode HOT 1
- Error with 'undefined' node or PROTO in Webots R2023a
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webots-docker.