Note: This Question Category is currently disabled. You cannot post anything here.
i have module named as D into that block sub. Now i am going to create another block sub1 into same module. while running "make" command i am getting error.

vlab@ubuntu:~/gr-D$ gr_modtooladd sub1
gr_modtooladd: command not found
vlab@ubuntu:~/gr-D$ gr_modtool add sub1
>>> GRAS: The debug asserts are enabled. <<<
GNU Radio module name identified: D
Enter code type: general
Language: C++
Block/code identifier: sub1
Enter valid argument list, including default arguments:
Add Python QA code? [Y/n] n
Add C++ QA code? [Y/n] n
Adding file 'sub1_impl.h'...
Adding file ''...
Adding file 'sub1.h'...
Editing swig/D_swig.i...
Adding file 'D_sub1.xml'...
Editing grc/CMakeLists.txt...
vlab@ubuntu:~/gr-D$ mkdir build
mkdir: cannot create directory `build': File exists
vlab@ubuntu:~/gr-D$ cd build
vlab@ubuntu:~/gr-D/build$ cmake../
bash: cmake../: No such file or directory
vlab@ubuntu:~/gr-D/build$ cmake ../
-- Build type not specified: defaulting to release.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vlab/gr-D/build
vlab@ubuntu:~/gr-D/build$ make
Scanning dependencies of target gnuradio-D
[  5%] Building CXX object lib/CMakeFiles/gnuradio-D.dir/
Linking CXX shared library
[ 10%] Built target gnuradio-D
Linking CXX executable test-D
[ 21%] Built target test-D
[ 26%] Built target _D_swig_doc_tag
[ 31%] Built target _D_swig_swig_tag
[ 36%] Swig source
Unable to open file /home/vlab/gr-D/build/swig/D_swigPYTHON_wrap.cxx: Permission denied
make[2]: *** [swig/D_swigPYTHON_wrap.cxx] Error 1
make[1]: *** [swig/CMakeFiles/_D_swig.dir/all] Error 2
make: *** [all] Error 2

Sandhi 23-07-15, 2:43 p.m. Ashwini
Hello Ashwini,

Please follow the steps:
1. In the directory "gr-D" run the following command gr_modtooladd sub1
2. change the code for sub1
3. change your directory to "build" -- cd build (no need to create build directory everytime)
4. run -- cmake ../
5. run -- make
6. run -- make install

Please make sure not to use "sudo" for any of the commands above.

23-07-15, 3:02 p.m. srilakshmiramaswamy

23-07-15, 3:12 p.m. Ashwini