[cairo] "error: unterminated comment" while compiling 'cairo.def'
Reino Wijnsma
rwijnsma at xs4all.nl
Sun Aug 27 16:35:48 UTC 2017
Hello,
I'm on Windows XP and I'm using MingW, GCC and this script
<https://github.com/Reino17/ffmpeg-windows-build-helpers/blob/master/cross_compile_ffmpeg.sh>
to compile LibCairo (amongst other dependencies to eventually compile
Tesseract).
This is the function I'm using to compile Cairo:
build_libcairo() {
download_and_unpack_file
https://www.cairographics.org/releases/cairo-1.14.10.tar.xz
cd cairo-1.14.10
if [[ ! -f Makefile.in.bak ]]; then
sed -i.bak "/^SUBDIRS/s/src.*/src/" Makefile.in # Library only.
fi
export PKG_CONFIG="pkg-config --static" # Automatically detect all
FreeType's dependencies.
generic_configure
do_make_and_make_install
unset PKG_CONFIG
cd ..
} # ZLIB, LIBPNG, FREETYPE, FONTCONFIG, pixman, GLIB (GOBJECT)
generic_configure translates to:
./configure --host=i686-w64-mingw32
--prefix=/cygdrive/m/ffmpeg-windows-build-helpers-master/native_build/windows/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32
--disable-shared --enable-static
So far so good. '/configure/' correctly detects all dependencies and
'/make/' starts compiling stuff in the '/src/'-directory. Until:
Generating cairo.def
<stdin>:47:1: error: unterminated comment
make[3]: *** [Makefile:3083: cairo.def] Error 1
make[3]: Leaving directory
'/cygdrive/m/ffmpeg-windows-build-helpers-master/native_build/windows/ffmpeg_local_builds/sandbox/win32/cairo-1.14.10/src'
Makefile:3083: cairo.def is exactly the same as line 66-77 of
https://cgit.freedesktop.org/cairo/tree/src/Makefile.am.
After removing the @ starting at line 68 and running the script again it
returned:
Generating cairo.def
(echo EXPORTS; \
(cd .; cat cairo.h cairo-deprecated.h
cairo-win32.h cairo-script.h cairo-ft.h cairo-ps.h
cairo-pdf.h cairo-svg.h || echo 'cairo_ERROR ()' ) | \
/usr/bin/grep -E -v '^# *include' | \
( cat cairo-features.h - | i686-w64-mingw32-gcc -E -D__cplusplus - ||
echo 'cairo_ERROR ()' ) | \
/usr/bin/grep -E '^cairo_.* \(' | \
sed -e 's/[ ].*//' | \
sort; \
echo LIBRARY libcairo-2.dll; \
) >cairo.def
<stdin>:47:1: error: unterminated comment
I'm still relatively new to all this, but what I don't understand is the
notion of "libcairo-2.dll" when I'm trying to create a static library.
But anyway, does anyone have a clue on what's going on here?
-- Reino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20170827/04b6b24a/attachment.html>
More information about the cairo
mailing list