How to Build Pidgin 3.0.0 for Windows on Ubuntu 14.04 amd64

rehs at gmx.de rehs at gmx.de
Mon Mar 16 08:49:43 EDT 2015


- Compile time error, see below

1. Install Ubuntu 14.04
2. Install Ubuntu updates
3. Install Mercurial
sudo apt-get install mercurial
4. Clone Pidgin sources
hg clone https://hg.pidgin.im/pidgin/main pidgin-main
5. Search MinGW32
sudo apt-get install apt-file 
apt-file update
apt-file search mingw32
6. Install MinGW32
sudo apt-get install binutils-mingw-w64-i686
sudo apt-get install binutils-mingw-w64-x86-64
sudo apt-get install g++-mingw-w64-i686 
sudo apt-get install g++-mingw-w64-x86-64
sudo apt-get install gdb-mingw-w64
sudo apt-get install gnat-mingw-w64-i686 
sudo apt-get install gnat-mingw-w64-x86-64 
sudo apt-get install gobjc-mingw-w64-i686 
sudo apt-get install gobjc-mingw-w64-x86-64
sudo apt-get install mingw-w64-i686-dev 
sudo apt-get install mingw-w64-tools 
sudo apt-get install mingw32 
sudo apt-get install ocaml-mingw-w64-i686 
sudo apt-get install ocaml-mingw-w64-x86-64 
7. Install build requirements
sudo apt-get build-dep pidgin
sudo apt-get install libwebkit2gtk-3.0-dev
sudo apt-get install libwebkitgtk-3.0-dev
sudo apt-get install libwebkitgtk-dev
sudo apt-get install libjson-glib-dev
8. Generate configure script
cd pidgin-main/
NOCONFIGURE=indeed ./autogen.sh
9. Run configure
./configure --host=i686-w64-mingw32 --with-win32-dirs=fhs
10. Compile
make
11. Error from compiler
make[4]: Entering directory `/home/rehs/pidgin-main/libpurple' 
  CC       buddyicon.lo 
In file included from win32/libc_interface.h:34:0, 
                 from win32/win32dep.h:33, 
                 from internal.h:134, 
                 from buddyicon.c:23: 
./glibcompat.h:164:0: warning: "g_stat" redefined [enabled by default] 
 #  define g_stat purple_g_stat 
 ^ 
In file included from internal.h:131:0, 
                 from buddyicon.c:23: 
/usr/include/glib-2.0/glib/gstdio.h:68:0: note: this is the location of the previous definition 
 #define g_stat    stat 
 ^ 
buddyicon.c: In function 'purple_buddy_icon_data_cache': 
buddyicon.c:168:3: error: too many arguments to function 'mkdir' 
   if (g_mkdir(dirname, S_IRUSR | S_IWUSR | S_IXUSR) < 0) 
   ^ 
In file included from /usr/share/mingw-w64/include/fcntl.h:8:0, 
                 from internal.h:92, 
                 from buddyicon.c:23: 
/usr/share/mingw-w64/include/io.h:267:15: note: declared here 
   int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005; 
               ^ 
buddyicon.c: In function 'read_icon_file': 
buddyicon.c:605:2: warning: passing argument 3 of 'g_file_get_contents' from incompatible pointer type [enabled by default] 
  if (!g_file_get_contents(path, (gchar **)data, len, &err)) 
  ^ 
In file included from /usr/include/glib-2.0/glib.h:48:0, 
                 from /usr/include/glib-2.0/gmodule.h:28, 
                 from internal.h:107, 
                 from buddyicon.c:23: 
/usr/include/glib-2.0/glib/gfileutils.h:85:10: note: expected 'gsize *' but argument is of type 'size_t *' 
 gboolean g_file_get_contents (const gchar  *filename, 
          ^ 
make[4]: *** [buddyicon.lo] Error 1 
make[4]: Leaving directory `/home/rehs/pidgin-main/libpurple' 
make[3]: *** [all-recursive] Error 1 
make[3]: Leaving directory `/home/rehs/pidgin-main/libpurple' 
make[2]: *** [all] Error 2 
make[2]: Leaving directory `/home/rehs/pidgin-main/libpurple' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/rehs/pidgin-main' 
make: *** [all] Error 2 



More information about the Devel mailing list