Hi!
At the moment I’m trying to compile fvwm from CVS on my Debian Squeeze machine to fix some taskbar issues (as suggested on this board some time ago).
But it seems I do not succeed in compiling it with support for FreeType and GTK:
[code]Fvwm Configuration:
Version: 2.5.32 (from cvs)
Executables: /usr/local/bin
Man pages: /usr/local/share/man
Modules: /usr/local/libexec/fvwm/2.5.32
Data files: ${prefix}/share/fvwm
Doc files: ${prefix}/share/doc/fvwm
Perl lib: ${prefix}/share/fvwm/perllib
Locale msg: ${prefix}/share/locale ar de fr sv_SE zh_CN
With Asian bi-direct. text support? no: No fribidi-config, pkg-config fribidi
With Gettext Native Lang support? yes (libc)
With GTK+ required for FvwmGtk? no: Failed to detect GTK, see config.log
With Iconv support? yes (from C library)
With Mouse strokes (gestures)? yes
With PNG image support? yes
With ReadLine sup. in FvwmConsole? yes
With RPlay support in FvwmEvent? yes
With Shaped window support? yes
With Shared memory for XImage? yes
With Session Management support? yes
With SVG image support? yes
With Xcursor support? yes
With Xinerama multi-head support? yes
With Xft anti-alias font support? no: Can’t detect freetype2 >= 6.1.0/2.0.6
With XPM image support? yes
With Xrender image support? yes
Build man pages? yes
Build HTML documentation? no[/code]
Actually I think I have both of these:
[code]user@mypc:~/download/fvwm$ dpkg -l | grep freetype
ii libfont-freetype-perl 0.03-1 Read font files and render glyphs from Perl using FreeType2
ii libfreetype6 2.4.2-2.1 FreeType 2 font engine, shared library files
ii libfreetype6-dev 2.4.2-2.1 FreeType 2 font engine, development files
user@mypc:~/download/fvwm$ dpkg -l | grep libgtk
ii libgtk2.0-0 2.20.1-2 The GTK+ graphical user interface library
ii libgtk2.0-bin 2.20.1-2 The programs for the GTK+ graphical user interface library
ii libgtk2.0-common 2.20.1-2 Common files for the GTK+ graphical user interface library
ii libgtk2.0-dev 2.20.1-2 Development files for the GTK+ library
ii libgtk2.0-doc 2.20.1-2 Documentation for the GTK+ graphical user interface library
ii libgtkmm-2.4-1c2a 1:2.20.3-1 C++ wrappers for GTK+ (shared libraries)
ii libgtkmm-2.4-dev 1:2.20.3-1 C++ wrappers for GTK+ (development files)[/code]
but I can’t make it work. The config.log file shows the following message:
configure:7724: checking for freetype-config
configure:7742: found /usr/bin/freetype-config
configure:7755: result: /usr/bin/freetype-config
configure:7765: checking for FreeType - version >= 6.1.0
configure:7838: gcc -o conftest -Wall -Wno-implicit-int -g -O2 -I/usr/include/freetype2 conftest.c >&5
/tmp/ccRM1Egq.o: In function `main':
/home/user/download/fvwm/conftest.c:53: undefined reference to `FT_Init_FreeType'
/home/user/download/fvwm/conftest.c:59: undefined reference to `FT_Done_FreeType'
collect2: ld returned 1 exit status
configure:7838: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define VERSIONINFO " (from cvs)"
| #define PACKAGE "fvwm"
| #define VERSION "2.5.32"
| #define FVWM_CONFIG "config"
| #define FVWM2RC ".fvwm2rc"
| #define FVWM_IMAGEPATH "/usr/include/X11/bitmaps:/usr/include/X11/pixmaps"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 4
| #define SIZEOF_WINDOW 4
| #define SIZEOF_PIXEL 4
| #define SIZEOF_VOID_P 4
| #define SESSION 1
| #define SHAPE 1
| #define HAVE_XSHM 1
| #define HAVE_XINERAMA 1
| #define HAVE_XRENDER 1
| #define HAVE_XCURSOR 1
| /* end confdefs.h. */
|
| #include <ft2build.h>
| #include FT_FREETYPE_H
| #include <stdio.h>
| #include <stdlib.h>
|
| int
| main()
| {
| FT_Library library;
| FT_Error error;
|
| error = FT_Init_FreeType(&library);
|
| if (error)
| return 1;
| else
| {
| FT_Done_FreeType(library);
| return 0;
| }
| }
|
configure:7857: result: no
I can execute freetype-config in a terminal session without any problems but it seems it cannot be found during configure. I guess I forgot something but I don’t know what it is… I’d appreciate some advice.
Thanks,
crockett