Looking to deprecate GRC_PREFS_PATH use in mingw64

2024-06-21 Thread Chris Gorman
Hello All,

I'm trying to get a build of gnuradio running under mingw64.  It is
installed and works mostly.  I've patched it with Ryan Volz's patch
for removing the global_blocks_path in favour of using prefix to set
the blocks path.  This works and I no longer need to set the
environment variable GRC_BLOCKS_PATH in my .bashrc to launch
gnuradio-companion.py.

I'm wondering if there is an analogous solution to the use of
GRC_PREFS_PATH?  I currently have to set GRC_PREFS_PATH to the
grc.conf file in my .bashrc to have gnuradio-companion.py to save the
file on exit.  I don't have a problem with this, but it would be nice
to have it save the prefs path to a place in my home directory when it
exits without the use of the environment variable.

I also noticed in my travels that the .config/gnuradio/grc.conf has
become a directory, I assume to facilitate the progression to using
the qt-gui.  Is the correct location for the grc.conf file
.config/gnuradio/grc.conf/grc.conf?

I'm currently running main's 5c1edfe06 git hash as qwt-qt5 is at 6.3.0
under mingw64 and the 3.10.10.0 release requires that qwt-qt5 be less
than 6.3.0.  Perhaps I should be using a different branch?

Thanks for your time.

Chris



Re: Looking to deprecate GRC_PREFS_PATH use in mingw64

2024-06-21 Thread Marcus Müller

Hi Chris,

not sure if this is really what you're asking, but: Is this related to the 
changes made in

https://github.com/gnuradio/gnuradio/pull/7350 (or 7404 on maint-3.10)?

Best regards,
Marcus

On 21.06.24 19:52, Chris Gorman wrote:

Hello All,

I'm trying to get a build of gnuradio running under mingw64.  It is
installed and works mostly.  I've patched it with Ryan Volz's patch
for removing the global_blocks_path in favour of using prefix to set
the blocks path.  This works and I no longer need to set the
environment variable GRC_BLOCKS_PATH in my .bashrc to launch
gnuradio-companion.py.

I'm wondering if there is an analogous solution to the use of
GRC_PREFS_PATH?  I currently have to set GRC_PREFS_PATH to the
grc.conf file in my .bashrc to have gnuradio-companion.py to save the
file on exit.  I don't have a problem with this, but it would be nice
to have it save the prefs path to a place in my home directory when it
exits without the use of the environment variable.

I also noticed in my travels that the .config/gnuradio/grc.conf has
become a directory, I assume to facilitate the progression to using
the qt-gui.  Is the correct location for the grc.conf file
.config/gnuradio/grc.conf/grc.conf?

I'm currently running main's 5c1edfe06 git hash as qwt-qt5 is at 6.3.0
under mingw64 and the 3.10.10.0 release requires that qwt-qt5 be less
than 6.3.0.  Perhaps I should be using a different branch?

Thanks for your time.

Chris





Re: Looking to deprecate GRC_PREFS_PATH use in mingw64

2024-06-21 Thread Chris Gorman
Hi Marcus,

Thanks for the pointer.  I think my problem occurs because of mixing.
I used Ryan's patch to get rid of the need to use GRC_BLOCKS_PATH at
the same time 7350 was put in.  I mixed these two changes without
analyzing the logic and that was my mistake.  Since I need to use one
environment variable, I might as well use two.  I just need to figure
out how to make pacman spit out the requirement to set the environment
variables and I'll be happy with it.

Thanks again,

Chris


On Fri, Jun 21, 2024 at 2:21 PM Marcus Müller  wrote:
>
> Hi Chris,
>
> not sure if this is really what you're asking, but: Is this related to the 
> changes made in
>
> https://github.com/gnuradio/gnuradio/pull/7350 (or 7404 on maint-3.10)?
>
> Best regards,
> Marcus
>
> On 21.06.24 19:52, Chris Gorman wrote:
> > Hello All,
> >
> > I'm trying to get a build of gnuradio running under mingw64.  It is
> > installed and works mostly.  I've patched it with Ryan Volz's patch
> > for removing the global_blocks_path in favour of using prefix to set
> > the blocks path.  This works and I no longer need to set the
> > environment variable GRC_BLOCKS_PATH in my .bashrc to launch
> > gnuradio-companion.py.
> >
> > I'm wondering if there is an analogous solution to the use of
> > GRC_PREFS_PATH?  I currently have to set GRC_PREFS_PATH to the
> > grc.conf file in my .bashrc to have gnuradio-companion.py to save the
> > file on exit.  I don't have a problem with this, but it would be nice
> > to have it save the prefs path to a place in my home directory when it
> > exits without the use of the environment variable.
> >
> > I also noticed in my travels that the .config/gnuradio/grc.conf has
> > become a directory, I assume to facilitate the progression to using
> > the qt-gui.  Is the correct location for the grc.conf file
> > .config/gnuradio/grc.conf/grc.conf?
> >
> > I'm currently running main's 5c1edfe06 git hash as qwt-qt5 is at 6.3.0
> > under mingw64 and the 3.10.10.0 release requires that qwt-qt5 be less
> > than 6.3.0.  Perhaps I should be using a different branch?
> >
> > Thanks for your time.
> >
> > Chris
> >