Comments (9)
No need to run install_docker.sh. Mac support is tracked at #47
from apollo.
You should be able to use docker/scripts/dev_start.sh and docker/scripts/dev_into.sh as a temp workaround. release_start.sh doesn't quite work with MAC for some reason. @wanglei828 for SA.
from apollo.
I had succeed buliding apollo in MBP(2015,OS: 10.2.5),but I can't visit localhost:8887, it says"ERR_CONNECTION_REFUSED".the fellowing is my step:
1. I had install docker deamon in my MBP, so I jump "bash docker/scripts/install_docker.sh" step, when I execute "bash docker/scripts/dev_start.sh",there are some error:
- find: /dev/fd/scripts: No such file or directory
- find: /dev/fd/scripts: No such file or directory
- \e[33m[WARNING] Failed to find device with pattern "ram*" ...
- find: /dev/fd/scripts: No such file or directory
- find: /dev/fd/scripts: No such file or directory
- \e[33m[WARNING] Failed to find device with pattern "loop*" ...
- docker: Error response from daemon: Bad response from Docker engine.
- See 'docker run --help'.
- Error response from daemon: Bad response from Docker engine
I changed docker source and try serval times,"bash docker/scripts/dev_start.sh" executes succeed with following message:
- 505679240dc6: Pull complete
- Digest: sha256:09aeb7850578a877fdb855bfe7319c857289faa1f68df3eede1a548a09783d09
- Status: Downloaded newer image for apolloauto/apollo:dev-20170707_1129
- Error response from daemon: No such container: apollo_dev
- Error response from daemon: No such container: apollo_dev
I try to pull the image by hand, it shows message:-docker pull apolloauto/apollo:dev-20170707_1129
- dev-20170707_1129: Pulling from apolloauto/apollo
- Digest: sha256:09aeb7850578a877fdb855bfe7319c857289faa1f68df3eede1a548a09783d09
- Status: Image is up to date for apolloauto/apollo:dev-20170707_1129
then I fellow the step,execute "./dev_into.sh ",the terminal show nothing.
then I execute "bash apollo.sh build",It execute success:
- WARNING: Running Bazel server needs to be killed, because the startup options are different.
- INFO: Found 190 targets...
- Slow read: a 194-byte read from /apollo/modules/perception/conf/adapter.conf took 7200ms.
- INFO: Elapsed time: 713.802s, Critical Path: 206.74s
- ============================
- [ OK ] Build passed!
- [INFO] Took 1816.160 seconds
- ============================
then I exectue "bash scripts/hmi.sh",the terminal show message:
- Start roscore...
- HMI ros node service running at localhost:8887
- HMI running at http://localhost:8887
But I still can't visit "http://localhost:8887", Can you give me some advice?
Regards.
from apollo.
Yes. I met the same issue "http://localhost:8887 can't be visited" after build it successfully.
I followed the instructions in the page step by step.
Any suggestion for that?
from apollo.
@zx08uestc @yipinp can you check if there is any error in the logs which are located in data/log/
? Thank you.
from apollo.
In data/log/ . I found the files below:
hmi.out
hmi_ros_node_service.out
ros_node_service.INFO
ros_node_service.in_dev_docker.zhangxin.log.INFO.20170709-083132.8429
roscore.out
the message in each files is:
zhangxindeMacBook-Pro:log zhangxin$ cat hmi.out
Traceback (most recent call last):
File "modules/hmi/web/hmi_main.py", line 20, in <module>
import gflags
ImportError: No module named gflags
zhangxindeMacBook-Pro:log zhangxin$ cat hmi_ros_node_service.out
nohup: /Users/zhangxin/apollo/apollo/modules/hmi/ros_node/ros_node_service: No such file or directory
zhangxindeMacBook-Pro:log zhangxin$ cat ros_node_service.INFO
Log file created at: 2017/07/09 08:31:32
Running on machine: in_dev_docker
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0709 08:31:32.895217 8446 ros_node_service.cc:65] [INFO] Server listening on 127.0.0.1:8897
zhangxindeMacBook-Pro:log zhangxin$ cat ros_node_service.in_dev_docker.zhangxin.log.INFO.20170709-083132.8429
Log file created at: 2017/07/09 08:31:32
Running on machine: in_dev_docker
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0709 08:31:32.895217 8446 ros_node_service.cc:65] [INFO] Server listening on 127.0.0.1:8897
zhangxindeMacBook-Pro:log zhangxin$ cat roscore.out
nohup: roscore: No such file or directory
This day morning, I execute "bash scripts/hmi.sh" again, it needs super permission, when I input the password: it shows the below message:
zhangxindeMacBook-Pro:apollo zhangxin$ bash scripts/hmi.sh
/Users/zhangxin/apollo/apollo/scripts/apollo_base.sh: line 22: 1499648011N: value too great for base (error token is "1499648011N")
/Users/zhangxin/apollo/apollo/scripts/apollo_base.sh: line 22: 1499648011N: value too great for base (error token is "1499648011N")
Password:
mknod: illegal option -- -
usage: mknod [-F format] name [b | c] major minor
mknod [-F format] name [b | c] major unit subunit
mknod name [b | c] number
mknod name w
Start roscore...
HMI ros node service running at localhost:8887
HMI running at http://localhost:8887
from apollo.
@zx08uestc
This problem: ImportError: No module named gflags
can be addressed by installing the python-gflags package
sudo pip install python-gflags
You can try run this command bash scripts/hmi.sh
inside docker. The bash script does not work well on Mac.
from apollo.
I have some problems in building the apollo. After I bash apollo.sh build, it always shows that Running Bazel server needs to be killed, because the startup options are different. And some errors following. In some forum, some people said that please make sure you have nuked your local cache and it no longer refers to boringssl-master-with-bazel, a version that will cause the issue. But I find that it is very difficult to nuke local cache. Does anyone knows how to nuke cache?
from apollo.
Sorry that the question is hung on for a long time. I will close it after this reply. Please open another issue if it's not solved.
Generally you could try the following commands to refresh bazel:
bazel clean
rm -fr ~/.cache/bazel
from apollo.
Related Issues (20)
- TrajectoryEvaluator::Evaluate() , evaluation_horizon ill computed
- cyber multi nodes subscribe one msg
- unable to launch studio_connector in apollo 9.0
- should we prohibit overtake sampling to static obstacles?
- 多线程调用GlobalData::RegisterService会出现coredump,asan能查出heap-use-after-free HOT 4
- fem_pos_deviation_sqp_osqp_interface计算曲率违反约束代码计算 ,尝试进行了修改到符合公式与逻辑
- 安装仿真插件后dreamview的 Scenario Profiles 中,没有云端的场景集列表。 HOT 1
- orin tensorrt crash on apollo 9.0 docker HOT 1
- read buffer overflow and drop message when cyber_recorder record HOT 11
- 如何进入手动驾驶模式? HOT 5
- Reflectance map folder is invalid! and Localization Status Is Missing HOT 5
- Apollo9.0;40系感知camera_tracking报错 HOT 3
- why cyber rt use for (;;) here? HOT 2
- 使用buildtool时发生错误 HOT 3
- Is it possible to have multiple versions of protobuf? HOT 1
- how to get `trtexec`? HOT 1
- 2 Apollo on the same Simualtion HOT 6
- Member call on misaligned address Bug HOT 2
- 启动canbus时,使用cyber_moniter的先后顺序会影响通道的数据类型 HOT 1
- why timing_wheel.cc using current_work_wheel_index_mutex_ HOT 1
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 apollo.