forked from OpenHUTB/nn
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.89 KB
/
mujoco_linux.yml
File metadata and controls
61 lines (51 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Ubuntu Run
# Controls when the action will run.
# on: [push, pull_request, workflow_dispatch]
on: [workflow_dispatch]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- name: Install glfw3.4
run: |
sudo apt-get install libxrandr-dev
sudo apt-get install libxinerama-dev
sudo apt-get install libxcursor-dev
sudo apt-get install libxi-dev
sudo apt install doxygen
sudo apt install libwayland-dev
sudo apt install libxkbcommon-x11-dev
wget https://github.com/glfw/glfw/archive/refs/tags/3.4.tar.gz
tar zxvf 3.4.tar.gz
ls
cd glfw-3.4/
mkdir build
cd build
cmake ../
make
sudo make install
# 配置其他相关库
sudo apt-get update -y
sudo apt-get install -y libglew-dev
# 配置环境变量
ls /usr/lib/x86_64-linux-gnu/libGLEW.so
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so
# fix: cannot find -lunwind: No such file or directory
# https://blog.csdn.net/weixin_52000358/article/details/146281075
- name: Launch Mujoco
run: |
wget https://github.com/google-deepmind/mujoco/releases/download/3.3.7/mujoco-3.3.7-linux-x86_64.tar.gz
tar zxvf mujoco-3.3.7-linux-x86_64.tar.gz
# No such file or directory
# ls /usr/lib/x86_64-linux-gnu/libGLEW.so
# fix: ERROR: could not create window
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
# fix: ERROR: could not initialize GLFW
sudo apt install libffi-dev
ls /usr/lib/x86_64-linux-gnu/libGLEW.so
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so
./mujoco-3.3.7/bin/simulate