Biblioteca do qt nao esta sendo achada por outras aplicacoes

Open
#3 1 comment 0 reactions 0 assignees View on GitHub

A pull request for this has already been merged.

  • #2 by @Pvcunha — merged

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
dockerfile, shell

Research direction

Inspect the Qt installation script or Dockerfile and the merged pull request #2 first. Add the library path to /etc/ld.so.conf.d/x86_64-linux-gnu.conf, run ldconfig, and verify with ldd that the Qt libraries resolve; the rcssmonitor check should then reach its expected no-display error.

Written by the indexing model from the issue text.

Description

bug
          > > O erro do monitor era esperado?

vou tentar descobrir hoje, eu tinha visto ele já. Vou comparar as libs pra imagem pvcunha/robocin-2d:ubuntu-20.04 para essa. Mas esse arquivo que ele diz que ta faltando ta no caminho /opt/qt/5.15.2/lib, pelo que me recordo do que vi ontem... Enfim foi dar uma averiguada melhor

O problema no qt eh o seguinte, os .so nao estao sendo achados pelo container. Como pode ser visto na imagem (ldd eh um comando pra verificar dependencias de shared libraries)
image

Portanto o que precisa ser feito eh adicionar o path /opt/qt/5.15.2/gcc_64/lib para procurar por biblioteca nesse diretorio. Para isso ser feito basta adicionar uma linha ao arquivo /etc/ld.so.conf.d/x86_64-linux-gnu.conf contendo o path das bibliotecas do qt.
image

Em seguida precisamos "atualizar" as bibliotecas do sistema com o comando ldconfig, e temos o seguinte output no comando ldd
image

e por fim o output esperado do rcssmonitor por nao ter display disponivel ainda:
image

O proximo passo eh fazer isso de forma automatica pelo Dockerfile ou pelo script de instalacao do qt...

referencias:
https://unix.stackexchange.com/questions/168340/where-is-ld-library-path-how-do-i-set-the-ld-library-path-env-variable
https://www.gnu.org/software/grep/manual/grep.html
https://manpages.ubuntu.com/manpages/trusty/man1/ldd.1.html

Originally posted by @Pvcunha in https://github.com/robocin/scripts-ubuntu-common/issues/2#issuecomment-1387303257

Dominant language
Shell
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from robocin/scripts-ubuntu-common

All issues in robocin/scripts-ubuntu-common

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.