compiling wx.NET Error message

Kevin Gordon <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
PLEASE ADVISE ME REGARDING THE ERROR MESSAGE AT THE BOTTOM OF THE PAGE:


THIS IS THE GENTOO modified emerge file (which compiles ok):


# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-2.4.2.ebuild,v 1.9 
2004/02/17 21:52:41 agriffis Exp $

DESCRIPTION="GTK+ version of wxWindows, a cross-platform C++ GUI toolkit."
SRC_URI="mirror://sourceforge/wxwindows/${P}.tar.bz2"
HOMEPAGE="http://www.wxwindows.org/"

LICENSE="wxWinLL-3"
SLOT="0"
KEYWORDS="~x86 ppc ~sparc alpha amd64 ia64"
IUSE="nls odbc opengl gtk2 unicode debug"

RDEPEND="virtual/x11
	sys-libs/zlib
	media-libs/libpng
	media-libs/jpeg
	media-libs/tiff
	!unicode? ( odbc? ( dev-db/unixODBC ) )
	opengl? ( virtual/opengl )
	gtk2? ( >=x11-libs/gtk+-2.0 >=dev-libs/glib-2.0 )
	!gtk2? ( =x11-libs/gtk+-1.2* =dev-libs/glib-1.2* )"

DEPEND="${RDEPEND}
	gtk2? ( dev-util/pkgconfig )"

# Note 1: Gettext is not runtime dependency even if nls? because wxWindows
#         has its own implementation of it
# Note 2: We disable unicode support because otherwise it breaks with
#         some poorly implemented wxWindows apps like xmule and lmule.
# Note 3: PCX support is enabled if the correct libraries are detected.
#         There is no USE flag for this.

src_unpack() {
	unpack ${A}
	# fix xml contrib makefile problems
	# EPATCH_OPTS="-d ${S}" epatch ${FILESDIR}/${PN}-2.4.1-contrib.patch
	# disable contrib/src/animate
	# EPATCH_OPTS="-d ${S}/contrib/src" epatch 
${FILESDIR}/${PN}-2.4.2-contrib_animate.patch
	# use amd64 && EPATCH_OPTS="-d ${S}" epatch 
${FILESDIR}/${PN}-2.4.2-cleanup.patch
}

src_compile() {
	local myconf

	export LANG='C'

	myconf="${myconf} `use_with opengl`"
	myconf="${myconf} --with-gtk"
#	myconf="${myconf} `use_enable debug`"                      recommended in 
email for wx.NET

	# here we disable unicode support even thought gtk2 supports it
	# because too many apps just don't follow the wxWindows guidelines
	# for unicode support.
	#
	# http://www.wxwindows.org/manuals/2.4.0/wx458.htm#unicode
	#
	# bug #20116 - [email protected] (07 May 2003)

	use gtk2 && myconf="${myconf} --enable-gtk2"
	# only allow unicode if using gtk2
	[ -n "`use gtk2`" -a -n "`use unicode`" ] && myconf="${myconf} 
--enable-unicode"
	# only enable odbc if unicode is not enabled.
	[ -n "`use gtk2`" -a  -n "`use unicode`" ] || myconf="${myconf} `use_with 
odbc`"

	econf ${myconf}
	emake || die "make failed"

	cd ${S}/contrib/src
	emake || die "make contrib failed"
}

src_install() {
	einstall || die "install failed"
	dodoc *.txt

	cd ${S}/contrib/src
	einstall || die "install contrib failed"
}
----------------------------------------------------------

HERE IS MY ATTEMPT TO COMPILE wx.NET:

linuxpro wxNET # tar xvpzf wx.NET-0.3.tar.gz

linuxpro wxNET # cd wx.NET-0.3
linuxpro wx.NET-0.3 # cd wx.NET
linuxpro wx.NET # premake --dotnet mono --target gnu --with-shared 
--enable-xrc --enable-stc
Generating GNU makefiles:
...wx-c
...wx.NET
linuxpro wx.NET # make
==== Building wx-c ====
app.cxx
bitmap.cxx
bitmapbutton.cxx
boxsizer.cxx
brush.cxx
button.cxx
caret.cxx
checkbox.cxx
choice.cxx
choicedialog.cxx
colour.cxx
commandevent.cxx
control.cxx
cursor.cxx
dataformat.cxx
dataobject.cxx
dc.cxx
dialog.cxx
dnd.cxx
event.cxx
evthandler.cxx
flexgridsizer.cxx
font.cxx
font.cxx: In function `wxNativeFontInfo* wxFont_GetNativeFontInfo(wxFont*)':
font.cxx:115: error: invalid conversion from `const wxNativeFontInfo*' to `
   wxNativeFontInfo*'
make[1]: *** [obj/font.o] Error 1
make: *** [wx-c] Error 2

--------------------------------------------------------------

Any help will be much appreciated

Kevin Gordon



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.