mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Add mono package


From: Weber Li
Subject: Re: [Mingw-cross-env-list] Add mono package
Date: Fri, 27 Mar 2015 10:21:23 +1300

Hi Nagaev,

this is my updated script:

PKG             := mono
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 3.12.0
$(PKG)_CHECKSUM := cec83efd13ffc1e212c632395a5aac75772a09e7
$(PKG)_SUBDIR   := mono-$($(PKG)_VERSION)
$(PKG)_FILE     := mono-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL      := https://download.mono-project.com/sources/mono/$($(PKG)_FILE)
$(PKG)_DEPS     := gcc glib zlib libpng tiff jpeg giflib freetype fontconfig expat gettext

define $(PKG)_UPDATE
    $(WGET) -q -O- 'http://git.gnome.org/browse/gtk+/refs/tags' | \
    grep '<a href="" | \
    $(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \
    grep -v '^2\.9' | \
    grep '^2\.' | \
    head -1
endef

define $(PKG)_BUILD
    cd '$(1)' && ./build-mingw32.sh -d '$(PREFIX)/$(TARGET)' -m $(TARGET) -p '$(PREFIX)/$(TARGET)' 
endef



It shows weird errors. 
mark.c:428:18: error: 'struct _CONTEXT' has no member named 'Esp'

I fixed it by change all Esp, Ebp and Eip to Rsp, Rbp and Rip in mark.c.
And then it shows another error:
/var/folders/z7/dhdlqhb550s7ppqbb4mfxl1h0000gn/T//cczrXYqZ.s:1004: Error: incorrect register `%rax' used with `l' suffix
/var/folders/z7/dhdlqhb550s7ppqbb4mfxl1h0000gn/T//cczrXYqZ.s:1012: Error: incorrect register `%rax' used with `l' suffix

Now I really don't have a clue now. I have done some searching about it, they all saying that its because of different bits of the OS (32bit 64bit).
If anyone has a way to fix it, please inform me, :)


Thanks
Weber


On Fri, Mar 27, 2015 at 7:29 AM, Nagaev Boris <address@hidden> wrote:
On Fri, Mar 20, 2015 at 4:46 AM, Weber Li
<address@hidden> wrote:
> Hi guys,
>
>     I want to add mono package into mxe, but I failed. Please have a look at
> my make file and tell me where did I do wrong.
>
> # This file is part of MXE.
> # See index.html for further information.
> https://github.com/mono/gtk-sharp/archive/2.12.25.tar.gz
>
> PKG             := mono
> $(PKG)_IGNORE   :=
> $(PKG)_VERSION  := 3.12.0
> $(PKG)_CHECKSUM := cec83efd13ffc1e212c632395a5aac75772a09e7
> $(PKG)_SUBDIR   := mono-$($(PKG)_VERSION)
> $(PKG)_FILE     := mono-$($(PKG)_VERSION).tar.bz2
> $(PKG)_URL      :=
> https://download.mono-project.com/sources/mono/$($(PKG)_FILE)
> $(PKG)_DEPS     := gcc gettext sqlite lapack glib libiconv
>
> define $(PKG)_UPDATE
>     $(WGET) -q -O- 'http://git.gnome.org/browse/gtk+/refs/tags' | \
>     grep '<a href="" | \
>     $(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \
>     grep -v '^2\.9' | \
>     grep '^2\.' | \
>     head -1
> endef
>
> define $(PKG)_BUILD
>     cd '$(1)' && ./configure \
>         --host='$(TARGET)' \
>         --build="`config.guess`" \
>         --disable-shared \
>         --prefix='$(PREFIX)/$(TARGET)' \
>         --enable-explicit-deps \
>         --disable-glibtest \
>         --disable-modules \
>         --disable-cups \
>         --disable-test-print-backend \
>         --disable-gtk-doc \
>         --disable-man \
>         --with-included-immodules \
>         --without-x
>     export PATH=$PATH:$(1)/bin
>     make
>     make install
> endef
>

Hello,

1. I tried your .mk file and it looks like make command is applied to
mxe directory recursively instead of being applied to mono directory
[1].

2. I've looked through [2] and changed dependencies to the following:
$(PKG)_DEPS     := gcc glib zlib libpng tiff jpeg giflib \
        freetype fontconfig expat gettext

Have you tried running script build-mingw32.sh ?

---

[1] https://gist.github.com/starius/e7285f166290d4a7d5ab#file-log
[2] http://www.mono-project.com/docs/compiling-mono/windows/cross-compiling-mono-for-windows/#list-of-packages-needed-for-cross-compiling


Best regards,
Boris Nagaev


reply via email to

[Prev in Thread] Current Thread [Next in Thread]