I'm on an x86 FC4 machine. I was able to build and install frysk from the cvs sources, but I get the following error when I try to run it. $ ../i/bin/frysk 23-Sep-05 9:55:32 AM frysk.gui.FryskGui mainGui SEVERE: procpop.glade XML is badly formed Any ideas?
(In reply to comment #0) > Any ideas? I think there are two problems. 1. I used a relative path to run configure, so you end up with a relative path for srcdir in Config.java. The Makefile should turn this into an absolute path before creating Config.java. 2. FryskGui seems to depend on the LibGlade contructor throwing a FileNotFoundException if the glade file doesn't exist. This isn't working for me. I had to add the following two lines to make it work: --- frysk/gui/FryskGui.java 22 Sep 2005 20:30:56 -0000 1.15 +++ frysk/gui/FryskGui.java 23 Sep 2005 18:46:56 -0000 @@ -101,6 +101,8 @@ String searchPath = new String(); for (int i = 0; i < glade_dirs.length; i++) { try {// command line glade_dir + if (! new File(glade_dirs[i] + GLADE_FILE).exists()) + throw new FileNotFoundException(glade_dirs[i] + GLADE_FILE); glade = new LibGlade(glade_dirs[i] + GLADE_FILE, this); } catch (FileNotFoundException missingFile) { searchPath += glade_dirs[i] + "\n";
I'll add the explicit throws declaration back in there (it was there at one point, it may have gotten bumped when we shuffled this around this week). I'm not sure on the configure stuff as that is not really my strongest area, so I'll leave this pr open in the meantime until someone looks at that.
Since frysk.bin.frysk is intended to run from the installed tree it will only search installed directories. On the other hand frysk.gui.FryskGui is intended to run from the build tree, so includes many paths (the install tree not being one of them :-). Relative vs absolute SRCDIR is obviously an issue - if SRCDIR were absolute the relocatable relative path camp would instead be complaining, sigh - in an attempt to keep everyone happy it now searches both [relative] SRCDIR and ABS_SRCDIR :-) Index: frysk-core/common/ChangeLog 2005-09-30 Andrew Cagney <cagney@redhat.com> * Makefile.rules (.javain.java): Substitue abs_builddir, abs_srcdir, bindir, libdir, and libexecdir. Index: frysk-core/frysk/ChangeLog 2005-09-30 Andrew Cagney <cagney@redhat.com> * Config.javain: Add BINDIR, LIBDIR, LIBEXECDIR, ABS_SRCDIR, and ABS_BUILDDIR. Index: frysk-gui/frysk/gui/ChangeLog 2005-09-30 Andrew Cagney <cagney@redhat.com> * FryskGui.java: Append ABS_SRCDIR to glade search path list.