не может включить xft и поддержку freetype emacs 25.2

Этот вопрос касается emacs компиляции, но это больше о проблеме поиска библиотеки на Ubuntu, таким образом, я думаю, что должен поместить здесь. Если будет лучше поместить по emacs форуму, то я сделаю это позже.

Исходный код Emacs 25.2 был загружен отсюда: http://ftp.gnu.org/gnu/emacs/

Я хочу configure emacs 25.2 для поддержки xft, cairo, gnutls и gtk3 прежде, чем скомпилировать его. Как я делаю это?

Я установил все зависимости, о которых я могу думать ниже. Существуют так многие sudo apt-get записи, потому что я пошел, назад и вперед пытаясь получить вещи работать:

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

После этого я также пытался перезагрузить компьютер, работая ldconfig -v и посмотрите, что библиотеки на самом деле перечислены в подробном выводе.

И это - команда настройки, которая пытается включить xft для запуска:

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

Настройте вывод:

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
1
задан 8 June 2017 в 14:14

1 ответ

Святой Моли Молли

Оказывается, это потому, что configure мог найти некоторые зависимости в моем $HOME/.linuxbrew, то есть .linuxbrew/Cellar/libxml2/2.9.4/include/libxml2, поэтому он продолжает искать другие зависимости в том же каталоге. Вот почему, несмотря на множество установленных зависимостей, их не удалось найти. После удаления $HOME/.linuxbrew, поскольку я больше не использую linuxbrew, все работает отлично, как и ожидалось. Кстати, linuxbrew доставили мне неприятности даже из-за его могилы на моем компьютере. Он намного менее стабилен по сравнению с домашним пивом 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
0
ответ дан 8 June 2017 в 14:14

Другие вопросы по тегам:

Похожие вопросы: