Portál AbcLinuxu, 12. května 2025 07:53

Dotaz: RRD Tool - compilace

22.8.2005 15:01 swejk | skóre: 7
RRD Tool - compilace
Přečteno: 377×
Odpovědět | Admin

Při kompilaci rrd tool
root@swejk-server:/usr/local/src/rrdtool-1.2.10# ./configure

checking for FT_Init_FreeType in -lfreetype... yes
checking ft2build.h usability... no
checking ft2build.h presence... no
checking for ft2build.h... no
checking for pkg-config... pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no freetype2.pc file around.
  You may want to set the PKG_CONFIG_PATH variable to point to its
  location.
----------------------------------------------------------------------------

configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of freetype2. Check config.log for hints on why
  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
  so that compiler and the linker can find libfreetype and its header files. If
  you have not installed freetype2, you can get it either from its original home on

     http://prdownloads.sourceforge.net/freetype/

  You can find also find an archive copy on

     http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/libs

  The last tested version of freetype2 is 2.1.9.

       LIBS=-lpng -lz -lart_lgpl_2 -lm 
   LDFLAGS=
  CPPFLAGS= -I/usr/include/libart-2.0 -I/usr/include/freetype2

----------------------------------------------------------------------------
                
checking for cgiInit in -lcgi... yes
checking cgi.h usability... yes
checking cgi.h presence... yes
checking for cgi.h... yes
configure: error: Please fix the library issues listed above and try again.
root@swejk-server:/usr/local/src/rrdtool-1.2.10# 

Freetype2 jsem úspěšně zkompiloval
Nevím co znamená a co udělat s LDFLAGS CPPFLAGS.
Prosím poradí někdo.

Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

23.8.2005 13:39 swejk | skóre: 7
Rozbalit Rozbalit vše Re: RRD Tool - compilace
Odpovědět | | Sbalit | Link | Blokovat | Admin
Nerozumim tomu ale poradil jsem si následovně:
.../rrdtool/# env CPPFLAGS="-I/usr/local/src/cgilib-0.5/ -I/usr/local/include/freetype2 -I/usr/local/include/libart-2.0" LDFLAGS="-L/usr/local/src/cgilib-0.5/" ./configure
23.8.2005 14:02 vladimir
Rozbalit Rozbalit vše Re: RRD Tool - compilace
LDFLAGS jsou parametry linkeru a CPPFLAGS parametry preprocesoru c. jinak, pkgconfig nemohl najit knihovnu freetype2 (asi proto ze sis ji zrejme nainstaloval do /usr/local)
8.6.2006 21:32 Gryffus
Rozbalit Rozbalit vše Re: RRD Tool - compilace
A jak si zvolim kam chci freetype2 nainstalovat?

Diky
8.6.2006 21:54 qk | skóre: 15 | blog: qk_develop
Rozbalit Rozbalit vše Re: RRD Tool - compilace
configure ma parametry, ktere to urcuji. takze koukni do konfigure --help (myslim neco jako prefix a jine)

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.