DENSORobot / denso_robot_ros

Other
43 stars 42 forks source link

Catkin_make error(denso_robot_ros) #25

Closed ryo-matsuzaka closed 5 years ago

ryo-matsuzaka commented 5 years ago

When I do 'catkin_make', the following error happens. Could you tell me the solution of it? I already download all packages including 'bcap_core'.

image image

DensoWaveRobot commented 5 years ago

When I do 'catkin_make', the following error happens. Could you tell me the solution of it? I already download all packages including 'bcap_core'.

What os do you use in your pc? If you use windows, could you install in linux pc?

ryo-matsuzaka commented 5 years ago

Thank you for your reply. YES, I use windows OS. So, you mean it doesn't work on ROSOnWindows? If so, I will use linux.

DensoWaveRobot commented 5 years ago

So, you mean it doesn't work on ROSOnWindows?

yes. When you've finished, please close this.

ryo-matsuzaka commented 5 years ago

Ok, thank you very much. I close this.

ryo-matsuzaka commented 5 years ago

I re-opend. I challenged again using linux. But I got same error.

image image

DensoWaveRobot commented 5 years ago

Could you see the CMakeOutput.log and CMakeError.log, as written your secound picture? That's not error of denso_robot_ros.

gavanderhoorn commented 5 years ago

@ryo-matsuzaka: did you copy the Catkin workspace that you used under Windows and now try to use it with Ubuntu?

If so: please remove devel and build folders first. Then try building the workspace.

Or are you using WSL?

ryo-matsuzaka commented 5 years ago

@DensoWaveRobot Thank you for your reply. This is my error log. image

ryo-matsuzaka commented 5 years ago

@gavanderhoorn Thank you for asking. Yes, firstly I tried using ROSOnWindows. Secondary, I used WSL(Ubuntu18.04) and ROS melodic. But I got the same error as I mentioned above.

gavanderhoorn commented 5 years ago

Thank you for asking. Yes, firstly I tried using ROSOnWindows. Secondary, I used WSL(Ubuntu18.04) and ROS melodic. But I got the same error as I mentioned above.

you cannot share (half-built) workspaces between all these three. The paths will be different and the tools also.

You'll have to make sure to remove the build and devel sub directories of your catkin workspace before trying to build it on another OS (and in this case: Windows, Ubuntu-in-WSL and Ubuntu-native are essentially different OS).

I'm not claiming that will solve your problem, but just wanted to make sure the no-sharing-workspaces was clear.

ryo-matsuzaka commented 5 years ago

@gavanderhoor Thirdly, I used WSL(Ubuntu16.04) and ROS kinetic. As a result, I got another error as bellow. image

gavanderhoorn commented 5 years ago

WSL doesn't come with an X-server by default. So you cannot run GUI applications.

You'll have to install an X-server on Windows.

But even then WSL is going to not be the same experience as you would have with a native Ubuntu installation.


Edit: note btw that this is not really a problem with the packages in this repository, so this seems to be off-topic for this tracker.

It's up to @DensoWaveRobot though.

ryo-matsuzaka commented 5 years ago

@gavanderhoorn

Thank you for asking. Yes, firstly I tried using ROSOnWindows. Secondary, I used WSL(Ubuntu18.04) and ROS melodic. But I got the same error as I mentioned above.

you cannot share (half-built) workspaces between all these three. The paths will be different and the tools also.

You'll have to make sure to remove the build and devel sub directories of your catkin workspace before trying to build it on another OS (and in this case: Windows, Ubuntu-in-WSL and Ubuntu-native are essentially different OS).

I'm not claiming that will solve your problem, but just wanted to make sure the no-sharing-workspaces was clear.

Thank you for your kind advice and quick reply.
Yes, I delete the 'build' and 'devel', but I encountered the same experience between 'ROSOnWindows and WSL(Ubuntu 18.04). From now on I take care of naming workspaces.

ryo-matsuzaka commented 5 years ago

WSL doesn't come with an X-server by default. So you cannot run GUI applications.

You'll have to install an X-server on Windows.

But even then WSL is going to not be the same experience as you would have with a native Ubuntu installation.

Edit: note btw that this is not really a problem with the packages in this repository, so this seems to be off-topic for this tracker.

It's up to @DensoWaveRobot though.

Thank you for your advice. I install an X-server on Windows. Ok, I am going to close this tracker and might set another tracker. Anyway, thank you so much.

7675t commented 5 years ago

Generally speaking, ROS on windows cause troubles in many different ways. I recommend to stick to Ubuntu unless you want to have fun of troubleshoot 😄

ryo-matsuzaka commented 5 years ago

@7675t

Generally speaking, ROS on windows cause troubles in many different ways. I recommend to stick to Ubuntu unless you want to have fun of troubleshoot 😄

Thank you so much for your advice. Yes, I don't like trouble shooting. So I will use linux PC as you recommend.

Thus, I close this tracker.

ryo-matsuzaka commented 5 years ago

Dear people who gave me any advice,

I could solve problems mentioned above. As gavanderhoorn mentioned, I installed X server. Then, I was able to launch rviz, gazebo, denso robot package under environment of WSL(Ubuntu16.04) and ROS kinetic.

Thank you.

ryo-matsuzaka commented 5 years ago

I close it.