não pode ativar o suporte a xft e freetype para o emacs 25.2

1

Esta questão está relacionada com a compilação do emacs, mas é mais sobre o problema de pesquisa de bibliotecas no Ubuntu, então acho que devo colocar aqui. Se for melhor colocar o fórum do emacs, eu farei isso depois.

O código-fonte do Emacs 25.2 foi baixado aqui: link

Eu quero configure emacs 25.2 para suportar xft , cairo , gnutls e gtk3 antes de compilá-lo. Como eu faço isso?

Eu instalei todas as dependências nas quais posso pensar abaixo. Existem muitas entradas sudo apt-get porque eu fui e voltei tentando fazer as coisas funcionarem:

sudo apt-get build-dep emacs24
sudo apt-get install libxft2
sudo apt-get install libfreetype6-dev
sudo apt-get install libgnutls28-dev
sudo apt-get install libm17n-dev libxft-dev libotf-dev
sudo apt-get upgrade
sudo apt-get install libfreetype6-dev
sudo apt-get install libgtk-3-dev libwebkitgtk-3.0-dev
sudo apt-get install libcairo2-dev
sudo apt-get install libharfbuzz-dev libpangoxft-1.0-0 libpango1.0-dev libpangoft2-1.0-0
sudo apt-get install libharfbuzz
sudo apt-get install libharfbuzz-dev libharfbuzz-bin
sudo apt-get install build-essential texinfo libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk2.0-dev libncurses-dev

Depois disso, eu também tentei reinicializar o computador, executando ldconfig -v e ver as bibliotecas na verdade listadas na saída detalhada.

E este é o comando configure que tenta habilitar xft para um começo:

./configure --with-xft --with-x

Configurar saída:

Configured for 'x86_64-unknown-linux-gnu'.

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc -g3 -O2
  Should Emacs use the GNU version of malloc?             yes
      (Using Doug Lea's new malloc from the GNU C Library.)
  Should Emacs use a relocating allocator for buffers?    no
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          LUCID
  Where do we find X Windows header files?                Standard dirs
  Where do we find X Windows libraries?                   Standard dirs
  Does Emacs use -lXaw3d?                                 yes
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes -lgif
  Does Emacs use a png library?                           yes -lpng12
  Does Emacs use -lrsvg-2?                                no
  Does Emacs use cairo?                                   no
  Does Emacs use imagemagick?                             no
  Does Emacs support sound?                               yes
  Does Emacs use -lgpm?                                   yes
  Does Emacs use -ldbus?                                  no
  Does Emacs use -lgconf?                                 no
  Does Emacs use GSettings?                               no
  Does Emacs use a file notification library?             yes -lglibc (inotify)
  Does Emacs use access control lists?                    yes -lacl
  Does Emacs use -lselinux?                               yes
  Does Emacs use -lgnutls?                                no
  Does Emacs use -lxml2?                                  yes
  Does Emacs use -lfreetype?                              no
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   no
  Does Emacs use -lxft?                                   no
  Does Emacs directly use zlib?                           yes
  Does Emacs have dynamic modules support?                no
  Does Emacs use toolkit scroll bars?                     yes
  Does Emacs support Xwidgets (requires gtk3)?            no
    
por biocyberman 08.06.2017 / 13:01

1 resposta

0

Santo Molly Molly

Acontece que é porque configure conseguiu encontrar algumas dependências no meu $HOME/.linuxbrew , ou seja, .linuxbrew/Cellar/libxml2/2.9.4/include/libxml2 , então ele continua procurando outras dependências no mesmo diretório. É por isso que, apesar de muitas dependências instaladas, elas não puderam ser encontradas. Depois de deletar $HOME/.linuxbrew porque eu não uso mais o linuxbrew, tudo funciona perfeitamente como esperado. BTW, linuxbrew deu-me dificuldades mesmo a partir do seu túmulo no meu computador. É muito menos estável comparado ao homebrew do Mac OSX.

Configured for 'x86_64-unknown-linux-gnu'.

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc -g3 -O2
  Should Emacs use the GNU version of malloc?             yes
      (Using Doug Lea's new malloc from the GNU C Library.)
  Should Emacs use a relocating allocator for buffers?    no
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          GTK3
  Where do we find X Windows header files?                Standard dirs
  Where do we find X Windows libraries?                   Standard dirs
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes -lgif
  Does Emacs use a png library?                           yes -lpng12
  Does Emacs use -lrsvg-2?                                yes
  Does Emacs use cairo?                                   no
  Does Emacs use imagemagick?                             yes
  Does Emacs support sound?                               yes
  Does Emacs use -lgpm?                                   yes
  Does Emacs use -ldbus?                                  yes
  Does Emacs use -lgconf?                                 yes
  Does Emacs use GSettings?                               yes
  Does Emacs use a file notification library?             yes -lglibc (inotify)
  Does Emacs use access control lists?                    yes -lacl
  Does Emacs use -lselinux?                               yes
  Does Emacs use -lgnutls?                                yes
  Does Emacs use -lxml2?                                  yes
  Does Emacs use -lfreetype?                              yes
  Does Emacs use -lm17n-flt?                              yes
  Does Emacs use -lotf?                                   yes
  Does Emacs use -lxft?                                   yes
  Does Emacs directly use zlib?                           yes
  Does Emacs have dynamic modules support?                no
  Does Emacs use toolkit scroll bars?                     yes
  Does Emacs support Xwidgets (requires gtk3)?            no
    
por biocyberman 08.06.2017 / 15:01