[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuradio-discuss
Subject:    Re: [Discuss-gnuradio] modtool noblock and xml files and grc
From:       John Murphy <mr.john.joseph.murphy () gmail ! com>
Date:       2015-05-28 16:24:07
Message-ID: CAN7Tz2Z-oijiDreOtd-k1qC3TQDsA8kW5H1mZ+Rx6HZSYWEzFg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Nevermind, figured out (by looking at another module, fortunately had one
handy although one could probably find such on git somewhere now that I
think about it instead of hitting the panic button)
for posterity, you just have to add the following to the end of the line
listing the last xml file
 DESTINATION share/gnuradio/grc/blocks

Thanks,
all that worked great now.

On Thu, May 28, 2015 at 12:17 PM, John Murphy <
mr.john.joseph.murphy@gmail.com> wrote:
>
> Okay.
> Tried this, then deleted the xml file before attempting to make again
without it.
> Got the following error when re-making (the line with the xml file had a
destination which I had thought was just for that file)
> What do I need to do to fix this?
> Thanks,
> - John
>
>
> CMake Error at grc/CMakeLists.txt:19 (install):
>   install FILES given no DESTINATION!
>
>
> -- Configuring incomplete, errors occurred!
> See also
"/usr/local/share/gnuradio-OutOfTree-modules/gr-comso/build/CMakeFiles/CMakeOutput.log".
> See also
"/usr/local/share/gnuradio-OutOfTree-modules/gr-comso/build/CMakeFiles/CMakeError.log".
> make: *** [cmake_check_build_system] Error 1
>
>
> From: Johnathan Corgan <johnathan@corganlabs.com>
> >
> >
> > On Thu, May 28, 2015 at 8:26 AM, John Murphy <
> > mr.john.joseph.murphy@gmail.com> wrote:
> >
> >
> > > Anyhow, it unexpectedly generated an xml file to import the non-block
into
> > > GRC.
> > > Is there a best way to just remove that xml file without causing other
> > > issues?
> > >
> >
> > First, do a 'make uninstall' from your build directory, to remove the
file
> > from where GRC finds it.
> >
> > Then, edit grc/CMakeLists.txt and remove the line that has the XML
filename
> > in it.
> >
> > Finally, rerun the build (cmake, make, sudo make install, etc.).
> >
> > Also when I tried to drag and drop the non-block into GRC, presumably
from
> > > the default created xml file with no edits (curiosity always gets one
in
> > > trouble?) GRC went to a blank screen. Of course I was able to close
and
> > > restart and pick up at the last save which was fine. Okay none of
that is
> > > really unexpected.
> > >
> >
> > In general, gr_modtool creates XML files that need further editing
before
> > being usable in GRC; in this case, GRC didn't handle the mis-parse very
> > well.
> >
> >
> > > I guess there must be a reason you would have a noblock that can be
added
> > > to a flowgraph?
> > >
> >
> > You can create generic functions with parameters that you can set up as
> > variables in GRC.  They aren't blocks added to the flowgraph but are
still
> > "GRC blocks".

[Attachment #5 (text/html)]

<div dir="ltr"><div>Nevermind, figured out (by looking at another module, fortunately \
had one handy although one could probably find such on git somewhere now that I think \
about it instead of hitting the panic button)<br></div>for posterity, you just have \
to add the following to the end of the line listing the last xml file<br>  \
DESTINATION share/gnuradio/grc/blocks<br><div><div><br></div><div>Thanks,<br></div><div>all \
that worked great now.<br></div><div><br>On Thu, May 28, 2015 at 12:17 PM, John \
Murphy &lt;<a href="mailto:mr.john.joseph.murphy@gmail.com">mr.john.joseph.murphy@gmail.com</a>&gt; \
wrote:<br>&gt;<br>&gt; Okay.<br>&gt; Tried this, then deleted the xml file before \
attempting to make again without it.<br>&gt; Got the following error when re-making \
(the line with the xml file had a destination which I had thought was just for that \
file)<br>&gt; What do I need to do to fix this?<br>&gt; Thanks,<br>&gt; - \
John<br>&gt;<br>&gt;<br>&gt; CMake Error at grc/CMakeLists.txt:19 (install):<br>&gt;  \
install FILES given no DESTINATION!<br>&gt;<br>&gt;<br>&gt; -- Configuring \
incomplete, errors occurred!<br>&gt; See also \
&quot;/usr/local/share/gnuradio-OutOfTree-modules/gr-comso/build/CMakeFiles/CMakeOutput.log&quot;.<br>&gt; \
See also &quot;/usr/local/share/gnuradio-OutOfTree-modules/gr-comso/build/CMakeFiles/CMakeError.log&quot;.<br>&gt; \
make: *** [cmake_check_build_system] Error 1<br>&gt;<br>&gt;<br>&gt; From: Johnathan \
Corgan &lt;<a href="mailto:johnathan@corganlabs.com">johnathan@corganlabs.com</a>&gt;<br>&gt; \
&gt;<br>&gt; &gt;<br>&gt; &gt; On Thu, May 28, 2015 at 8:26 AM, John Murphy \
&lt;<br>&gt; &gt; <a \
href="mailto:mr.john.joseph.murphy@gmail.com">mr.john.joseph.murphy@gmail.com</a>&gt; \
wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; &gt; Anyhow, it unexpectedly generated \
an xml file to import the non-block into<br>&gt; &gt; &gt; GRC.<br>&gt; &gt; &gt; Is \
there a best way to just remove that xml file without causing other<br>&gt; &gt; &gt; \
issues?<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt; First, do a &#39;make \
uninstall&#39; from your build directory, to remove the file<br>&gt; &gt; from where \
GRC finds it.<br>&gt; &gt;<br>&gt; &gt; Then, edit grc/CMakeLists.txt and remove the \
line that has the XML filename<br>&gt; &gt; in it.<br>&gt; &gt;<br>&gt; &gt; Finally, \
rerun the build (cmake, make, sudo make install, etc.).<br>&gt; &gt;<br>&gt; &gt; \
Also when I tried to drag and drop the non-block into GRC, presumably from<br>&gt; \
&gt; &gt; the default created xml file with no edits (curiosity always gets one \
in<br>&gt; &gt; &gt; trouble?) GRC went to a blank screen. Of course I was able to \
close and<br>&gt; &gt; &gt; restart and pick up at the last save which was fine. Okay \
none of that is<br>&gt; &gt; &gt; really unexpected.<br>&gt; &gt; &gt;<br>&gt; \
&gt;<br>&gt; &gt; In general, gr_modtool creates XML files that need further editing \
before<br>&gt; &gt; being usable in GRC; in this case, GRC didn&#39;t handle the \
mis-parse very<br>&gt; &gt; well.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; &gt; I guess \
there must be a reason you would have a noblock that can be added<br>&gt; &gt; &gt; \
to a flowgraph?<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt; You can create generic \
functions with parameters that you can set up as<br>&gt; &gt; variables in GRC.   \
They aren&#39;t blocks added to the flowgraph but are still<br>&gt; &gt; &quot;GRC \
blocks&quot;.<br><br></div></div></div>



_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic