rpp0 / gr-lora

GNU Radio blocks for receiving LoRa modulated radio messages using SDR
GNU General Public License v3.0
523 stars 113 forks source link

Can't install gr-lora OOT module!! #140

Closed mkdthanga closed 2 years ago

mkdthanga commented 2 years ago

Hello, While building this gr-lora in my ubuntu 20.04, I am getting the following error!

Console logs:

thangz@thangz-VirtualBox:~/Desktop$ cd gnuradio/
thangz@thangz-VirtualBox:~/Desktop/gnuradio$ cd gr-lora/
thangz@thangz-VirtualBox:~/Desktop/gnuradio/gr-lora$ ls
apps     cmake           docs      include  liquid-dsp   README.md
AUTHORS  CMakeLists.txt  examples  lib      MANIFEST.md  swig
build    docker          grc       LICENSE  python
thangz@thangz-VirtualBox:~/Desktop/gnuradio/gr-lora$ cd build
thangz@thangz-VirtualBox:~/Desktop/gnuradio/gr-lora/build$ ls
apps                        cmake_uninstall.cmake  lib
CMakeCache.txt              compile_commands.json  Makefile
CMakeDoxyfile.in            CTestTestfile.cmake    python
CMakeDoxygenDefaults.cmake  docs                   python_compile_helper.py
CMakeFiles                  grc                    swig
cmake_install.cmake         include
thangz@thangz-VirtualBox:~/Desktop/gnuradio/gr-lora/build$ cmake ../
-- Build type not specified: defaulting to release.
-- Checking for module 'mpir >= 3.0'
--   No package 'mpir' found
-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR) 
-- User set python executable /usr/bin/python3
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found suitable exact version "3.8.10") 
-- Extracting version information from git describe...
-- No C++ unit tests... skipping
-- 
-- Checking for module SWIG
-- Found SWIG version 4.0.1.
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found version "3.8.10") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/thangz/Desktop/gnuradio/gr-lora/build
thangz@thangz-VirtualBox:~/Desktop/gnuradio/gr-lora/build$ make && sudo make install
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/liborc-0.4.so', needed by 'lib/libgnuradio-lora.so.v0.6.2-54-g6111c350'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:272: lib/CMakeFiles/gnuradio-lora.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

What should I do? Any help would be much appreciated!

My working environment: Host OS: Windows 10 Guest OS: VirtualBox Ubuntu 20.04.3 LTS GNU Radio version: 3.8.1.0

Regards, Thangz

mkdthanga commented 2 years ago

Hello,

Now I have installed Linux in my laptop and I have tried to install gr-lora package, but I am still getting this error:

komro@komro-HP-ProBook-6560b:~/gnuradio/gr-lora/build$ make && sudo make install
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/liborc-0.4.so', needed by 'lib/libgnuradio-lora.so.v0.6.2-54-g6111c350'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:248: lib/CMakeFiles/gnuradio-lora.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
komro@komro-HP-ProBook-6560b:~/gnuradio/gr-l

I have installed all the necessary dependencies too, but don't know what is wrong here!

Any hint would be much appreciated!

Regards, Thangaraj

mkdthanga commented 2 years ago

The solution is: sudo apt-get install liborc-0.4-dev

mkdthanga commented 2 years ago

Apart from setting correct pythonpath, It is also important to use the 'DCMAKE...' argument to make sure everything installs in right path!

While installing 'gr-lora' module please use the command

komro@komro-HP-ProBook-6560b:~/gnuradio/gr-lora/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ../

instead of

komro@komro-HP-ProBook-6560b:~/gnuradio/gr-lora/build$ cmake ../

This solved my issue!

Regards, Thangaraj