public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user-de] gtk für xmingw?
@ 2005-08-14 14:53 Andreas Volz
  0 siblings, 0 replies; only message in thread
From: Andreas Volz @ 2005-08-14 14:53 UTC (permalink / raw
  To: gentoo-user-de

Hi,

ich versuche gerade ein Programm von mir welches auf GTKmm, libglademm
und gtkglextmm basiert nach Windows zu portieren. Nachdem ich
stundenlang irgendwelche Makefiles modifiziert habe ging es dann
endlich, aber mir gefällt das überhaupt nicht. Ich würde viel lieber
meine Anwendung unter Gentoo mit xmingw kompilieren. Leider ist dazu
nichts in Portage. Schon bei dem Versuch libiconv für xmingw zu
installieren scheitere ich. Das ist die Meldung:

harset.c -o localcharset.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile i386-mingw32msvc-gcc -I. -I. -I..
-I./.. -I../include -I/opt/xmingw/i386-mingw32msvc/include 
-DLIBDIR=\"/opt/xmingw/lib\" -DENABLE_RELOCATABLE=1 -DIN_LIBRARY
-DINSTALLDIR=\"/opt/xmingw/lib\" -DNO_XMALLOC
-Dset_relocation_prefix=libcharset_set_relocation_prefix
-Drelocate=libcharset_relocate -DHAVE_CONFIG_H -c ./relocatable.c
i386-mingw32msvc-gcc -I. -I. -I.. -I./.. -I../include
-I/opt/xmingw/i386-mingw32msvc/include -DLIBDIR=\"/opt/xmingw/lib\"
-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/xmingw/lib\"
-DNO_XMALLOC -Dset_relocation_prefix=libcharset_set_relocation_prefix
-Drelocate=libcharset_relocate -DHAVE_CONFIG_H -c ./relocatable.c 
-DDLL_EXPORT -DPIC -o .libs/relocatable.o ./relocatable.c:278: error:
parse error before "WINAPI" ./relocatable.c:279: error: parse error
before "module_handle" ./relocatable.c: In function `DllMain':
./relocatable.c:281: error: `reserved' undeclared (first use in this
function) ./relocatable.c:281: error: (Each undeclared identifier is
reported only once ./relocatable.c:281: error: for each function it
appears in.) ./relocatable.c:283: error: `event' undeclared (first use
in this function) ./relocatable.c:283: error: `DLL_PROCESS_ATTACH'
undeclared (first use in this function) ./relocatable.c:288: error:
`module_handle' undeclared (first use in this function)
./relocatable.c:290: error: `FALSE' undeclared (first use in this
function) ./relocatable.c:299: error: `TRUE' undeclared (first use in
this function) make[2]: *** [relocatable.lo] Error 1
make[2]: Leaving directory
`/var/tmp/portage/xmingw-libiconv-1.9.1/work/libiconv-1.9.1/libcharset/
lib' make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/xmingw-libiconv-1.9.1/work/libiconv-1.9.1/libcharset'
make: *** [lib/localcharset.h] Error 2 

Das ist mein ebuild:

DESCRIPTION="Win32 version of libiconv for xmingw cross-compiler"
SRC_URI="http://ftp.gnu.org/pub/gnu/libiconv/libiconv-${PV}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/libiconv/"
LICENSE="LGPL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=dev-util/xmingw-runtime-3.2
    dev-util/xmingw-w32api
    dev-util/xmingw-gcc"
S=${WORKDIR}/libiconv-${PV}


src_compile() {
    export PATH="/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin:$PATH"
    export CC="i386-mingw32msvc-gcc"
    export CXX="i386-mingw32msvc-g++"

    unset CFLAGS
    unset CPPFLAGS
    unset CXXFLAGS
    unset LDFLAGS

    export CFLAGS="-I/opt/xmingw/i386-mingw32msvc/include"
    export CXXFLAGS="-I/opt/xmingw/i386-mingw32msvc/include"

    ./configure \
        --prefix=/opt/xmingw \
        --host=i386-mingw32msvc \
        --target=i386-mingw32msvc 
    emake || die "make failed"
}

src_install() {
    cd ${WORKDIR}/libiconv-${PV}
    make prefix=${D}/opt/xmingw install || die "install failed"

Hat vielleicht einer auch schon mal versucht GTK und co. für xmingw zu
bauen und nur die Pakete nicht veröffentlicht? Irgendwie hab ich kaum
Hoffnung, dass mir jemand bei diesem speziellen Problem helfen kann,
aber man soll die Hoffnung nicht aufgeben...

Gruß
Andreas

-- 
gentoo-user-de@gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-14 14:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-14 14:53 [gentoo-user-de] gtk für xmingw? Andreas Volz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox