humanoid-path-planner / hpp-doc

Documentation for project Humanoid Path Planner
https://humanoid-path-planner.github.io/hpp-doc
ISC License
29 stars 23 forks source link

HPP installation failed on osgPlugin #47

Closed BoSmallEar closed 5 years ago

BoSmallEar commented 5 years ago

Hi, I'm trying to install HPP stable version on ubuntu xenial and I encounter the following problem while doing make all in the final step. The complier says:

/home/zzliu/HPP/src/osg-dae/src/osgPlugins/dae/daeRTransforms.cpp:47:69: error: invalid conversion from ‘osg::Callback’ to ‘osg::NodeCallback’ [-fpermissive] osg::NodeCallback pNodeCallback = resultNode->getUpdateCallback(); ^ /home/zzliu/HPP/src/osg-dae/src/osgPlugins/dae/daeRTransforms.cpp:47:70: error: cannot convert from pointer to base class ‘osg::Callback’ to pointer to derived class ‘osg::NodeCallback’ because the base is virtual osg::NodeCallback pNodeCallback = resultNode->getUpdateCallback();

This issue is related to the osg plugin therefore I also tried to download the OpenSceneGraph and repalce the source code of the plugin with the latest version. However, although the plugin compiles successfully, there are some linking issues between packages so I still can't install HPP. Does anyone know how to fix this problem?

jmirabel commented 5 years ago

Can you provide the output of:

Actually, you can install this package from binaries:

BoSmallEar commented 5 years ago

Here is the output Screenshot from 2019-05-15 15-58-53

jmirabel commented 5 years ago

Those output are correct. It should work just fine.

jmirabel commented 5 years ago

If you prefer to skip installation from source, you can install hpp using sudo apt-get install robotpkg-hpp-tutorial

@nim65s Could you update the file doc/instructions.md on master branch to include an installation from binaries section ? If the only package to install if hpp-tutorial, then I can do it.

BoSmallEar commented 5 years ago

Hi jmirabel, Thanks for the help! However, after I install the package from binaries, there seems still be linking problems(similar to the problem when I substitute the source code with the lastest plugin): Screenshot from 2019-05-15 16-42-42 Then I install hpp by directly install the robotpkg, but it is still not working as I go through the tutorial: image Sorry I'm not familiar with linking libraries and I have no idea what should I do to make it working.

jmirabel commented 5 years ago

Launch gepetto-gui instead.

jmirabel commented 5 years ago

I fixed the webpage (2be7f9a)

BoSmallEar commented 5 years ago

@jmirabel I saw your modification and add the environment variables #48 , however, the documentation is missing in /opt/openrobots/share/doc. In addition, the gepetto-gui also failed. image

jmirabel commented 5 years ago

the documentation is missing in /opt/openrobots/share/doc

I noticed that. @nim65s I couldn't find how to specify the default options for robotpkg build bot.

In addition, the gepetto-gui also failed.

What is the output of:

BoSmallEar commented 5 years ago

image

jmirabel commented 5 years ago

What's weird is that it shouldn't use NamingContext at all...

Output of:

You can try adding the line below to /opt/openrobots/etc/gepetto-gui/settings.conf (creating it if it does not exists)

[omniORB]
endPoint=:::12321
BoSmallEar commented 5 years ago

Still not working image

nim65s commented 5 years ago
* you must then modify your config.sh to include /opt/openrobots/lib64 to LD_LIBRARY_PATH.

robotpkg tries not to use lib64, so you should include /opt/openrobots/lib instead.

jmirabel commented 5 years ago

robotpkg-osg-dae still installs stuff in lib64.

nim65s commented 5 years ago

It should not. Are you on 3.2.1r2 ?

nim65s commented 5 years ago

I have:

╰─>$ dpkg -L robotpkg-osg-dae | grep lib
/opt/openrobots/lib
/opt/openrobots/lib/pkgconfig
/opt/openrobots/lib/pkgconfig/osg-dae.pc
/opt/openrobots/lib/osgPlugins-3.2.1
/opt/openrobots/lib/osgPlugins-3.2.1/osgdb_dae.so
jmirabel commented 5 years ago

It should not. Are you on 3.2.1r2 ?

Ah, it's in both. I didn't see it:

╰─> $ apt-file list robotpkg-osg-dae 
...
robotpkg-osg-dae: /opt/openrobots/lib/osgPlugins-3.2.1/osgdb_dae.so
robotpkg-osg-dae: /opt/openrobots/lib/pkgconfig/osg-dae.pc
robotpkg-osg-dae: /opt/openrobots/lib64/osgPlugins-3.2.1/osgdb_dae.so
...
nim65s commented 5 years ago

I think that apt-fileshows outdated informations.

jmirabel commented 5 years ago

On which distribution are you ?

BoSmallEar commented 5 years ago

I've successfully installed HPP from the C++ source code. Thanks for all the help! I've opened another issue for another problem.