public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
From: Andreas Volz <lists@brachttal.net>
To: gentoo-user-de@lists.gentoo.org
Subject: [gentoo-user-de] gtk für xmingw?
Date: Sun, 14 Aug 2005 16:53:21 +0200	[thread overview]
Message-ID: <20050814165321.6613605a@frodo.mittelerde> (raw)

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



                 reply	other threads:[~2005-08-14 14:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050814165321.6613605a@frodo.mittelerde \
    --to=lists@brachttal.net \
    --cc=gentoo-user-de@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox