hi,
using MSYS2 on Win10 I can easily generate the gerbv native app.
Now I'm trying to generate from my Debian 10 to Windows using MXE [1]

It work till link stage, where I got 'mmap' and 'munmap' undefined, that it is used in 'gerb_file.c'

As seems HAVE_SYS_MMAN_H is defined for Windows host (and I think shouldn't), as a dirty work around I manually undefined HAVE_SYS_MMAN_H in 'config.h' and so I can generate the right binary that work in Wine and real Win. This happen for 2.7.0 release and current git sources.

Some other GTK app I tried work in this cross generation with MXE, but them do not use configure but use simple Makefiles I can adapt as suggested on MXE website.

I'm not very good in autotools so I can't fix the configure.
Any hints?

thank you,
Valerio


[1] https://mxe.cc/
My steps: download and make current MXE for i686-w64-mingw32.static
$ export MXE_DIR=/opt/mxe
$ export PATH=$MXE_DIR/usr/bin:$PATH
$ export PKG_CONFIG_PATH_i686_w64_mingw32_static="$MXE_DIR/usr/i686-w64-mingw32.static/lib/pkgconfig"
$ export PKG_CONFIG=$MXE_DIR/usr/bin/i686-w64-mingw32.static-pkg-config
$ git clone git://git.geda-project.org/gerbv.git
$ cd gerbv
$ autogen.sh
$ ./configure --host=i686-w64-mingw32.static
$ make

--
Valerio


_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to