Building glib on MinGW

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Building glib on MinGW

Anton Shepelev
Hello, all

When building Glib in MinGW I get these errors:

  /bin/sh: dumpbin.exe: command not found

  Digital Mars Librarian Version 8.02n
  Copyright (C) Digital Mars 2000-2007 All Rights Reserved
  http://www.digitalmars.com/ctg/lib.html

  Error: unrecognized switch '-machine:X86'

dumpbin.exe  is  a proprietary Microsoft tool.  Must
Glib depend on it?

I don't know what lib.exe is, but it may also  be  a
Microsoft tool:

https://msdn.microsoft.com/en-us/library/0xb6w1f8.aspx

Can I build Glib in MinGW without these tools?

--
()  ascii ribbon campaign - against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]
_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: Building glib on MinGW

Nirbheek Chauhan
On Mon, Apr 10, 2017 at 12:12 AM, Anton Shepelev <[hidden email]> wrote:
> I don't know what lib.exe is, but it may also  be  a
> Microsoft tool:
>
> https://msdn.microsoft.com/en-us/library/0xb6w1f8.aspx
>
> Can I build Glib in MinGW without these tools?
>

lib.exe is probably used for creating MSVC-compatible import
libraries. You can't really use dlltool for that because of a binutils
bug: https://sourceware.org/bugzilla/show_bug.cgi?id=12633

You might be able to replace dumpbin with objdump. Try it out and see
if it can be done?

Cheers,
Nirbheek
_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: Building glib on MinGW

Anton Shepelev
In reply to this post by Anton Shepelev
I wrote:

> When building Glib in MinGW I get these errors:
>
>   /bin/sh: dumpbin.exe: command not found
>
>   Digital Mars Librarian Version 8.02n
>   Copyright (C) Digital Mars 2000-2007 All Rights Reserved
>   http://www.digitalmars.com/ctg/lib.html
>
>   Error: unrecognized switch '-machine:X86'
>
> dumpbin.exe is a proprietary Microsoft tool.  Must
> Glib depend on it?

I have mustered all my patience and installed  these
tools  from  MS  Visual  Studio 2010 express.  Now I
have this error while building:

  ginetaddress.c: In function 'inet_ntop':
  ginetaddress.c:432:26: warning: comparison between pointer and integer
     if (ws2funcs.pInetNtop != NULL)
                            ^
  ginetaddress.c:433:12: error: called object is not a function or function pointer
       return ws2funcs.pInetNtop (family, addr, addr_str, size);
              ^
  ginetaddress.c: In function 'inet_pton':
  ginetaddress.c:423:1: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^

This is Glib 2.52.1.

--
()  ascii ribbon campaign - against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]
_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list