View previous topic :: View next topic |
Author |
Message |
andreas99 n00b

Joined: 08 May 2004 Posts: 3
|
Posted: Fri Mar 21, 2008 7:54 am Post subject: Compile mingw32 libs with emerge |
|
|
Hello,
I've build a mingw32 compiler in gentoo. Now I could build win32 binaries. But many libraries in win32 format are missing for real world application. For example boost. Is it possible to compile boost in portage for mingw32? Or do I have to compile all libs beside portage?
I've seen here[1] a tutorial with ARCH="arm". But it seems there's no ARCH="mingw32". With xmingw before it was easier to get some basic mingw32 packages compiled and up-to-date. Is there a similar way with crossdev?
[1] http://gentoo-wiki.com/HOWTO_Cross_Compile
regards
Andreas |
|
Back to top |
|
 |
andreas99 n00b

Joined: 08 May 2004 Posts: 3
|
Posted: Fri Mar 21, 2008 9:35 am Post subject: |
|
|
Now I found two tutorials:
http://gentoo-wiki.com/HOWTO_MinGW
http://www.gentoo.org/proj/en/base/embedded/cross-development.xml
I made it exact as explained. Now I like to xmerge glibc:
> xmerge -vp glibc
Calculating dependencies... done!
[ebuild N ] sys-libs/timezone-data-2007k to /usr/i686-mingw32/ USE="-elibc_FreeBSD -elibc_glibc -nls" 0 kB
[ebuild N ] sys-libs/glibc-2.6.1 to /usr/i686-mingw32/ USE="-debug -gd -glibc-omitfp -hardened -multilib -nls -profile -selinux -vanilla" 16,007 kB
But then it dies with:
>>> Compiling source in /var/tmp/portage/sys-libs/timezone-data-2007k/work ...
sed \
-e 's|AWK=[^}]*|AWK=awk|g' \
-e 's|TZDIR=[^}]*|TZDIR=/usr/share/zoneinfo|' \
<tzselect.ksh >tzselect
chmod +x tzselect
i686-mingw32-gcc -DTZDIR=\"/usr/share/zoneinfo\" -O2 -pipe -std=gnu99 -c -o zic.o zic.c
In file included from zic.c:8:
private.h:97:58: sys/wait.h: No such file or directory
zic.c: In function `dolink':
zic.c:662: warning: implicit declaration of function `symlink'
zic.c: In function `mkdirs':
zic.c:2671: error: `S_IRGRP' undeclared (first use in this function)
zic.c:2671: error: (Each undeclared identifier is reported only once
zic.c:2671: error: for each function it appears in.)
zic.c:2671: error: `S_IXGRP' undeclared (first use in this function)
zic.c:2671: error: `S_IROTH' undeclared (first use in this function)
zic.c:2671: error: `S_IXOTH' undeclared (first use in this function)
zic.c:2671: error: too many arguments to function `mkdir'
make: *** [zic.o] Error 1
Ok, where is sys/wait.h
> epm -qf /usr/include/sys/wait.h
glibc-2.6.1
I need timezone-data to compile glibc and I need glibs to compile timezone-data on mingw32.
Maybe I installed the toolchain not complete. Any ideas or hints?
regards
Andreas |
|
Back to top |
|
 |
|