Git Product home page Git Product logo

Comments (5)

 avatar commented on July 28, 2024

Symlink seems fine:

ls -l /usr/local/lib/x86_64-linux-gnu/libgnuradio-lora_sdr.so.0.5.0git
lrwxrwxrwx 1 root root 32 may  8 17:34 /usr/local/lib/x86_64-linux-gnu/libgnuradio-lora_sdr.so.0.5.0git -> libgnuradio-lora_sdr.so.af08300e

from gr-lora_sdr.

 avatar commented on July 28, 2024

A quick test forcing the LD path:

$ LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu python apps/single_user/tx_rx_simulation.py 
Traceback (most recent call last):
  File "/home/user/code/thirdparty/gr-lora_sdr/apps/single_user/tx_rx_simulation.py", line 188, in <module>
    main()
  File "/home/user/code/thirdparty/gr-lora_sdr/apps/single_user/tx_rx_simulation.py", line 166, in main
    tb = top_block_cls()
  File "/home/user/code/thirdparty/gr-lora_sdr/apps/single_user/tx_rx_simulation.py", line 49, in __init__
    self.lora_sdr_modulate_0 = lora_sdr.modulate(sf, samp_rate, bw, [8, 16],False)
AttributeError: module 'lora_sdr' has no attribute 'modulate'

Seems like a SWIG issue. modulate() is clearly missing from the Py module. I'm not using the older codebase, it definitely is yours (thank you for your excellent work since!).

$ git remote show origin origin 
* remote origin
  Fetch URL: https://github.com/martynvdijke/gr-lora_sdr
  Push  URL: https://github.com/martynvdijke/gr-lora_sdr
  HEAD branch: master
  Remote branches:
    dev      tracked
    gh-pages tracked
    main     tracked
    master   tracked
  Local branch configured for 'git pull':
    master merges with remote master
  Local ref configured for 'git push':
    master pushes to master (up to date)

from gr-lora_sdr.

 avatar commented on July 28, 2024

See #27

modulate() is missing from the generated bindings, the source is there, but it is not included:

>>> lora_sdr.lora_sdr_python.
lora_sdr.lora_sdr_python.RH_RF95_header(            lora_sdr.lora_sdr_python.frame_sync(
lora_sdr.lora_sdr_python.add_crc(                   lora_sdr.lora_sdr_python.gray_decode(
lora_sdr.lora_sdr_python.crc_verif(                 lora_sdr.lora_sdr_python.gray_enc(
lora_sdr.lora_sdr_python.data_source(               lora_sdr.lora_sdr_python.hamming_dec(
lora_sdr.lora_sdr_python.data_source_sim(           lora_sdr.lora_sdr_python.hamming_enc(
lora_sdr.lora_sdr_python.deinterleaver(             lora_sdr.lora_sdr_python.header(
lora_sdr.lora_sdr_python.dewhitening(               lora_sdr.lora_sdr_python.header_decoder(
lora_sdr.lora_sdr_python.err_measures(              lora_sdr.lora_sdr_python.hier_rx(
lora_sdr.lora_sdr_python.fft_demod(                 lora_sdr.lora_sdr_python.hier_tx(
lora_sdr.lora_sdr_python.frame_detector_sequence(   lora_sdr.lora_sdr_python.interleaver(
lora_sdr.lora_sdr_python.frame_detector_threshold(  lora_sdr.lora_sdr_python.signal_detector(
lora_sdr.lora_sdr_python.frame_detector_timeout(    lora_sdr.lora_sdr_python.whitening(
lora_sdr.lora_sdr_python.frame_src(   

from gr-lora_sdr.

 avatar commented on July 28, 2024

cmake output:

-- The CXX compiler identification is GNU 11.2.0
-- The C compiler identification is GNU 11.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found setting GRLORA_MEASUREMENTS=True, setting outputting meassurments on
-- Build type not specified: defaulting to release.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Checking for module 'gmp'
--   Found gmp, version 6.2.1
-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmpxx.so  
-- Using GMP.
-- Found MPLIB: /usr/lib/x86_64-linux-gnu/libgmpxx.so  
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.74.0") found components: date_time program_options system regex thread unit_test_framework 
-- Found Volk: Volk::volk  
-- User set python executable /usr/bin/python3
-- Found PythonInterp: /usr/bin/python3 (found version "3.10.4") 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so (found suitable exact version "3.10.4") 
-- Found Git: /usr/bin/git  
-- Extracting version information from git describe...
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.1") found components: doxygen dot 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found pybind11: /usr/include (found version "2.9.1")
-- Using install prefix: /usr
-- Building for version: af08300e / 0.5.0git
-- PYTHON and GRC components are enabled
-- Python checking for pygccxml - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ewsidufyh/code/thirdparty/gr-lora_sdr/build
-- Installing: /usr/local/lib/python3.10/dist-packages/lora_sdr/lora_sdr_python.cpython-310-x86_64-linux-gnu.so
-- Set runtime path of "/usr/local/lib/python3.10/dist-packages/lora_sdr/lora_sdr_python.cpython-310-x86_64-linux-gnu.so" to ""

I'm beginning to think something is broken with the CMake config. This is after setting the prefix to /usr.

from gr-lora_sdr.

 avatar commented on July 28, 2024

Fixed, and ported bindings to 3.10.

from gr-lora_sdr.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.