1 |
Hi, |
2 |
|
3 |
ich versuche gerade ein Programm von mir welches auf GTKmm, libglademm |
4 |
und gtkglextmm basiert nach Windows zu portieren. Nachdem ich |
5 |
stundenlang irgendwelche Makefiles modifiziert habe ging es dann |
6 |
endlich, aber mir gefällt das überhaupt nicht. Ich würde viel lieber |
7 |
meine Anwendung unter Gentoo mit xmingw kompilieren. Leider ist dazu |
8 |
nichts in Portage. Schon bei dem Versuch libiconv für xmingw zu |
9 |
installieren scheitere ich. Das ist die Meldung: |
10 |
|
11 |
harset.c -o localcharset.o >/dev/null 2>&1 |
12 |
/bin/sh ../libtool --mode=compile i386-mingw32msvc-gcc -I. -I. -I.. |
13 |
-I./.. -I../include -I/opt/xmingw/i386-mingw32msvc/include |
14 |
-DLIBDIR=\"/opt/xmingw/lib\" -DENABLE_RELOCATABLE=1 -DIN_LIBRARY |
15 |
-DINSTALLDIR=\"/opt/xmingw/lib\" -DNO_XMALLOC |
16 |
-Dset_relocation_prefix=libcharset_set_relocation_prefix |
17 |
-Drelocate=libcharset_relocate -DHAVE_CONFIG_H -c ./relocatable.c |
18 |
i386-mingw32msvc-gcc -I. -I. -I.. -I./.. -I../include |
19 |
-I/opt/xmingw/i386-mingw32msvc/include -DLIBDIR=\"/opt/xmingw/lib\" |
20 |
-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/xmingw/lib\" |
21 |
-DNO_XMALLOC -Dset_relocation_prefix=libcharset_set_relocation_prefix |
22 |
-Drelocate=libcharset_relocate -DHAVE_CONFIG_H -c ./relocatable.c |
23 |
-DDLL_EXPORT -DPIC -o .libs/relocatable.o ./relocatable.c:278: error: |
24 |
parse error before "WINAPI" ./relocatable.c:279: error: parse error |
25 |
before "module_handle" ./relocatable.c: In function `DllMain': |
26 |
./relocatable.c:281: error: `reserved' undeclared (first use in this |
27 |
function) ./relocatable.c:281: error: (Each undeclared identifier is |
28 |
reported only once ./relocatable.c:281: error: for each function it |
29 |
appears in.) ./relocatable.c:283: error: `event' undeclared (first use |
30 |
in this function) ./relocatable.c:283: error: `DLL_PROCESS_ATTACH' |
31 |
undeclared (first use in this function) ./relocatable.c:288: error: |
32 |
`module_handle' undeclared (first use in this function) |
33 |
./relocatable.c:290: error: `FALSE' undeclared (first use in this |
34 |
function) ./relocatable.c:299: error: `TRUE' undeclared (first use in |
35 |
this function) make[2]: *** [relocatable.lo] Error 1 |
36 |
make[2]: Leaving directory |
37 |
`/var/tmp/portage/xmingw-libiconv-1.9.1/work/libiconv-1.9.1/libcharset/ |
38 |
lib' make[1]: *** [all] Error 2 |
39 |
make[1]: Leaving directory |
40 |
`/var/tmp/portage/xmingw-libiconv-1.9.1/work/libiconv-1.9.1/libcharset' |
41 |
make: *** [lib/localcharset.h] Error 2 |
42 |
|
43 |
Das ist mein ebuild: |
44 |
|
45 |
DESCRIPTION="Win32 version of libiconv for xmingw cross-compiler" |
46 |
SRC_URI="http://ftp.gnu.org/pub/gnu/libiconv/libiconv-${PV}.tar.gz" |
47 |
HOMEPAGE="http://www.gnu.org/software/libiconv/" |
48 |
LICENSE="LGPL" |
49 |
SLOT="0" |
50 |
KEYWORDS="~x86" |
51 |
IUSE="" |
52 |
DEPEND=">=dev-util/xmingw-runtime-3.2 |
53 |
dev-util/xmingw-w32api |
54 |
dev-util/xmingw-gcc" |
55 |
S=${WORKDIR}/libiconv-${PV} |
56 |
|
57 |
|
58 |
src_compile() { |
59 |
export PATH="/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin:$PATH" |
60 |
export CC="i386-mingw32msvc-gcc" |
61 |
export CXX="i386-mingw32msvc-g++" |
62 |
|
63 |
unset CFLAGS |
64 |
unset CPPFLAGS |
65 |
unset CXXFLAGS |
66 |
unset LDFLAGS |
67 |
|
68 |
export CFLAGS="-I/opt/xmingw/i386-mingw32msvc/include" |
69 |
export CXXFLAGS="-I/opt/xmingw/i386-mingw32msvc/include" |
70 |
|
71 |
./configure \ |
72 |
--prefix=/opt/xmingw \ |
73 |
--host=i386-mingw32msvc \ |
74 |
--target=i386-mingw32msvc |
75 |
emake || die "make failed" |
76 |
} |
77 |
|
78 |
src_install() { |
79 |
cd ${WORKDIR}/libiconv-${PV} |
80 |
make prefix=${D}/opt/xmingw install || die "install failed" |
81 |
|
82 |
Hat vielleicht einer auch schon mal versucht GTK und co. für xmingw zu |
83 |
bauen und nur die Pakete nicht veröffentlicht? Irgendwie hab ich kaum |
84 |
Hoffnung, dass mir jemand bei diesem speziellen Problem helfen kann, |
85 |
aber man soll die Hoffnung nicht aufgeben... |
86 |
|
87 |
Gruß |
88 |
Andreas |
89 |
|
90 |
-- |
91 |
gentoo-user-de@g.o mailing list |