<div dir="ltr">James,<div><br></div><div>I've been reading about GObject Introspection and I think you've put me on the right track. I'll let everyone know if I get it working. My more immediate goal is to fix a minor bug in Get IA Books so I can publish it, so I won't be looking at sugar-runner for a while.</div><div><br></div><div>Thanks again,</div><div><br></div><div>James Simmons</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 19, 2024 at 6:07 PM James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'll speculate. Perhaps something changed in how GObject introspection packages are built and installed between the time that sugar-runner and sugar-toolkit-gtk3 were both supported, and the time now. If so, then commits that change Makefile.am in sugar-toolkit-gtk3 may explain.<br>
<br>
To not speculate, use strace -f on the sugar-toolkit-gtk3 build steps to find out when and why the SugarExt typelib is installed, figure out what source file is responsible, then deduce how to make similar effect on sugar-runner.<br>
<br>
Hope that helps!<br>
<br>
On Mon, Feb 19, 2024 at 04:50:44PM -0600, James Simmons wrote:<br>
> James,<br>
> <br>
> I am a novice with Make. I did look at the Make files for sugar-runner and I<br>
> found that Makefile.in had some lines reported as Bad directive:<br>
> <br>
> @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/<br>
> libsugarrunner_la-sugar-runner-window.Plo@am__quote@ # am--include-marker<br>
> <br>
> @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/<br>
> libsugarrunner_la-sugar-runner.Plo@am__quote@ # am--include-marker<br>
> <br>
> $(am__depfiles_remade):<br>
> <br>
> @$(MKDIR_P) $(@D)<br>
> <br>
> @echo '# dummy' >$@-t && $(am__mv) $@-t $@<br>
> <br>
> am--depfiles: $(am__depfiles_remade)<br>
> <br>
> .c.o:<br>
> <br>
> @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo <br>
> -c -o $@ $<<br>
> <br>
> @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po<br>
> <br>
> @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no<br>
> @AMDEPBACKSLASH@<br>
> <br>
> @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp)<br>
> @AMDEPBACKSLASH@<br>
> <br>
> @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<<br>
> <br>
> .c.obj:<br>
> <br>
> @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo <br>
> -c -o $@ `$(CYGPATH_W) '$<'`<br>
> <br>
> @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po<br>
> <br>
> @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no<br>
> @AMDEPBACKSLASH@<br>
> <br>
> @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp)<br>
> @AMDEPBACKSLASH@<br>
> <br>
> @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<br>
> <'`<br>
> <br>
> The ones with red underlines are the ones. The generated Makefile does not<br>
> report any errors.<br>
> <br>
> I'm going to try generating a Makefile for sugar-toolkit-gtk3 and see if that<br>
> suggests anything.<br>
> <br>
> Thanks.<br>
> <br>
> James Simmons<br>
> <br>
> On Mon, Feb 19, 2024 at 1:42 PM James Cameron <[1]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
> <br>
> Make sure the typelib has been installed correctly. Perhaps the install<br>
> steps are also bit rot.<br>
> <br>
> Compare the steps against the SugarExt typelib installed by the<br>
> sugar-toolkit-gtk3 package.<br>
> <br>
> In particular, I seem to recall an introspection scanner step is required,<br>
> but not sure if it is part of "make install" or if it fails if the tool is<br>
> not installed.<br>
> <br>
> On Mon, Feb 19, 2024 at 09:47:36AM -0600, James Simmons wrote:<br>
> > I've been preparing an old computer I just replaced as a gift for a<br>
> bright<br>
> > eight year old boy and his older brother. It will run Fedora 39. In<br>
> addition to<br>
> > the XFCE environment I want to give him a Sugar environment with<br>
> Activities.<br>
> ><br>
> > In the process of setting this up I discovered that some of the<br>
> Activities I<br>
> > wrote years ago have succumbed to bit rot and needed updating. I was able<br>
> to do<br>
> > this, but I was disappointed to find that I could not use sugar-runner to<br>
> run<br>
> > the Sugar environment in a window because it had not been maintained.<br>
> ><br>
> > I thought I'd take a stab at getting sugar-runner working. I checked out<br>
> the<br>
> > project, installed all the dependencies autogen.sh asked for, updated the<br>
> > scripts to use python3, then ran what looked to be a successful make and<br>
> sudo<br>
> > make install. Then I tried to run<br>
> ><br>
> > sugar-runner<br>
> ><br>
> > and I got these Python errors:<br>
> ><br>
> > jamessimmons@unknownF4390913EB01:~$ sugar-runner<br>
> > Traceback (most recent call last):<br>
> > File "/usr/local/bin/sugar-runner", line 28, in <module><br>
> > gi.require_version('SugarRunner', '1.0')<br>
> > File "/usr/lib64/python3.12/site-packages/gi/__init__.py", line 126, in<br>
> > require_version<br>
> > raise ValueError('Namespace %s not available' % namespace)<br>
> > ValueError: Namespace SugarRunner not available<br>
> ><br>
> > At this point I'm stuck. If any of you have any suggestions on how to<br>
> proceed<br>
> > I'd love to hear them.<br>
> ><br>
> > Thanks,<br>
> ><br>
> > James Simmons<br>
> ><br>
> <br>
> > _______________________________________________<br>
> > Sugar-devel mailing list<br>
> > [2]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> > [3]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> <br>
> References:<br>
> <br>
> [1] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [2] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [3] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</blockquote></div>