Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error:xtrx_fe_octorx0.c:88:30: error: ‘XTRXLL_PARAM_EXT_SPI’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_EXT_CLK’? #32

Open
cn0xroot opened this issue Jan 19, 2021 · 0 comments

Comments

@cn0xroot
Copy link

cmake ..
-- The C compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Building for x86_64
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'libxtrxdsp'
--   Found libxtrxdsp, version 
-- Found libxtrxdsp: /usr/local/include, /usr/local/lib/libxtrxdsp.so
-- Checking for module 'libxtrxll'
--   Found libxtrxll, version 
-- Found libxtrxll: /usr/local/include, /usr/local/lib/libxtrxll.so
-- Checking for module 'LIBLMS7COMPACT'
--   No package 'LIBLMS7COMPACT' found
-- Found liblms7mcompact: /usr/local/include, /usr/local/lib/liblms7compact.so
-- Found QCustomPlot: /usr/include  
-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
/home/init3/SDR/xtrx/libxtrx/cmake/home/init3/SDR/xtrx/libxtrx/examples/xtrx_fft
-- Build type not specified: defaulting to release.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/init3/SDR/xtrx/libxtrx/build


make -j8
Scanning dependencies of target test_xtrx_soapy
Scanning dependencies of target xtrx
[  4%] Building C object CMakeFiles/xtrx.dir/xtrx_fe.c.o
[  9%] Building C object CMakeFiles/xtrx.dir/xtrx_fe_octorx0.c.o
[ 13%] Building C object soapy/CMakeFiles/test_xtrx_soapy.dir/test_xtrx_soapy.c.o
[ 18%] Building C object CMakeFiles/xtrx.dir/xtrx.c.o
[ 22%] Building C object CMakeFiles/xtrx.dir/xtrx_fe_nlms7.c.o
[ 27%] Building C object CMakeFiles/xtrx.dir/xtrx_debug.c.o
[ 31%] Building C object CMakeFiles/xtrx.dir/xtrx_fe_octocal0.c.o
[ 36%] Building C object CMakeFiles/xtrx.dir/octo/adf4355.c.o
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c: In function ‘adf4355_spi’:
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c:88:30: error: ‘XTRXLL_PARAM_EXT_SPI’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_EXT_CLK’?
  res = xtrxll_set_param(dev, XTRXLL_PARAM_EXT_SPI, MAKE_OCTO_SPI(REG_TMP_L, out));
                              ^~~~~~~~~~~~~~~~~~~~
                              XTRXLL_PARAM_EXT_CLK
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c:88:30: note: each undeclared identifier is reported only once for each function it appears in
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c: In function ‘trf37_spi’:
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c:144:30: error: ‘XTRXLL_PARAM_EXT_SPI’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_EXT_CLK’?
  res = xtrxll_set_param(dev, XTRXLL_PARAM_EXT_SPI, MAKE_OCTO_SPI(REG_TMP_L, out));
                              ^~~~~~~~~~~~~~~~~~~~
                              XTRXLL_PARAM_EXT_CLK
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c: In function ‘octo_read_spi’:
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c:159:34: error: ‘XTRXLL_PARAM_EXT_SPI’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_EXT_CLK’?
  int res = xtrxll_set_param(dev, XTRXLL_PARAM_EXT_SPI, MAKE_OCTO_SPI(regno, 0));
                                  ^~~~~~~~~~~~~~~~~~~~
                                  XTRXLL_PARAM_EXT_CLK
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c:165:32: error: ‘XTRXLL_EXT_SPI_RB’ undeclared (first use in this function); did you mean ‘XTRXLL_EXT_CLK’?
  return xtrxll_get_sensor(dev, XTRXLL_EXT_SPI_RB, (int*)out);
                                ^~~~~~~~~~~~~~~~~
                                XTRXLL_EXT_CLK
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c: In function ‘i2c_cmdwr’:
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c:183:30: error: ‘XTRXLL_PARAM_EXT_SPI’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_EXT_CLK’?
  res = xtrxll_set_param(dev, XTRXLL_PARAM_EXT_SPI,
                              ^~~~~~~~~~~~~~~~~~~~
                              XTRXLL_PARAM_EXT_CLK
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c: In function ‘lms7octo_init’:
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c:438:33: error: ‘XTRXLL_PARAM_EXT_SPI’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_EXT_CLK’?
   res = xtrxll_set_param(lldev, XTRXLL_PARAM_EXT_SPI,
                                 ^~~~~~~~~~~~~~~~~~~~
                                 XTRXLL_PARAM_EXT_CLK
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c: In function ‘lms7octo_deinit’:
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c:501:39: error: ‘XTRXLL_PARAM_EXT_SPI’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_EXT_CLK’?
   res = xtrxll_set_param(dev->master, XTRXLL_PARAM_EXT_SPI,
                                       ^~~~~~~~~~~~~~~~~~~~
                                       XTRXLL_PARAM_EXT_CLK
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c: In function ‘octo_switch_fe’:
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c:530:48: error: ‘XTRXLL_PARAM_EXT_SPI’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_EXT_CLK’?
    r = (r) ? r : xtrxll_set_param(dev->master, XTRXLL_PARAM_EXT_SPI,
                                                ^~~~~~~~~~~~~~~~~~~~
                                                XTRXLL_PARAM_EXT_CLK
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c: In function ‘lms7octo_dd_set_modes’:
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c:666:35: error: ‘XTRXLL_PARAM_EXT_SPI’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_EXT_CLK’?
     xtrxll_set_param(dev->master, XTRXLL_PARAM_EXT_SPI,
                                   ^~~~~~~~~~~~~~~~~~~~
                                   XTRXLL_PARAM_EXT_CLK
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c: In function ‘octo_read_spi’:
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octorx0.c:166:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/home/init3/SDR/xtrx/libxtrx/xtrx_debug.c: In function ‘_xtrx_thread’:
/home/init3/SDR/xtrx/libxtrx/xtrx_debug.c:223:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
     write(data_socket, reply, replen);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMakeFiles/xtrx.dir/build.make:158: recipe for target 'CMakeFiles/xtrx.dir/xtrx_fe_octorx0.c.o' failed
make[2]: *** [CMakeFiles/xtrx.dir/xtrx_fe_octorx0.c.o] Error 1
make[2]: *** 正在等待未完成的任务....
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octocal0.c: In function ‘adf4355_spi’:
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octocal0.c:88:30: error: ‘XTRXLL_PARAM_EXT_SPI’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_EXT_CLK’?
  res = xtrxll_set_param(dev, XTRXLL_PARAM_EXT_SPI, out);
                              ^~~~~~~~~~~~~~~~~~~~
                              XTRXLL_PARAM_EXT_CLK
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octocal0.c:88:30: note: each undeclared identifier is reported only once for each function it appears in
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octocal0.c: In function ‘lms7octocal_tune_fe’:
/home/init3/SDR/xtrx/libxtrx/xtrx_fe_octocal0.c:380:38: error: ‘XTRXLL_PARAM_EXT_SPI’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_EXT_CLK’?
  res = xtrxll_set_param(dev->master, XTRXLL_PARAM_EXT_SPI, 0x0081200B);
                                      ^~~~~~~~~~~~~~~~~~~~
                                      XTRXLL_PARAM_EXT_CLK
CMakeFiles/xtrx.dir/build.make:182: recipe for target 'CMakeFiles/xtrx.dir/xtrx_fe_octocal0.c.o' failed
make[2]: *** [CMakeFiles/xtrx.dir/xtrx_fe_octocal0.c.o] Error 1
[ 40%] Linking C executable test_xtrx_soapy
[ 40%] Built target test_xtrx_soapy
/home/init3/SDR/xtrx/libxtrx/xtrx.c: In function ‘_xtrx_gtime_ctrl’:
/home/init3/SDR/xtrx/libxtrx/xtrx.c:2193:49: error: ‘XTRXLL_PARAM_CURPPS_SETTIME’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_ISOPPS_SETTIME’?
          (fwen) ? XTRXLL_PARAM_ISOPPS_SETTIME : XTRXLL_PARAM_CURPPS_SETTIME,
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                 XTRXLL_PARAM_ISOPPS_SETTIME
/home/init3/SDR/xtrx/libxtrx/xtrx.c:2193:49: note: each undeclared identifier is reported only once for each function it appears in
/home/init3/SDR/xtrx/libxtrx/xtrx.c: In function ‘_xtrx_gtime_op’:
/home/init3/SDR/xtrx/libxtrx/xtrx.c:2267:38: error: ‘XTRXLL_PARAM_CURPPS_SETTIME’ undeclared (first use in this function); did you mean ‘XTRXLL_PARAM_ISOPPS_SETTIME’?
   res = xtrxll_set_param(dev->lldev, XTRXLL_PARAM_CURPPS_SETTIME, in.sec);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                                      XTRXLL_PARAM_ISOPPS_SETTIME
CMakeFiles/xtrx.dir/build.make:62: recipe for target 'CMakeFiles/xtrx.dir/xtrx.c.o' failed
make[2]: *** [CMakeFiles/xtrx.dir/xtrx.c.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/xtrx.dir/all' failed
make[1]: *** [CMakeFiles/xtrx.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

System info:
Ubuntu 18.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant