Hi, I try to build LuaTeX on windows / mingw/msys, but I fail with pkg-config: checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking whether gcc and cc understand -c and -o together... yes checking for inline... inline checking for i686-pc-mingw32-pkg-config... no checking for pkg-config... no configure: error: pkg-config >= required but not found (http://pkgconfig.freede sktop.org/) make[1]: *** [cairo-build/Makefile] Error 1 make[1]: Leaving directory `/z/luatexw/LuaTeX/build/libs/cairo' make: *** [../../libs/cairo/cairo/cairo.h] Error 2 C:\msysgit\mingw\bin\strip.exe: 'build/texk/web2c/luatex.exe': No such file ls: build/texk/web2c/luatex.exe: No such file or directory Can anyone help me? Do all versions of LuaTeX require pkg-config or cairo? I remember that I was able to use mingw/msys to compile LuaTeX, but that was quite some time ago. I wonder why it breaks now. Desperately, Patrick :)
I see, the version I use on Mac is 4358 and it doesn't have a directory called libs/cairo. But I am still curios if there is an easy way to compile luatex on mingw/msys. pkgconfig seems to be hard to install. Patrick
I try to build LuaTeX on windows / mingw/msys, but I fail with pkg-config:
checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking whether gcc and cc understand -c and -o together... yes checking for inline... inline checking for i686-pc-mingw32-pkg-config... no checking for pkg-config... no configure: error: pkg-config >= required but not found (http://pkgconfig.freede sktop.org/) make[1]: *** [cairo-build/Makefile] Error 1 make[1]: Leaving directory `/z/luatexw/LuaTeX/build/libs/cairo' make: *** [../../libs/cairo/cairo/cairo.h] Error 2 C:\msysgit\mingw\bin\strip.exe: 'build/texk/web2c/luatex.exe': No such file ls: build/texk/web2c/luatex.exe: No such file or directory
Can anyone help me? Do all versions of LuaTeX require pkg-config or cairo? I remember that I was able to use mingw/msys to compile LuaTeX, but that was quite some time ago. I wonder why it breaks now.
(still trying to compile on windows/mingw/msys) Now I tried a recent version before cairo integration. It fails with gcc -DHAVE_CONFIG_H -I. -I../../../source/texk/web2c -I./w2c -I/z/luatexw/LuaTe X/build/texk -I/z/luatexw/LuaTeX/source/texk -DNO_DEBUG -I/z/luatexw/LuaTeX/buil d/libs/zlib/include -I/z/luatexw/LuaTeX/build/libs/libpng/include -I/z/luatexw/L uaTeX/build/libs/poppler -I/z/luatexw/LuaTeX/build/libs/poppler/goo -I/z/luatexw /LuaTeX/build/libs/poppler/poppler -I/z/luatexw/LuaTeX/build/libs/obsdcompat -I/ z/luatexw/LuaTeX/source/libs/obsdcompat -I../../../source/texk/web2c/libmd5 -I.. /../../source/texk/web2c/luatexdir -I../../../source/texk/web2c/luatexdir/lua51 -DpdfTeX -I../../../source/texk/web2c/synctexdir -DSYNCTEX_ENGINE_H='<synctex-lu atex.h>' -Wall -Wunused -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -Wmissing-prototypes -Wmissing-declarations -g -O2 -MT libl uatex_a-lcallbacklib.o -MD -MP -MF .deps/libluatex_a-lcallbacklib.Tpo -c -o libl uatex_a-lcallbacklib.o `test -f 'luatexdir/lua/lcallbacklib.c' || echo '../../.. /source/texk/web2c/'`luatexdir/lua/lcallbacklib.c In file included from ../../../source/texk/web2c/luatexdir/lua/lcallbacklib.c:20 : ../../../source/texk/web2c/luatexdir/ptexlib.h:179:30: error: openbsd-compat.h: No such file or directory make: *** [libluatex_a-lcallbacklib.o] Error 1 C:\msysgit\mingw\bin\strip.exe: 'build/texk/web2c/luatex.exe': No such file ls: build/texk/web2c/luatex.exe: No such file or directory Any help appreciated! Patrick
Hi, I've used a "bad" commit. Now I chose another one, and I've got it to compile :)) Now for the next step: include the libxml2 into the binary..... Patrick
On Fri, Feb 15, 2013 at 12:57 PM, Patrick Gundlach
Hi,
I try to build LuaTeX on windows / mingw/msys, but I fail with pkg-config:
Hi Patrick, I wanted to send you a link to a recent discussion, but then realized that it was a private one, so I'm sending you the relevant citation: On Fri, Jan 4, 2013 at 1:07 PM, Peter Breitenlohner wrote:
On Wed, 2 Jan 2013, Taco Hoekwater wrote:
it is cairo's configure that, even though it does not really need pkg-config, still tests for its existence.
ouch, I didn't realize this because I do have pkg-config for linux-ix86, linux-x86_64, and Mingw32 (cross).
We certainly don't want to fiddle with cairo's fairly complex configure when we can expect new versions every now and then.
You can, however, provide a fake pkg-config->/bin/true somewhere in your PATH. This won't give you any CPP or LD flags but satisfies cairo.
I have just tested this with i386-pc-mingw32-pkg-config->/bin/true. In addition I had to use --with-fontconfig-{includes,libdir}=DIR but these are not needed for Mac OS X.
Regards Peter
Can anyone help me?
Install pkg-config or point the variable to /bin/true when configuring. (An alternative would be patching Cairo's configure scripts in TeX Live, but apparently that's not desired. Or you could file a bug report to Cairo, requesting not to fail at pkg-config check when there is no need for it.)
Do all versions of LuaTeX require pkg-config or cairo?
Only since 0.74, I believe. Mojca
On Fri, Feb 15, 2013 at 12:57:00PM +0100, Patrick Gundlach wrote:
Hi,
I try to build LuaTeX on windows / mingw/msys, but I fail with pkg-config:
checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking whether gcc and cc understand -c and -o together... yes checking for inline... inline checking for i686-pc-mingw32-pkg-config... no checking for pkg-config... no configure: error: pkg-config >= required but not found (http://pkgconfig.freede sktop.org/) make[1]: *** [cairo-build/Makefile] Error 1 make[1]: Leaving directory `/z/luatexw/LuaTeX/build/libs/cairo' make: *** [../../libs/cairo/cairo/cairo.h] Error 2 C:\msysgit\mingw\bin\strip.exe: 'build/texk/web2c/luatex.exe': No such file ls: build/texk/web2c/luatex.exe: No such file or directory
Can anyone help me? Do all versions of LuaTeX require pkg-config or cairo? I remember that I was able to use mingw/msys to compile LuaTeX, but that was quite some time ago. I wonder why it breaks now.
Create a i686-pc-mingw32-pkg-config script with something like: #!/bin/sh PKG_CONFIG_LIBDIR=/usr/i686-pc-mingw32/lib/pkgconfig \ PKG_CONFIG_PATH=/usr/i686-pc-mingw32/lib/pkgconfig pkg-config $* Assuming you already have pkg-config installed (and also check the mingw paths to match yours). I got this from a MingW for Linux tutorial somewhere, but I'm lazy to look it up again now. Regards, Khaled
participants (4)
-
Khaled Hosny
-
Mojca Miklavec
-
Patrick Gundlach
-
Paweł Jackowski