Unable to locate package libqglviewer-dev-qt5 when Install Yade from Source code

Asked by LiTingting

I'm new for Ubuntu and Yade. When I install Yade from source code based on https://yade-dem.org/doc/installation.html#source-code.

In that document, it says:"
For Ubuntu 20.04, 18.04, Debian 9, 10, 11 and their derivatives, just copy&paste to the terminal the following code block for installing all mandatory and optional dependencies (for Ubuntu 16.04 libqglviewer-dev-qt5 is to be replaced by libqglviewer-dev and python3-ipython by ipython3):

sudo apt install cmake git freeglut3-dev libloki-dev libboost-all-dev fakeroot \
dpkg-dev build-essential g++ python3-dev python3-ipython python3-matplotlib \
libsqlite3-dev python3-numpy python3-tk gnuplot libgts-dev python3-pygraphviz \
libvtk6-dev libeigen3-dev python3-xlib python3-pyqt5 pyqt5-dev-tools python3-mpi4py \
python3-pyqt5.qtwebkit gtk2-engines-pixbuf python3-pyqt5.qtsvg libqglviewer-dev-qt5 \
python3-pil libjs-jquery python3-sphinx python3-git libxmu-dev libxi-dev libcgal-dev \
help2man libbz2-dev zlib1g-dev libopenblas-dev libsuitesparse-dev \
libmetis-dev python3-bibtexparser python3-future coinor-clp coinor-libclp-dev \
python3-mpmath libmpfr-dev libmpfrc++-dev libmpc-dev texlive-xetex"

my Ubuntu version is 20.04. After typing the code above, my terminal shows as following:"
 Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libqglviewer-dev-qt5"

I have try to use "sudo apt-get update " to update, but is doesn't work. Could someone tell me how should I do ? Thank you very much!

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
LiTingting
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

first of all, are you sure you need installation from source?
Do you need to modify the source code?
If not, I would really try the package versions first

> my Ubuntu version is 20.04

in [1], you write your Ubuntu is 21.10 and then you got recommendation to upgrade to 22.04.
Why do you use 20.04?

I have checked [2], there is libqglviewer-dev-qt5 for focal (20.04 Focal Fossa).. so I have no idea where the problem is..

Cheers
Jan

[1] https://answers.launchpad.net/yade/+question/703066
[2] https://packages.ubuntu.com/focal/libqglviewer-dev-qt5

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

Again a remark from Ubuntu side (I cannot comment for Yade):

libqglviewer-dev-qt5 is in the "universe" category.
You have to enable that repository bucket in your package management settings (no matter which Ubuntu release you are running).

Revision history for this message
LiTingting (tingtingli) said :
#3

Hello Jan!
Thank you for your answer!

Right, I tried to update to 22.04, however, there is an error :"No package libvtk6-dev is available" when I download some software package according to [1], then I check [2], in which libvtk6-dev is not included. So I guess I should use Ubuntu 20.04 ,cause [1] have mentioned it. That is what I changed my ubuntu version.

Thank you for your [2], so I update my ubuntu to 20.04.1LTS, my question have been solved!!!

[1]Installation — Yade 3rd ed. documentation (yade-dem.org)
[2] https://packages.ubuntu.com/focal/libqglviewer-dev-qt5

---- Replied Message ----
| From | Jan Stránský<email address hidden> |
| Date | 9/7/2022 13:31 |
| To | <litingting4183@163.com> |
| Subject | Re: [Question #703079]: Unable to locate package libqglviewer-dev-qt5 when Install Yade from Source code |
Your question #703079 on Yade changed:
https://answers.launchpad.net/yade/+question/703079

Status: Open => Needs information

Jan Stránský requested more information:
Hello,

first of all, are you sure you need installation from source?
Do you need to modify the source code?
If not, I would really try the package versions first

my Ubuntu version is 20.04

in [1], you write your Ubuntu is 21.10 and then you got recommendation to upgrade to 22.04.
Why do you use 20.04?

I have checked [2], there is libqglviewer-dev-qt5 for focal (20.04 Focal
Fossa).. so I have no idea where the problem is..

Cheers
Jan

[1] https://answers.launchpad.net/yade/+question/703066
[2] https://packages.ubuntu.com/focal/libqglviewer-dev-qt5

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/yade/+question/703079

You received this question notification because you asked the question.

Revision history for this message
LiTingting (tingtingli) said :
#4

Hello Manfred!

Thank for your reply very much!

I updated my Ubuntu to 20.04.1LTS, then my question has been solved. You answer also helped me to understand my question before. Thank you!

---- Replied Message ----
| From | Manfred Hampl<email address hidden> |
| Date | 9/7/2022 16:01 |
| To | <litingting4183@163.com> |
| Subject | Re: [Question #703079]: Unable to locate package libqglviewer-dev-qt5 when Install Yade from Source code |
Your question #703079 on Yade changed:
https://answers.launchpad.net/yade/+question/703079

Manfred Hampl posted a new comment:
Again a remark from Ubuntu side (I cannot comment for Yade):

libqglviewer-dev-qt5 is in the "universe" category.
You have to enable that repository bucket in your package management settings (no matter which Ubuntu release you are running).

--
You received this question notification because you asked the question.

Revision history for this message
LiTingting (tingtingli) said :
#5

I changed Ubuntu version to 20.04.1LTS. typed the code to download those software package mentioned in my question. These codes have been done without errors.

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Another remark from Ubuntu perspective:

In Ubuntu 22.04 (jammy) the package libvtk6-dev is not available, but there are libvtk7-dev and libvtk9-dev.
Maybe one of them can serve as a replacement when installing yade from source code.

Revision history for this message
LiTingting (tingtingli) said :
#7

Okay, thank you. Since I don't know the differences between them, I didn't tried this. Thank you !

---- Replied Message ----
| From | Manfred Hampl<email address hidden> |
| Date | 9/7/2022 19:16 |
| To | <litingting4183@163.com> |
| Subject | Re: [Question #703079]: Unable to locate package libqglviewer-dev-qt5 when Install Yade from Source code |
Your question #703079 on Yade changed:
https://answers.launchpad.net/yade/+question/703079

Manfred Hampl posted a new comment:
Another remark from Ubuntu perspective:

In Ubuntu 22.04 (jammy) the package libvtk6-dev is not available, but there are libvtk7-dev and libvtk9-dev.
Maybe one of them can serve as a replacement when installing yade from source code.

--
You received this question notification because you asked the question.