Update documentation for clean installation on ubuntu 16.04

Asked by Luc Scholtès

Hi folks,

As mentioned in previous question, I am now trying to install yade on ubuntu 16.04.

According to the problems and warnings I face during the installation process, there is something missing in the online documentation (e.g. the "sudo apt-get -y install libopenblas-dev libsuitesparse-dev libmetis-dev" instruction to use instead of the "sudo apt-get install libopenblas-dev libsuitesparse-metis-dev" mentioned online, thanks Robert for that).

In addition, here are other messages that appear during the cmake stage:

1) qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
-- Found unsuitable Qt version "" from NOTFOUND

2) -- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

3) -- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

I am certainly not an expert for these aspects but it seems that these messages comes from the fact that:

1) qt5 is used instead of qt4

2 and 3) python-vtk6 is used instead of python-vtk

If you guys have suggestions for "solving" these "problems", I could even update the online doc myself if needed.

I must say that, nonetheless, compilation went well and yade seems to work correctly.

Luc

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

This is strange since the online documentation includes the following library installs:

libvtk6-dev python-pyqt5 pyqt5-dev-tools python-pyqt5.qtwebkit.

which should provide yade the dependencies for qt5 and vtk6.

Anyways, here is my srcsInstall.sh shell script, which I use on fresh 16.04 installs [1]. Maybe you can give it a try and let me know if it works for you. However, it is copy and pasted from the existing install documentation except the metis-dev and suitesparse-dev libraries. One thing I noticed in your post was that you mentioned "python-vtk", but I believe it should be python-tk. Maybe that typo is the source of the vtk errors? I am also no expert with this stuff, it is all trial and error territory for me.

[1]
sudo add-apt-repository ppa:yade-users/external
sudo apt-get update

sudo apt-get -y install cmake git freeglut3-dev libloki-dev \
libboost-all-dev fakeroot dpkg-dev build-essential g++ \
python-dev ipython python-matplotlib libsqlite3-dev python-numpy python-tk gnuplot \
libgts-dev python-pygraphviz libvtk6-dev python-numpy libeigen3-dev \
python-xlib python-pyqt5 pyqt5-dev-tools python-pyqt5.qtwebkit gtk2-engines-pixbuf python-argparse \
libqglviewer-dev python-imaging libjs-jquery python-sphinx python-git python-bibtex \
libxmu-dev libxi-dev libcgal-dev help2man libbz2-dev zlib1g-dev python-minieigen \
libopenblas-dev libsuitesparse-dev libmetis-dev python-gts htop vim

sudo mkdir /usr/local/lib/myYade
cd /usr/local/lib/myYade/
sudo mkdir install build
git clone https://github.com/yade/trunk.git
sudo apt-get update

cd build
sudo cmake -DCMAKE_INSTALL_PREFIX=../install ../trunk -DNOSUFFIX=ON
sudo make -j6 install

Revision history for this message
Robert Caulk (rcaulk) said :
#2

OK, I spent some time checking the build and it turns out I am also encountering the same warnings with my script, I just never noticed them because it did not appear to impact the installation.

I managed to get rid of warnings 1 and 3 by installing libqtwebkit-dev and libvtk6-dev. But I am not sure what this really accomplished since yade is still compiled with VTK and fully functional with all three warnings.

Warning 2 appears to be an issue with naming in the Debian packaging [1].

[1]https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826050

Revision history for this message
Luc Scholtès (luc) said :
#3

Thanks Robert for your time and help.

Unfortunately, I am still struggling and it is very annoying...

I don't understand as I even reinstalled ubuntu 16.04 from scratch...

I got the same error when using the ubuntu repositories (sudo apt-get install yade) or the source code and it is what was reported in [1].

yade launches without any problem but when typing within the terminal (e.g. len(O.bodies)), yade ends up by crashing.

If the persons who faced the problem described in [1] could tell what they have done, I would be very grateful.

Luc

[1] https://answers.launchpad.net/yade/+question/295951

Revision history for this message
Luc Scholtès (luc) said :
#4

The problem occurring when launching a python script (e.g. yade script.py) is "solved" according to Klaus workaround described here:

https://bugs.launchpad.net/yade/+bug/1604266

I must mention that this bug occurs with all yade versions I tried (yadedaily, yade from package and sources from github).

Concerning the "clean installation" procedure, the warnings are still on during the cmake stage. At the moment, I did not encountered any related problems so I guess it is not a big deal.

BTW, following the procedure to install yade daily from packages provided in the doc, be aware that you will not be able to make it work without doing:

sudo apt-get install python-pyqt5.qtwebkit

Could this be included directly in the sudo apt-get install yadedaily? I don't know.

I am not closing the thread for the moment as the solution is not really satisfactory. I'll try to look around for a proper solution in the coming days. If I don't find anything, I'll close the thread.

Thanks again to everyone involved.

Cheers

Luc

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.