Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on OSX #1281

Closed
aquiles2k opened this issue Apr 5, 2016 · 2 comments · Fixed by #1283
Closed

Building on OSX #1281

aquiles2k opened this issue Apr 5, 2016 · 2 comments · Fixed by #1283

Comments

@aquiles2k
Copy link
Contributor

Hi,
i recently tried to build a fresh mxe with gcc on Mac OSX 10.11.3 (El Capitan) with MacPorts which failed at two points.

According to the index.html on mxe.cc i installed the following ports:

sudo port install \
    autoconf automake bison coreutils flex gettext \
    gdk-pixbuf2 glib2 gsed intltool libffi libtool \
    openssl p5-xml-parser p7zip scons wget xz

The first error was:

Failed to build package mxe-conf for target x86_64-apple-darwin15.3.0!
------------------------------------------------------------
checking for autoconf... /opt/local/bin/autoconf
checking for automake... /opt/local/bin/automake
checking for libtool... /usr/bin/libtool
./configure: line 1787: syntax error near unexpected token `0.16'
./configure: line 1787: `PKG_PROG_PKG_CONFIG(0.16)'
make[1]: *** [build-only-mxe-conf_x86_64-apple-darwin15.3.0] Error 2
real    0m7.433s
user    0m5.266s
sys 0m0.579s
------------------------------------------------------------

I fixed that by also installing the pkgconfig port

After that i got:

Failed to build package glib for target i686-w64-mingw32.shared!
------------------------------------------------------------
m4macros/glib-gettext.m4:39: error: m4_copy: won't overwrite defined macro: glib_DEFUN
m4macros/glib-gettext.m4:39: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: /opt/local/bin/aclocal failed with exit status: 1
make[1]: *** [build-only-glib_i686-w64-mingw32.shared] Error 1
real    0m11.390s
user    0m6.619s
sys 0m0.977s
------------------------------------------------------------

This seems to be a issue to other on MLs as well and most say to delete the glib-gettext.m4. I fixed it by patching the file to use m4_copy_force instead of m4_copy on both occurences on line 39 and 40.

starius added a commit to LuaAndC/mxe that referenced this issue Apr 6, 2016
starius added a commit to LuaAndC/mxe that referenced this issue Apr 6, 2016
@starius starius mentioned this issue Apr 6, 2016
@starius
Copy link
Member

starius commented Apr 6, 2016

I have opened a pull request fixing both problems: #1283
Does it work for you?

@pavelvat
Copy link
Contributor

pavelvat commented Apr 7, 2016

The same problem for Linux:
http://pastebin.com/70tAVcdY

Does it work for you?

Fixed in #1283 for Linux:
https://gist.github.com/pavelvat/3c17c638b0bf2d8739cb5b9bbcdc2a4a

starius added a commit to LuaAndC/mxe that referenced this issue Apr 9, 2016
starius added a commit to LuaAndC/mxe that referenced this issue Apr 9, 2016
ghost pushed a commit to CoinBlack/mxe that referenced this issue Mar 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants