I'm maintainer of the Astade UML Tool Project http://astade.de.
For our project we have an Ubuntu repository, from where you can install
the tool: http://apt.astade.de.
Astade needs wxWidgets 2.8 ansi build
In the past I took the preecompiled debian packages from apt.wxwidgets.org
and copy them into the Astade repository at apt.astade.de
Now I want to add a "Karmic Koala" section to the Astade repository.
For that I need the wxWidgets 2.8 ansi debian package compiled for
"Karmic Koala".
Unfortunately there is none in apt.wxwidgets.org :-(
Do you have any ideas, where to get it?
I already tried, unsuccessful, to build it myself. Maybe I could manage this
if I spend some more time. But even than, I would prefer an "official"
version.
Thanks in advance.
P.S.: wxWidgets 2.8 is in the official Ubuntu repositories now. But
only the unicode build, as far as I know :-(
Do the packages for Jaunty work?
--
Robin Dunn
Software Craftsman
http://wxPython.org
I'm using Jaunty packages on Karmic and it works without problem.
Robin Dunn escribió:
--
========================
Carlos Rodriguez Llodrá
carlos....@gmail.com
"Just use the Jaunty packags" is the message? Ok I'll do that.
I'd expected some mystic build secret, not just "lets try wether the
Jaunty packages work". But it's fine for me.
Obviously I think to complicate ;-)
Thanks
Thomas
OK, I made the test. First I installed the whole package from "deb
http://apt.astade.de jaunty main" at my desktop PC which is a Jaunty
system. As expected, everything runs fine.
Next I installed a "Karmic Koala" in a "Sun virtual Box" virtual
machine, running on my Jaunty desktop. I added the Jaunty repository to
the Karmic system and installed the package. It runs not really bad. But
when I start "AstadeDraw" add an Actor and an Usecase and try to
associate the Actor to the Usecase, it is not working. Just no
connection cursor appeares. Remember: This works in Jaunty!
Actually it is possible, that it is because of the virtual machine?
But at this state of the test it looks, as if the Jaunty packages are
not running perfectly correct in Karmic.
What next? Test in a Jaunty virtual machine?
That'll take again some time.
--
TS> > I've tried it in a clean Karmic i386 install, and didn't work... tried
TS> > also after updating everything and still nothing :-(
TS> >
TS> > But, I've not had any trouble with other wx applications (audacity,
TS> > code::blocks), although they're not using exactly the same libraries
TS> > (unicode vs ansi).
TS>
TS> Which brings me back to the initial question:
TS> Is somebody able to build the "official" karmic debian packages?
I think your best bet would be to build them yourself using the
instructions in debian/README.HowToBuild. Normally it should go without
problems...
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
TS> but if you look at
TS> http://apt.wxwidgets.org/dists/jaunty-wx/main/binary-i386/ you see, that
TS> I need the two packages named:
TS>
TS> libwxbase2.8-0-ansi_2.8.10.1-0_i386.deb
TS> libwxgtk2.8-0-ansi_2.8.10.1-0_i386.deb
TS>
TS> Maybe you can tell me, how to get them?
You need to set WX_UNICODE to 0 in debian/rules.
TS> > You need to set WX_UNICODE to 0 in debian/rules.
TS>
TS> OK, things work much better, now.
TS> I build in "Karmic" now.
TS> It runs pretty far. than I get this error:
TS>
TS> cd wxPython \
TS> && python2.5-dbg ./setup.py
TS> build \
TS>
TS> WX_CONFIG='/home/thomas/wxBuild/wxwidgets2.8-2.8.10.1/objs_gtk_d/wx-config --no_rpath' \
TS> WXPORT=gtk2 \
TS> \
TS> FLAVOUR=dbg
TS> WARNING: WXWIN not set in environment. Assuming '..'
TS> Fatal Python error: Interpreter not initialized (version mismatch?)
TS> Aborted
TS>
TS>
TS> Maybe it has to do with the fact, that it explicitely uses python2.5 and
TS> "Karmic" per default installs python2.6 ?
This looks the likely cause of the problem, yes. I think wxPython should
work with 2.6 too. OTOH if you're not interested in wxPython you could just
skip building it altogether too.
TS> > This looks the likely cause of the problem, yes. I think wxPython should
TS> > work with 2.6 too. OTOH if you're not interested in wxPython you could just
TS> > skip building it altogether too.
TS>
TS> So, now I've managed to build the packages.
TS> I've placed them to the repository astade.homeip.net/apt
TS> (which is my experimental repository) and installed Astade in Karmic.
TS>
TS> Unfortunately there is still the bug.
TS> AstadeDraw is not running correct.
TS>
TS> What should I do now?
Unfortunately the description of the problem is so vague that I don't even
really know where to start... What exactly is not correct?
Also, does it have anything to do with packages at all? I.e. does it work
correctly if you forget about packaging and just use wxWidgets in the
"usual" way?
TS> Next I tried to run the same packages in Karmic. Same Astade binary,
TS> same wxPackages. It looks not so bad, at the first glance, but when
TS> running AstadeDraw there is an error.
TS>
TS> Error description: AstadeDraw has a window, where you can create nodes,
TS> by rightclick and select from a context menu. You might connect this
TS> nodes by rightclick a node and select e.g. "Associate to ..".
TS> moving the mouse to the other node, you get a "dotted line" and when you
TS> click at the second node, the connection is made (look attached
TS> picture). In Karmic you might create nodes, but when you try to connect
TS> them, you do not get the dotted line, and when you select the second
TS> node anyway, there is no connection.
I think this problem could be due to the change in GTK+ version. AFAIR
Karmic uses GTK+ 2.18 which has many changes compared to the previous
versions and one of them might have broken wxGTK drawing code. This is pure
guesswork, of course.
TS> Now the question: what to do next? First idea: debugging!
TS> but than I've to be able to build in karmic. Than I need the development
TS> packages?
You don't really need packages at all, you can just get wx sources from a
tarball or svn and build them with --enable-debug.
TS> Second idea: I make a tracing version of AstadeDraw which traces all
TS> function calls. I run this in Jaunty and in Karmic and compare the two
TS> traces. Than we have an idea, where the bug comes from. That'll take
TS> some time. If I've done that, I'll post the result :-(
This could be useful but I suspect that there won't be any difference
between the traces. This really does look like a problem with wxGTK
refresh/redrawing and latest GTK+. Unfortunately I don't know what could it
be exactly.
One proposal I do have is for you to try 2.9.0 or the latest svn source.
Your (ANSI-only) code should compile with 2.9 without any changes (or with
very few changes, please let us know if you need to change anything non
trivial and/or not mentioned in docs/changes.txt already) and the redraw
logic in wxGTK has been changed in this version. Maybe it helps with your
bug.
MG> Can anyone versed in wx's DnD give me a clue as to how to solve this?
Use your custom data object and initialize it with information about the
source/origin region it was dragged from, then check if it's the same as
the current one in your wxDropTarget::OnEnter().
TS> I made the two traces and they are definitely different! (Look at the
TS> two attached pictures)
[Please notice that sending 100KB attachments to the list is rather frowned
upon, please put them on your project web server and provide link to them
if possible]
TS> You can see, it is as expected! There is a useless MouseLeave event not
TS> long after creating the EdgePointer. Any idea, where this is coming
TS> from??
No, sorry, not really. But this should be relatively easy to debug as you
can always put a breakpoint at the location (in src/gtk/window.cpp) where
this event is generated and see where is it coming from...