[mapserver-users] compile 7.0.1 error, glib.h not found

Andy Colson andy at squeakycode.net
Tue Jul 12 18:52:05 PDT 2016


Hi all.

I tried:
cmake .. -DWITH_PERL=1


Scanning dependencies of target mapserver
[  1%] Building C object CMakeFiles/mapserver.dir/fontcache.c.o
In file included from /usr/include/fribidi/fribidi.h:35:0,
                  from /tmp/SBo/mapserver-7.0.1/fontcache.h:13,
                  from /tmp/SBo/mapserver-7.0.1/fontcache.c:32:
/usr/include/fribidi/fribidi-common.h:61:20: fatal error: glib.h: No such file or directory
compilation terminated.
CMakeFiles/mapserver.dir/build.make:62: recipe for target 'CMakeFiles/mapserver.dir/fontcache.c.o' failed


I found a prior reference to this:

http://osgeo-org.1560.x6.nabble.com/Error-building-Mapserver-6-4-1-with-fribidi-td5099725.html#a5099926


# pkg-config --cflags fribidi
-I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include

# ls /usr/include/glib-2.0
gio/  glib/  glib-object.h  glib-unix.h  glib.h  gmodule.h  gobject/

# cmake --version
cmake version 3.5.2

Slackware64 14.2

If I use:
cmake .. -DWITH_PERL=1 -DFRIBIDI_INCLUDE_DIR='/usr/include/fribidi;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include'

It compiles fine.  I thought I'd just report that this still seems to be a problem.

-Andy



More information about the MapServer-users mailing list