alex@alex:~/makedict/xdxf_makedict$ cmake CMakeLists.txt
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found Gettext: /usr/bin/msgmerge (found version "0.18.3")
-- Performing Test ICONV_HAVE_WERROR
-- Performing Test ICONV_HAVE_WERROR - Success
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Failed
-- Found Iconv: /usr/lib/x86_64-linux-gnu/libc.so
-- Looking for dgettext
-- Looking for dgettext - found
-- Found libintl: /usr/lib/x86_64-linux-gnu/libc.so
-- Looking for mmap
-- Looking for mmap - found
-- Looking for locale.h
-- Looking for locale.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alex/makedict/xdxf_makedict
alex@alex:~/makedict/xdxf_makedict$ make
Scanning dependencies of target makedict
[ 3%] Building CXX object CMakeFiles/makedict.dir/src/makedict.cpp.o
In file included from /usr/include/glib-2.0/glib.h:62:0,
from /home/alex/makedict/xdxf_makedict/src/makedict.cpp:31:
/home/alex/makedict/xdxf_makedict/src/log.hpp:22:13: error: variable or field ‘g_log’ declared void
extern void g_info(const gchar *fmt, ...);
^
/home/alex/makedict/xdxf_makedict/src/log.hpp:22:20: error: expected primary-expression before ‘const’
extern void g_info(const gchar *fmt, ...);
^
/home/alex/makedict/xdxf_makedict/src/log.hpp:22:38: error: expected primary-expression before ‘...’ token
extern void g_info(const gchar *fmt, ...);
^
make[2]: *** [CMakeFiles/makedict.dir/src/makedict.cpp.o] Error 1
make[1]: *** [CMakeFiles/makedict.dir/all] Error 2
make: *** [all] Error 2