从Git-Hub上下载了Apollo源码在Ubuntu上准备运行一下
完成了以下步骤:
bash docker/scripts/install_docker.sh bash docker/scripts/dev_start.sh bash docker/scripts/dev_into.sh
第二个指令显示连接拒绝,用sudo后完成了,显示:
adduser: The user `root' already exists.
接下来就进入了
:/apollo$
接着是
bash apollo.sh build
等待过后就可以
bash scripts/hmi.sh
然后打开
http://localhost:8887
但是一直打不开,无法访问,显示:
ERR_CONNECTION_REFUSED
一直未解决此问题,网上也没找到解决的办法,看了log没看懂。。
============================================分割线======================
看了log,缺少gflags
下载编译了gflags后还是打不开界面。
(过程中ccmake ..一直过不去,用了 sudo bash 后装了catkin_make 再ccmake就ok了。)
错误是缺少python的东西,
如下错误:
Traceback (most recent call last):
File "modules/hmi/web/hmi_main.py", line 23, in <module>
import handlers
File "/apollo/modules/hmi/web/handlers.py", line 27, in <module>
import config
File "/apollo/modules/hmi/web/config.py", line 26, in <module>
import modules.hmi.proto.config_pb2 as config_pb2
下载安装相关环境,:
sudo apt-get install python-pip
sudo apt-get install python-dev
sudo apt-get install python-gevent
sudo pip install grpcio
sudo pip install -r modules/tools/py27_requirements.txt
然后重新build...