Skip to content

Error at new raspberry pi 32-bit installation #2

Description

@cenc

at installing error occures ??

/home/claus/sxxcvr/SoapySX/SoapySX.cpp:407:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
407 | gpiod::line gpio_reset, gpio_rx, gpio_tx;
| ^~~~
In file included from /usr/include/gpiodcxx/chip.hpp:21,
from /usr/include/gpiod.hpp:27,
from /home/claus/sxxcvr/SoapySX/SoapySX.cpp:23:
/usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
24 | namespace line {
| ^~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp: In member function ‘void SoapySX::init_gpio()’:
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:475:9: error: ‘gpio_reset’ was not declared in this scope
475 | gpio_reset.request({
| ^~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:477:50: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
477 | .request_type = gpiod::line_request::DIRECTION_OUTPUT,
| ^~~~~~~~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:478:43: error: ‘FLAG_OPEN_SOURCE’ is not a member of ‘gpiod::line_request’
478 | .flags = gpiod::line_request::FLAG_OPEN_SOURCE
| ^~~~~~~~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:480:9: error: ‘gpio_rx’ was not declared in this scope; did you mean ‘gpio’?
480 | gpio_rx.request({
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:482:50: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
482 | .request_type = gpiod::line_request::DIRECTION_OUTPUT,
| ^~~~~~~~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:485:9: error: ‘gpio_tx’ was not declared in this scope; did you mean ‘gpio’?
485 | gpio_tx.request({
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:487:50: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
487 | .request_type = gpiod::line_request::DIRECTION_OUTPUT,
| ^~~~~~~~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp: In member function ‘void SoapySX::reset_chip()’:
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:496:9: error: ‘gpio_reset’ was not declared in this scope
496 | gpio_reset.set_value(1);
| ^~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp: In constructor ‘SoapySX::SoapySX(const SoapySDR::Kwargs&, uint16_t)’:
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:559:9: error: class ‘SoapySX’ does not have any field named ‘gpio_reset’
559 | gpio_reset(gpio.get_line(5)),
| ^~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:559:25: error: ‘class gpiod::chip’ has no member named ‘get_line’
559 | gpio_reset(gpio.get_line(5)),
| ^~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:560:9: error: class ‘SoapySX’ does not have any field named ‘gpio_rx’
560 | gpio_rx(gpio.get_line(hwversion == 0x0100 ? 13 : 23)),
| ^~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:560:22: error: ‘class gpiod::chip’ has no member named ‘get_line’
560 | gpio_rx(gpio.get_line(hwversion == 0x0100 ? 13 : 23)),
| ^~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:561:9: error: class ‘SoapySX’ does not have any field named ‘gpio_tx’
561 | gpio_tx(gpio.get_line(hwversion == 0x0100 ? 12 : 22)),
| ^~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:561:22: error: ‘class gpiod::chip’ has no member named ‘get_line’
561 | gpio_tx(gpio.get_line(hwversion == 0x0100 ? 12 : 22)),
| ^~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp: In member function ‘virtual void SoapySX::closeStream(SoapySDR::Stream*)’:
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:657:39: warning: ignoring return value of ‘std::scoped_lock<_Mutex>::scoped_lock(mutex_type&) [with _Mutex = std::mutex; mutex_type = std::mutex]’, declared with attribute ‘nodiscard’ [-Wunused-result]
657 | std::scoped_lock(stream->mutex);
| ^
In file included from /home/claus/sxxcvr/SoapySX/SoapySX.cpp:13:
/usr/include/c++/14/mutex:786:16: note: declared here
786 | explicit scoped_lock(mutex_type& __m) : _M_device(__m)
| ^~~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp: In member function ‘virtual void SoapySX::writeSetting(const std::string&, const std::string&’:
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1312:17: error: ‘gpio_tx’ was not declared in this scope; did you mean ‘gpio’?
1312 | gpio_tx.set_value(1);
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1313:17: error: ‘gpio_rx’ was not declared in this scope; did you mean ‘gpio’?
1313 | gpio_rx.set_value(0);
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1316:17: error: ‘gpio_tx’ was not declared in this scope; did you mean ‘gpio’?
1316 | gpio_tx.set_value(0);
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1317:17: error: ‘gpio_rx’ was not declared in this scope; did you mean ‘gpio’?
1317 | gpio_rx.set_value(1);
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1320:17: error: ‘gpio_tx’ was not declared in this scope; did you mean ‘gpio’?
1320 | gpio_tx.set_value(1);
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1321:17: error: ‘gpio_rx’ was not declared in this scope; did you mean ‘gpio’?
1321 | gpio_rx.set_value(1);
| ^~~~~~~
| gpio
make[2]: *** [CMakeFiles/SXSupport.dir/build.make:79: CMakeFiles/SXSupport.dir/SoapySX.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/SXSupport.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
[ 50%] Building CXX object CMakeFiles/SXSupport.dir/SoapySX.cpp.o
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:407:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
407 | gpiod::line gpio_reset, gpio_rx, gpio_tx;
| ^~~~
In file included from /usr/include/gpiodcxx/chip.hpp:21,
from /usr/include/gpiod.hpp:27,
from /home/claus/sxxcvr/SoapySX/SoapySX.cpp:23:
/usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
24 | namespace line {
| ^~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp: In member function ‘void SoapySX::init_gpio()’:
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:475:9: error: ‘gpio_reset’ was not declared in this scope
475 | gpio_reset.request({
| ^~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:477:50: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
477 | .request_type = gpiod::line_request::DIRECTION_OUTPUT,
| ^~~~~~~~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:478:43: error: ‘FLAG_OPEN_SOURCE’ is not a member of ‘gpiod::line_request’
478 | .flags = gpiod::line_request::FLAG_OPEN_SOURCE
| ^~~~~~~~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:480:9: error: ‘gpio_rx’ was not declared in this scope; did you mean ‘gpio’?
480 | gpio_rx.request({
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:482:50: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
482 | .request_type = gpiod::line_request::DIRECTION_OUTPUT,
| ^~~~~~~~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:485:9: error: ‘gpio_tx’ was not declared in this scope; did you mean ‘gpio’?
485 | gpio_tx.request({
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:487:50: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
487 | .request_type = gpiod::line_request::DIRECTION_OUTPUT,
| ^~~~~~~~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp: In member function ‘void SoapySX::reset_chip()’:
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:496:9: error: ‘gpio_reset’ was not declared in this scope
496 | gpio_reset.set_value(1);
| ^~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp: In constructor ‘SoapySX::SoapySX(const SoapySDR::Kwargs&, uint16_t)’:
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:559:9: error: class ‘SoapySX’ does not have any field named ‘gpio_reset’
559 | gpio_reset(gpio.get_line(5)),
| ^~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:559:25: error: ‘class gpiod::chip’ has no member named ‘get_line’
559 | gpio_reset(gpio.get_line(5)),
| ^~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:560:9: error: class ‘SoapySX’ does not have any field named ‘gpio_rx’
560 | gpio_rx(gpio.get_line(hwversion == 0x0100 ? 13 : 23)),
| ^~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:560:22: error: ‘class gpiod::chip’ has no member named ‘get_line’
560 | gpio_rx(gpio.get_line(hwversion == 0x0100 ? 13 : 23)),
| ^~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:561:9: error: class ‘SoapySX’ does not have any field named ‘gpio_tx’
561 | gpio_tx(gpio.get_line(hwversion == 0x0100 ? 12 : 22)),
| ^~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:561:22: error: ‘class gpiod::chip’ has no member named ‘get_line’
561 | gpio_tx(gpio.get_line(hwversion == 0x0100 ? 12 : 22)),
| ^~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp: In member function ‘virtual void SoapySX::closeStream(SoapySDR::Stream*)’:
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:657:39: warning: ignoring return value of ‘std::scoped_lock<_Mutex>::scoped_lock(mutex_type&) [with _Mutex = std::mutex; mutex_type = std::mutex]’, declared with attribute ‘nodiscard’ [-Wunused-result]
657 | std::scoped_lock(stream->mutex);
| ^
In file included from /home/claus/sxxcvr/SoapySX/SoapySX.cpp:13:
/usr/include/c++/14/mutex:786:16: note: declared here
786 | explicit scoped_lock(mutex_type& __m) : _M_device(__m)
| ^~~~~~~~~~~
/home/claus/sxxcvr/SoapySX/SoapySX.cpp: In member function ‘virtual void SoapySX::writeSetting(const std::string&, const std::string&’:
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1312:17: error: ‘gpio_tx’ was not declared in this scope; did you mean ‘gpio’?
1312 | gpio_tx.set_value(1);
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1313:17: error: ‘gpio_rx’ was not declared in this scope; did you mean ‘gpio’?
1313 | gpio_rx.set_value(0);
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1316:17: error: ‘gpio_tx’ was not declared in this scope; did you mean ‘gpio’?
1316 | gpio_tx.set_value(0);
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1317:17: error: ‘gpio_rx’ was not declared in this scope; did you mean ‘gpio’?
1317 | gpio_rx.set_value(1);
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1320:17: error: ‘gpio_tx’ was not declared in this scope; did you mean ‘gpio’?
1320 | gpio_tx.set_value(1);
| ^~~~~~~
| gpio
/home/claus/sxxcvr/SoapySX/SoapySX.cpp:1321:17: error: ‘gpio_rx’ was not declared in this scope; did you mean ‘gpio’?
1321 | gpio_rx.set_value(1);
| ^~~~~~~
| gpio
make[2]: *** [CMakeFiles/SXSupport.dir/build.make:79: CMakeFiles/SXSupport.dir/SoapySX.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/SXSupport.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions