Lib instalado localmente não encontrado

1

Eu queria instalar o dungeon crawl sem usar o sudo. O SDL não foi instalado, por isso instalei-o localmente, mas ele não é encontrado ao compilar o rastreamento.

Aqui está como eu fiz: Eu fiz o download da biblioteca "SDL2-2.0.5.tar.gz" e a extraí em algum lugar. Da nova pasta "SDL2-2.0.5", eu instalei a biblioteca:

./configure --prefix=/home/vulpo/local
make
make install

Eu posso ver, por exemplo, que este arquivo está no local esperado:

/home/vulpo/local/include/SDL2/SDL.h

Eu configurei minhas variáveis de ambiente dessa maneira:

$ export PATH=$PATH:/home/vulpo/local
$ export LD_LIBRARY_PATH=/home/vulpo/local/lib

LD_LIBRARY_PATH era antigamente vazio .

Eu pensei que isso seria suficiente para levar meu SDL local em consideração, mas recebo um erro ao instalar meu programa:

vulpo@FOXBOX:~/.dungeoncrawl/crawl/crawl-ref/source$ make TILES=y
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing 'freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing 'freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing 'freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing 'freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package sdl2 was not found in the pkg-config search path.
Perhaps you should add the directory containing 'sdl2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl2' found
Package sdl2 was not found in the pkg-config search path.
Perhaps you should add the directory containing 'sdl2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl2' found
Package sdl2 was not found in the pkg-config search path.
Perhaps you should add the directory containing 'sdl2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl2' found
Package sdl2 was not found in the pkg-config search path.
Perhaps you should add the directory containing 'sdl2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl2' found
make -C rltiles all ARCH=x86_64-linux-gnu TILES=y
make[1]: Entering directory '/home/vulpo/.dungeoncrawl/crawl/crawl-ref/source/rltiles'
make[1]: Leaving directory '/home/vulpo/.dungeoncrawl/crawl/crawl-ref/source/rltiles'
    CXX windowmanager-sdl.o
windowmanager-sdl.cc:21:24: fatal error: SDL2/SDL.h: No such file or directory
 #  include <SDL2/SDL.h>
                        ^
compilation terminated.
Makefile:1550: recipe for target 'windowmanager-sdl.o' failed
make: *** [windowmanager-sdl.o] Error 1
vulpo@FOXBOX:~/.dungeoncrawl/crawl/crawl-ref/source$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/vulpo/local
vulpo@FOXBOX:~/.dungeoncrawl/crawl/crawl-ref/source$ echo $LD_LIBRARY_PATH 
/home/vulpo/local/lib

Ele não funciona incluindo todos os diretórios /home/vulpo/local/* no meu caminho.

export PATH=$PATH:/home/vulpo/local/bin:/home/vulpo/local/include:/home/vulpo/local/lib:/home/vulpo/local/share

Então, qual é a maneira correta de usar meu SDL local em uma compilação de programa?

    
por Vulpo 17.04.2017 / 15:05

1 resposta

0

Como você quer fazer isso como usuário e não como root, você também precisará das dependências disponíveis para a sessão.

Package freetype2 was not found in the pkg-config search path.

Tente fazer o download e adicionar o pacote freetype2 ao diretório de projetos.

    
por Steve Hope 17.04.2017 / 15:51