This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: configtool in Ubuntu
- From: "simon dot kallweit at intefo dot ch" <simon dot kallweit at intefo dot ch>
- To: Rini van Zetten <rini at arvoo dot nl>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 09 Sep 2008 11:18:52 +0200
- Subject: Re: [ECOS] configtool in Ubuntu
- References: <48C63C81.20207@arvoo.nl>
Hi Rini
I tried to do the same, just a few days ago. I used the old debian
packaged version before, but there are some bugs within this version, so
I tried to compile a new one on Ubuntu 8.04. With some ugly hacks I got
it to compile, but somehow the final application crashes for some
actions. I didn't investigate further, as the tool is currently usable
for what I need it for. If I have some free time in the future, I might
think about a new "simpler" implementation using Tcl/Tk directly,
avoiding all the platform dependent stuff. But for now, I send you the
very crappy patch :) Use wxWidgets-2.6.4 to compile. Apply the patch,
export ECOSDIR and WXDIR env variables and build using
make -f ${ECOSDIR}/host/tools/configtool/standalone/wxwin/Makefile
WXDIR=${WXDIR} ECOSDIR=${ECOSDIR} LEVEL=release ecc wx ct
Hope that helps. If you find time to debug the said behavior, feel free
to do so.
Best regards,
Simon
Rini van Zetten wrote:
Hello,
Did anybody successfully build the configtool in Ubuntu 8.04 (hardy).
If so, can you send me the binary or some tips how to do.
Regards,
Rini
diff -Naur wxwin.orig/mainwin.cpp wxwin/mainwin.cpp
--- wxwin.orig/mainwin.cpp 2008-09-05 15:05:06.000000000 +0200
+++ wxwin/mainwin.cpp 2008-09-05 10:55:35.000000000 +0200
@@ -579,9 +579,9 @@
"Copyright (c) Red Hat, Inc. 1998-2002\n"
"Copyright (c) John Dallaway 2003\n"
"Copyright (c) eCosCentric Limited 2004-2008\n\n"
- "Using %s %s and Tcl %d.%d.%d",
+ "Using wxWidgets %s and Tcl %d.%d.%d",
ecCONFIGURATION_TOOL_VERSION, __DATE__, __TIME__,
- wxPlatformInfo::Get().GetPortIdName().c_str(), wxVERSION_NUM_DOT_STRING,
+ wxVERSION_NUM_DOT_STRING,
iTclVerMajor, iTclVerMinor, iTclVerPatchLevel);
wxMessageBox(msg, _("About eCos Configuration Tool"), wxICON_INFORMATION | wxOK);
}
@@ -804,7 +804,7 @@
wxSizeEvent sizeEvent(GetSize(), GetId());
GetEventHandler()->ProcessEvent(sizeEvent);
#ifdef __WXGTK__
- GtkOnSize();
+// GtkOnSize();
#endif
}
diff -Naur wxwin.orig/Makefile wxwin/Makefile
--- wxwin.orig/Makefile 2008-09-05 15:05:06.000000000 +0200
+++ wxwin/Makefile 2008-09-05 15:02:47.000000000 +0200
@@ -138,6 +138,7 @@
INCLUDEPREFIX=--prefix=$(WXBUILDDIR)
LIBPREFIX=--prefix=$(WXBUILDDIR)
EXTRACPPFLAGS=\
+ -I/usr/include/tcl8.4\
-I$(WXDIR)/include\
-I$(ECOSDIR)/host/libcdl\
-I$(ECOSDIR)/host/infra\
@@ -401,4 +402,4 @@
help:
- @echo "Targets: full, ecc, wx, ct, cleanall, cleanct, cleanwx, installbinary, installtarball"
\ No newline at end of file
+ @echo "Targets: full, ecc, wx, ct, cleanall, cleanct, cleanwx, installbinary, installtarball"
diff -Naur wxwin.orig/msgdlgex.cpp wxwin/msgdlgex.cpp
--- wxwin.orig/msgdlgex.cpp 2008-09-05 15:05:06.000000000 +0200
+++ wxwin/msgdlgex.cpp 2008-09-05 14:44:02.000000000 +0200
@@ -73,8 +73,9 @@
// 1) icon
if (style & wxICON_MASK)
{
- wxStaticBitmap *icon = new wxStaticBitmap(
- this, -1, wxTheApp->GetStdIcon((int)(style & wxICON_MASK)));
+// wxStaticBitmap *icon = new wxStaticBitmap(
+// this, -1, wxTheApp->GetStdIcon((int)(style & wxICON_MASK)));
+ wxStaticBitmap *icon = new wxStaticBitmap();
icon_text->Add( icon, 0, wxCENTER );
}
diff -Naur wxwin.orig/splittree.cpp wxwin/splittree.cpp
--- wxwin.orig/splittree.cpp 2008-09-05 15:05:06.000000000 +0200
+++ wxwin/splittree.cpp 2008-09-05 14:22:30.000000000 +0200
@@ -54,6 +54,8 @@
#include "splittree.h"
#include <math.h>
+#define ecScrolledWindow wxScrolledWindow
+
/*
* wxRemotelyScrolledTreeCtrl
*/
@@ -522,6 +524,10 @@
{
}
+wxThinSplitterWindow::~wxThinSplitterWindow()
+{
+}
+
void wxThinSplitterWindow::SizeWindows()
{
// The client size may have changed inbetween
diff -Naur wxwin.orig/splittree.h wxwin/splittree.h
--- wxwin.orig/splittree.h 2008-09-05 15:05:07.000000000 +0200
+++ wxwin/splittree.h 2008-09-05 15:04:21.000000000 +0200
@@ -165,7 +165,6 @@
DECLARE_EVENT_TABLE()
};
-
/*
* wxThinSplitterWindow
*
@@ -183,6 +182,8 @@
const wxSize& sz = wxDefaultSize,
long style = wxSP_3D | wxCLIP_CHILDREN);
+ ~wxThinSplitterWindow();
+
//// Overrides
void SizeWindows();
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss