Форум обсуждения систем  

Вернуться   Форум обсуждения систем "Умный дом", проектов Ардуино, OpenWRT и других DIY устройств > Форум умного дома > Сделай сам > Linux для начинающих

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.02.2013, 23:16   #10
OSBoy
Junior Member
 
Регистрация: 17.02.2013
Сообщений: 28
Вес репутации: 0
OSBoy is an unknown quantity at this point
По умолчанию

Подскажите пожалуйста, как включить поддержку freetype в php на роутере под openwrt? Прошивка у меня полностью рабочая и собирать новую полностью нет желания. Хотелось бы просто пересобрать php5 с флагом --with-freetype-dir="......" вместо --without-freetype-dir, который включен по умолчанию, и добавить freetype в зависимости.
Роутер: TP-Link WR1043ND, прошивка: Attitude Adjustment 12.09-rc1, корень вынесен на внешний USB-диск.

Я скачал исходники, обновил фиды, а что делать дальше, я не очень то представляю...
Я сделал:
Код:
./scripts/feeds update -a
./scripts/feeds install php5
./scripts/feeds install zoneinfo (без него make menuconfig ругался)
./scripts/feeds install freetype
Затем нашёл в feeds/packages/lang/php5/Makefile строки, касаемые GD:
Код:
.....
ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-gd),)
  CONFIGURE_ARGS+= \
        --with-gd=shared \
        --without-freetype-dir \
        --with-jpeg-dir="$(STAGING_DIR)/usr" \
        --with-png-dir="$(STAGING_DIR)/usr" \
        --without-xpm-dir \
        --without-t1lib \
        --enable-gd-native-ttf \
        --disable-gd-jis-conv
else
  CONFIGURE_ARGS+= --without-gd
endif
.....
$(eval $(call BuildModule,gd,GD graphics,+PACKAGE_php5-mod-gd:libjpeg +PACKAGE_php5-mod-gd:libpng))
.....
Их я привёл к следующему виду:
Код:
.....
ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-gd),)
  CONFIGURE_ARGS+= \
        --with-gd=shared \
#      --without-freetype-dir \
        --with-freetype-dir="$(STAGING_DIR)/usr/lib" \
        --with-jpeg-dir="$(STAGING_DIR)/usr" \
        --with-png-dir="$(STAGING_DIR)/usr" \
        --without-xpm-dir \
        --without-t1lib \
        --enable-gd-native-ttf \
        --disable-gd-jis-conv
else
  CONFIGURE_ARGS+= --without-gd
endif
.....
$(eval $(call BuildModule,gd,GD graphics,+PACKAGE_php5-mod-gd:libjpeg +PACKAGE_php5-mod-gd:libpng +PACKAGE_php5-mod-gd:libfreetype))
.....
Затем я, выполнил make menuconfig, выбрал целевой профиль, затем make, всё прошло без ошибок. А вот сборка php5 вываливается с ошибкой на следующих строках:
make package/feeds/packages/php5/compile V=99
Код:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support... no
checking whether to enable Apache charset compatibility option... no
checking for Caudium support... no
checking for CLI build... no
checking for Continuity support... no
checking for embedded SAPI library support... no
checking for FPM build... no
checking for Zeus ISAPI support... no
checking for LiteSpeed support... no
checking for Milter support... no
checking for NSAPI support... no
checking for PHTTPD support... no
checking for Pi3Web support... no
checking whether Roxen module is build using ZTS... no
checking for Roxen/Pike support...
checking for thttpd... no
checking for TUX... no
checking for webjames... no
checking for CGI build... yes
checking for chosen SAPI module... none
checking for executable SAPI binaries... none
configure: error: Nothing to build.
make[2]: *** [/home/osboy/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/.configured_nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn] Error 1
make[2]: Leaving directory `/home/osboy/openwrt/attitude_adjustment/feeds/packages/lang/php5'
make[1]: *** [package/feeds/packages/php5/compile] Error 2
make[1]: Leaving directory `/home/osboy/openwrt/attitude_adjustment'
make: *** [package/feeds/packages/php5/compile] Ошибка 2
Что я не так делаю, или куда копать?

Последний раз редактировалось OSBoy; 23.02.2013 в 22:00.
OSBoy вне форума   Ответить с цитированием
 


Здесь присутствуют: 20 (пользователей: 0 , гостей: 20)
 

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 00:00. Часовой пояс GMT +3.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot
Яндекс.Метрика