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

Installation problem #39

Closed ChanCheryl closed 5 years ago

ChanCheryl commented 5 years ago

Hi, I can't install the HPP system. I used the method mentioned here, https://humanoid-path-planner.github.io/hpp-doc/download.html. But I couldn't download it. Why? I also used the method mentioned here, https://github.com/humanoid-path-planner/hpp-doc/blob/master/doc/instructions.md. The result is useless. 1722366642

Do I have to download any packages before using the command to install in the terminal ? Could you give me some advice about the installation? Thanks

nim65s commented 5 years ago

Hi,

You should remove the starting


and the trailing
ChanCheryl commented 5 years ago

Hi, You are right. Thank you very much. But when I went to step7, I encountered a new problem.I couldn't download the files.

857876063

Then I also tried to run them separately. But the result was the same. 779933200

Do you have any suggestions? Sorry to bother you again. Thanks

florent-lamiraux commented 5 years ago

You types cd DEVEL_HPP_DIR/src instead of cd $DEVEL_HPP_DIR/src. You need to define environment variable DEVEL_HPP_DIR to tell the Makefile where to download, compile and install the code.

ChanCheryl commented 5 years ago

I have changed it as what you said, but it still has some problems. 583489516 And this is the variable I set in my .bashrc. 1350319662 Thanks

florent-lamiraux commented 5 years ago

command cd /src/collada-dom/build-rel in the terminal shows that the variable is not set correctly. in .bashrc, you should add export DEVEL_HPP_DIR=/home/cheryl/HPP

Be sure to start a new terminal to make sure that .bashrc is read.

Before running make, type echo $DEVEL_HPP_DIR to be sure that the variable is correctly set.

ChanCheryl commented 5 years ago

You're correct! But when it ran for a while, it had a similar problem. 1846730791 And I think the variable is correctly this time. 782900073

jmirabel commented 5 years ago

Git complains that it couldn't find branch v4.3.0 on hpp-fcl. This should not have happened. v4.3.0 is not a branch but a tag. It is a valid input to the -b option. From git doc

  --branch <name>, -b <name>
      Instead of pointing the newly created HEAD to the branch pointed to by the cloned repository’s HEAD, point to <name> branch instead. In a non-bare repository, this is the branch that will be
      checked out.  --branch can also take tags and detaches the HEAD at that commit in the resulting repository.

What is your OS ? What's your version of git ? For me

$ git --version 
git version 2.7.4
ChanCheryl commented 5 years ago

My version of git is the same as yours.

jmirabel commented 5 years ago

I don't know how it is possible that we missed that bug. #40 should fix your issue. Meanwhile, you can pull this Makefile instead: https://github.com/jmirabel/hpp-doc/blob/master/doc/Makefile

nim65s commented 5 years ago

The issue is that hpp-fcl does not have a v4.3.0.

jmirabel commented 5 years ago

The issue is that hpp-fcl does not have a v4.3.0.

You are right. It is on my computer but it wasn't pushed.

jmirabel commented 5 years ago

I don't know how it is possible that we missed that bug. #40 should fix your issue. Meanwhile, you can pull this Makefile instead: https://github.com/jmirabel/hpp-doc/blob/master/doc/Makefile

I updated the master branch on my fork. You can (re)download the file now.

ChanCheryl commented 5 years ago

I changed the Makefile as you suggested.But it still doesn't work. 1646935990

florent-lamiraux commented 5 years ago

Indeed, the master branch does not compile. Your problem has been fixed in a later commit. To work around the issue, I suggest that you do cd $DEVEL_HPP_DIR/src/gepetto-viewer-corba git checkout -b devel origin/devel cd $DEVEL_HPP_DIR/src make all

Then, let me know whether this fixes your issue.

ChanCheryl commented 5 years ago

Thanks. But I think it doesn't work. It still has some problems. 1927803314

florent-lamiraux commented 5 years ago

Can you check that directory collada-dom has been checked out ? Can you type pkg-config --modversion collada14dom ? can you type echo $PKG_CONFIG_PATH ?

ChanCheryl commented 5 years ago

27554008 Is there anything wrong?

florent-lamiraux commented 5 years ago

I do not understand what happened. Can you type make collada-dom.install in $DEVEL_HPP_DIR/src ?

jmirabel commented 5 years ago

The paths in the two previous messages are different. In your PKG_CONFIG_PATH, you have ~/kinova/devel/lib, while the sources of HPP are in ~/HPP/src. Given the above pictures, binaries are installed in ~/HPP/install.

Did you source the config file ? Can you provide the output of:

echo $DEVEL_HPP_DIR
cat  $DEVEL_HPP_DIR/config.sh
florent-lamiraux commented 5 years ago

That's right, I missed the point.

ChanCheryl commented 5 years ago

Here is the result of make collada-dom.install 1234936804 And here is the result of echo $DEVEL_HPP_DIR cat $DEVEL_HPP_DIR/config.sh 1833975297 I'm sure that I source the config file before. Thanks

jmirabel commented 5 years ago

Then, you have to understand why the environment variable PKG_CONFIG_PATH does not contain ~/HPP/install/lib/pkgconfig. Open a new terminal, source the file and check the environment variable.

If they are OK, then, try again the installation.

florent-lamiraux commented 5 years ago

Maybe your .bashrc modifies variable PKG_CONFIG_PATH after you source config.sh...

nim65s commented 5 years ago

@ChanCheryl Do you really need the source version ? Do you know that you could install HPP from a binary source, without the need to understand all the compilation process ?

ChanCheryl commented 5 years ago

@jmirabel @florent-lamiraux Thank you very much. I well try again.

ChanCheryl commented 5 years ago

@nim65s Sorry, I don't know how to install HPP from a binary source. Because I didn't find the relevant installation tutorial. I just found this one https://github.com/jmirabel/hpp-doc/blob/master/doc/instructions.md

nim65s commented 5 years ago

@ChanCheryl Don't be sorry, it's not your fault, we may be lacking proper documentation about that on this project. You can install robotpkg's binary repository with the following commands (if you are on Ubuntu 16.04, otherwise you will have to adapt the xenial part):

curl http://robotpkg.openrobots.org/packages/debian/robotpkg.key | sudo apt-key add -
sudo tee /etc/apt/sources.list.d/robotpkg.list <<EOF
deb [arch=amd64] http://robotpkg.openrobots.org/wip/packages/debian/pub xenial robotpkg
deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub xenial robotpkg
EOF

And then install most of HPP (currently in the 4.4 version) with:

sudo apt update
sudo apt install robotpkg-hpp-tutorial robotpkg-qt4-hpp-gui
ChanCheryl commented 5 years ago

@nim65s Thank you very much!!! I successfully installed it. I am going to learn how to use your platform. Can you give me any advice?

florent-lamiraux commented 5 years ago

You can have a look at the tutorial at /opt/openrobots/share/doc/hpp_tutorial/doxygen-html/index.html

jmirabel commented 5 years ago

The installation problem is solved. @ChanCheryl re-open if you need some more help.