QuanergySystems / quanergy_client_ros

Quanergy ROS driver sample source
MIT License
19 stars 10 forks source link

catkin_make giving errors #8

Closed shobhitjdpsr closed 5 years ago

shobhitjdpsr commented 5 years ago

I followed all steps given in readme for ubuntu 16 (https://github.com/QuanergySystems/quanergy_client_ros/blob/master/readme/ubuntu1604.md) till catkin_make.

But it is giving error, please see screenshot. abcdddddddddddddddd

abcd

rossctaylor commented 5 years ago

It looks like QuanergyClient may not have been installed properly. Can you verify that you built QuanergyClient per the readme there (https://github.com/QuanergySystems/quanergy_client/blob/master/readme/ubuntu1604.md) before trying to build QuanergyClientRos?

If so, please verify that you ran the sudo make install command as called out at the beginning of the QuanergyClientRos readme.

If any of these steps were missed, you shouldn't need to completely start over (uninstall and remove components) but you may need to run catkin_make clean on QuanergyClientRos.

shobhitjdpsr commented 5 years ago

Hi I am attaching screenshot of Quanergy client being tried to be made from starting. Please see, I am getting following errors, I am attaching screenshot:_

Screenshot

shobhitjdpsr commented 5 years ago

@rossctaylor I checked my terminal history and realized that earlier also while doing make, I was getting the same error. SO yes, it is qguard_client which is making ROS throw this error.

What else can be done?

shobhitjdpsr commented 5 years ago

cmake cmake1

rossctaylor commented 5 years ago

It seems like openni didn't get installed which is strange because it is a dependency of libpcl-dev. Did you run this line from the QuanergyClient readme?: sudo apt-get install cmake git build-essential libboost-all-dev libpcl-dev libproj-dev libvtk6-dev

Either way, it would be good to try it again to see if it resolves the issue. If that installs openni and you still have issues, you might want to delete the build folder and try again.

shobhitjdpsr commented 5 years ago

I did try running that see I get this when I try running it again: 1111111

shobhitjdpsr commented 5 years ago

After deleting build and making it again, I am getting similar error:_ 222

rossctaylor commented 5 years ago

Hmmm...let's try installing libopenni-dev directly: sudo apt-get install libopenni-dev

rossctaylor commented 5 years ago

Hopefully, CMake will find it afterwords.

shobhitjdpsr commented 5 years ago

222222222222

shobhitjdpsr commented 5 years ago

It doesnt work even after installing manually, it seems that it is already installed and there is some other issue

rossctaylor commented 5 years ago

Sorry...inadvertent close....

rossctaylor commented 5 years ago

Looking more closely at your cmake error, it is missing libopenni2. Please try: sudo apt-get install libopenni2-dev

rossctaylor commented 5 years ago

Unfortunately, I'm not able to duplicate this issue, even without libopenni2 so I can't be sure that will fix it.

shobhitjdpsr commented 5 years ago

@rossctaylor :- Even after trying this - sudo apt-get install libopenni2-dev , I am getting the same error. adadadadaddada

What else can be tried in your opinion? adadadadaddada

shobhitjdpsr commented 5 years ago

sj ![Uploading sj1.png…]() ![Uploading sj2.png…]()

shobhitjdpsr commented 5 years ago

@rossctaylor What else can be tried for the same?

rossctaylor commented 5 years ago

To wrap this up...the problem was that g++ 4.9 was being used. Upgrading to 5.x fixed the issue.