diff --git a/README.md b/README.md
index ea0941c..b032a31 100644
--- a/README.md
+++ b/README.md
@@ -25,10 +25,13 @@ docker compose down
# the Ubuntu 20.04 desktop running inside the Docker container.
cd ~/workspace/slam_in_autonomous_driving
-# Compile g2o first
+# Compile g2o
cd ~/workspace/slam_in_autonomous_driving/thirdparty/g2o/
-cmake .
-make -j8
+mkdir build && cd build
+cmake ..
+make -j8
+make install
+ldconfig
# Compile the source code
cd ~/workspace/slam_in_autonomous_driving
@@ -36,4 +39,4 @@ mkdir build && cd build
cmake ..
make -j8
```
-
+