Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not build #3

Open
jinjinhong opened this issue Apr 15, 2019 · 11 comments
Open

can not build #3

jinjinhong opened this issue Apr 15, 2019 · 11 comments

Comments

@jinjinhong
Copy link

@cedricxie hi,I have done step by step ,but enter the docker ,the inside does not have anything,can not use the command catkin build,I don't know the reson

@jinjinhong
Copy link
Author

I was very interested, and I didn't touch Apollo very long.can you give me more information about how to run on my own computer? thank you ,my email is [email protected]

@cedricxie
Copy link
Owner

cedricxie commented Apr 15, 2019

Hello @jinjinhong , did you see shared_dir folder in your home directory in the docker? This folder is supposed to be mapped from the host home directory. Do you have this folder in your host system?

@jinjinhong
Copy link
Author

yes,but run the catkin build command ,error like this
CMake Error at /home/yx/shared_dir/apollo_perception_ros/build/catkin_tools_prebuild/CMakeLists.txt:12 (message):
The catkin CMake module was not found, but it is required to build a linked
workspace. To resolve this, please do one of the following, and try
building again.

  1. Source the setup.sh file from an existing catkin workspace:
    source SETUP_FILE

  2. Extend another catkin workspace's result (install or devel) space:
    catkin config --extend RESULT_SPACE

  3. Set catkin_DIR to the directory containing catkin-config.cmake:
    catkin config --cmake-args -Dcatkin_DIR=CATKIN_CMAKE_CONFIG_PATH

  4. Add the catkin source package to your workspace's source space:
    cd SOURCE_SPACE && git clone https://github.com/ros/catkin.git

cd /home/yx/shared_dir/apollo_perception_ros/build/catkin_tools_prebuild; catkin build --get-env catkin_tools_prebuild | catkin env -si /usr/bin/cmake /home/yx/shared_dir/apollo_perception_ros/build/catkin_tools_prebuild --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/yx/shared_dir/apollo_perception_ros/devel/.private/catkin_tools_prebuild -DCMAKE_INSTALL_PREFIX=/home/yx/shared_dir/apollo_perception_ros/install; cd -
.......................................................................................................................................................................................
Failed << catkin_tools_prebuild:cmake [ Exited with code 1 ]
Failed <<< catkin_tools_prebuild [ 0.0 seconds ]
Abandoned <<< geometry_msgs [ Unrelated job failed ]
Abandoned <<< pcl_msgs [ Unrelated job failed ]
Abandoned <<< pcl_conversions [ Unrelated job failed ]
Abandoned <<< pcl_ros [ Unrelated job failed ]
Abandoned <<< apollo_perception_ros [ Unrelated job failed ]
Abandoned <<< vehicle_base [ Unrelated job failed ]
Abandoned <<< visualization_msgs [ Unrelated job failed ]
[build] Summary: 0 of 8 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: 7 packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 0.1 seconds total.
yx@hjj-ZHAOYANG-K42-80:~/shared_dir/apollo_perception_ros$

@cedricxie
Copy link
Owner

Hi @jinjinhong , can you try "source /opt/ros/indigo/setup.bash" inside docker to see if it helps?

@jinjinhong
Copy link
Author

I have try many times ,it does not work.

@cedricxie
Copy link
Owner

Hello @jinjinhong , it is complaining the CMAKE module is not found. But I think it should already be installed in the ROS environment in the docker.

If you want, you can try installing the CMAKE module to see if it helps. But I am not sure what's going wrong here.

@jinjinhong
Copy link
Author

Thanks,I still have a question. When catkin build,Is there any good way to solve such a mistake?
Could not find a package configuration file provided by "roscpp" with any
of the following names:
roscppConfig.cmake
roscpp-config.cmake
Could not find a package configuration file provided by
"message_generation" with any of the following names:
message_generationConfig.cmake
message_generation-config.cmake

@jinjinhong
Copy link
Author

Will it be a problem with docker image?

@cedricxie
Copy link
Owner

@jinjinhong , I tested the docker image on my side and it was working. You can check out the build.sh script and build the image yourself. I would suggest to try everything from the beginning again and see if you notice anything abnormal.

@yasenh
Copy link

yasenh commented Apr 16, 2019

@jinjinhong Current docker images works for me as well, and I am using Ubuntu 16.04

@jinjinhong
Copy link
Author

I using 14.04 and do many times,but meet this question: Could not find a package configuration file provided by "roscpp"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants