Hi Cinaed and Neel,
Thanks for your quick response.
My custom prefix is /home/<my path>. I was just shortening
it with "/home/...", sorry for the confusion.
I followed a similar process as in the app note.
I ran $ cmake-gui ../ in the build directory.
Then I used the GUI to configure and generate the flags
CMAKE_INSTALL_PREFIX, UHD_DIR, UHD_INCLUDE_DIRS, and
UHD_LIBRARIES. I also set PYTHON_EXECUTABLE to
usr/bin/python3.8
For good measure, tried to build again, this time I can ran
$ cmake -DCMAKE_INSTALL_PREFIX=/home/<my path>
-DUHD_DIR=/home/<my path>/lib/cmake/uhd
-DUHD_INCLUDE_DIRS=/home/<my path>/include
-DUHD_LIBRARIES = /home/<my prefix>/lib/libuhd.so
-DPYTHON_EXECUTABLE=/usr/bin/python3.8 ../
The preferences file is still installed to /usr/local
Here's the full gnuradio-config-info output after second
attempt
/home/<my path>
/home/<my path>/etc
/usr/local/etc/gnuradio/conf.d
/home/<user>/.gnuradio
Thu, 22 Apr 2021 15:25:41
testing-support;python-support;post-install;doxygen;gnuradio-runtime;gr-ctrlport
3.9.0.0
cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software see the source for copying conditions.
There is NO
warranty not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
c++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software see the source for copying conditions.
There is NO
warranty not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
/usr/bin/cc:::-O3 -DNDEBUG -fvisibility=hidden -Wsign-compare
-Wall -Wno-uninitialized
/usr/bin/c++:::-O3 -DNDEBUG -fvisibility=hidden
-Wsign-compare -Wall -Wno-uninitialized
On Thu, 22 Apr 2021 at 08:31, Neel Pandeya <
neel.pandeya@ettus.com>
wrote:
>
> Hello Wan:
>
> Did you set a custom installation path when you ran CMake?
>
> How did you invoke CMake when you built GNU Radio?
>
> The Application Note listed below might help you.
>
>
https://kb.ettus.com/Building_and_Installing_UHD_and_GNU_Radio_to_a_Custom_Prefix
>
> --Neel Pandeya
>
>
>
> On Thu, 22 Apr 2021 at 02:28, Cinaed Simson <
cinaed.simson@gmail.com>
wrote:
>>
>>
>> On 4/21/21 9:48 PM, wan wrote:
>> > Hi all,
>> >
>> > I set a custom install prefix while installing
from source. However,
>> > the preference file still gets installed to
/usr/local, as you can see
>> > from the gnuradio-config-info output below.
>> >
>> > gnuradio-config-info --print-all
>> > /home/.../envs/uhd-gr-default/
>> > /home/.../envs/uhd-gr-default/etc
>> > /usr/local/etc/gnuradio/conf.d
>> > /home/.../.gnuradio
>> >
>> > Why does preferences file get installed in
/usr/local despite setting
>> > a custom install prefix? And is this expected?
>> >
>> > Regards,
>> >
>> > Wan L.
>>
>> Hi Wan - you should indicate the version of gnuradio
you installed.
>>
>> Something appears to have gone wrong with your install
- you're missing
>> most of the expected information. It looks like your
home directory was
>>
>> /home/..
>>
>> For comparison, here's the output for version 3.8
that I installed
>> from source.
>>
>> gnuradio-config-info --print-all
>> /opt/gnuradio
>> /opt/gnuradio/etc
>> /opt/gnuradio/etc/gnuradio/conf.d
>> /home/cinaed/.gnuradio
>>
>>
testing-support;python-support;volk;doxygen;sphinx;gnuradio-runtime;gr-ctrlport;gnuradio-companion;gr-blocks;gr-fec;gr-fft;gr-filter;gr-analog;gr-digital;gr-dtv;gr-audio;*
>> alsa;* oss;* jack;*
>>
portaudio;gr-channels;gr-qtgui;gr-trellis;gr-uhd;gr-utils;gr_modtool;gr-video-sdl;gr-vocoder;*
>> gsm;gr-wavelet;gr-zeromq
>> v3.8.2.0-73-g4a84443c
>> gcc (Debian 8.3.0-6) 8.3.0
>> Copyright (C) 2018 Free Software Foundation, Inc.
>> This is free software see the source for copying
conditions. There is NO
>> warranty not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
>> g++ (Debian 8.3.0-6) 8.3.0
>> Copyright (C) 2018 Free Software Foundation, Inc.
>> This is free software see the source for copying
conditions. There is NO
>> warranty not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
>> /usr/bin/gcc:::-O3 -DNDEBUG -march=native -O3
-fvisibility=hidden
>> -Wsign-compare -Wall -Wno-uninitialized
>> /usr/bin/g++:::-O3 -DNDEBUG -march=native -O3
-fvisibility=hidden
>> -Wsign-compare -Wall -Wno-uninitialized
>>
>>