If you notice spammers in the forum, please notify Bas ON5HB, so they can be removed and banned. Give a link in the chatbox or send a PM to me. Thanks.

Phantom SDR Plus & RX888 - setup

Started by Martin G8JNJ, Sep 23, 2024, 10:55 PM

Previous topic - Next topic

Martin G8JNJ

root@phantom:/home/wessex/PhantomSDR-Plus# meson --reconfigure build
The Meson build system
Version: 0.61.2
Source dir: /home/wessex/PhantomSDR-Plus
Build dir: /home/wessex/PhantomSDR-Plus/build
Build type: native build
Project name: spectrumdistributor
Project version: undefined
C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
meson.build:13: WARNING: Consider using the built-in option for language standard version instead of using "-std=c++23".
meson.build:13: WARNING: Consider using the built-in warning_level option instead of using "-Wall".
meson.build:13: WARNING: Consider using the built-in warning_level option instead of using "-Wextra".
Dependency threads found: YES unknown (cached)
Dependency fftw3f found: YES 3.3.8 (cached)
Library fftw3f_omp found: YES
Dependency openmp found: YES 4.5 (cached)
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency Boost (found: iostreams, system) found: YES 1.74.0 (/usr)
Found CMake: /usr/bin/cmake (3.22.1)
Run-time dependency glaze found: NO (tried pkgconfig and cmake)

Executing subproject glaze method cmake

glaze| Found CMake: /usr/bin/cmake (3.22.1)

| Configuring the build directory with CMake version 3.22.1
| Running CMake with: -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/local
|   - build directory:          /home/wessex/PhantomSDR-Plus/build/subprojects/glaze/__CMake_build
|   - source directory:         /home/wessex/PhantomSDR-Plus/subprojects/glaze
|   - toolchain file:           /home/wessex/PhantomSDR-Plus/build/subprojects/glaze/__CMake_build/CMakeMesonToolchainFile.cmake
|   - preload file:             /home/wessex/PhantomSDR-Plus/build/meson-private/data/preload.cmake
|   - trace args:               --trace-expand --trace-format=json-v1 --no-warn-unused-cli --trace-redirect=cmake_trace.txt
|   - disabled policy warnings: [CMP0025, CMP0047, CMP0056, CMP0060, CMP0065, CMP0066, CMP0067, CMP0082, CMP0089, CMP0102]

| Running with expanded trace output on.
| Not searching for unused variables given on the command line.
| Trace will be written to cmake_trace.txt
| -- The CXX compiler identification is GNU 11.4.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
| -- Fetching dependencies...
| -- ...finished fetching dependencies.
| -- The C compiler identification is GNU 11.4.0
| -- 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
| -- Configuring done
| -- Generating done
| -- Build files have been written to: /home/wessex/PhantomSDR-Plus/build/subprojects/glaze/__CMake_build

glaze| CMake configuration: SUCCEEDED
glaze| WARNING: CMake: path /home/wessex/PhantomSDR-Plus/subprojects/glaze/tests/asio_repe/server/include does not exist.
glaze| WARNING:  --> Ignoring. This can lead to build errors.
glaze| WARNING: CMake: path /home/wessex/PhantomSDR-Plus/subprojects/glaze/tests/asio_repe/client/include does not exist.
glaze| WARNING:  --> Ignoring. This can lead to build errors.
glaze| CMake project glaze has 52 build targets.

cmake-ast| Processing generated meson AST
cmake-ast| Build file: /home/wessex/PhantomSDR-Plus/build/subprojects/glaze/meson.build

glaze| Project name: glaze
glaze| Project version: undefined
glaze| C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
glaze| C linker for the host machine: cc ld.bfd 2.38
glaze| C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
glaze| C++ linker for the host machine: c++ ld.bfd 2.38
glaze| Build targets in project: 47
glaze| Subproject glaze finished.


Library liquid found: YES
Dependency libzstd found: YES 1.4.8 (cached)
Dependency flac++ found: YES 1.3.3 (cached)
Run-time dependency aom found: NO (tried pkgconfig and cmake)
Dependency opus found: YES 1.3.1 (cached)
Dependency zlib found: YES 1.2.11 (cached)

Executing subproject websocketpp

websocketpp| Project name: websocketpp
websocketpp| Project version: 0.8.2
websocketpp| C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
websocketpp| C++ linker for the host machine: c++ ld.bfd 2.38
websocketpp| Build targets in project: 47
websocketpp| Subproject websocketpp finished.

Run-time dependency tomlplusplus found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency tomlplusplus

Executing subproject tomlplusplus

tomlplusplus| Project name: tomlplusplus
tomlplusplus| Project version: 3.4.0
tomlplusplus| C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
tomlplusplus| C++ linker for the host machine: c++ ld.bfd 2.38
tomlplusplus| Message: target cpu_family: x86_64
tomlplusplus| Message: target cpu: x86_64
tomlplusplus| Message: target system: linux
tomlplusplus| Message: target endian: little
tomlplusplus| Compiler for C++ supports arguments -ferror-limit=5: NO (cached)
tomlplusplus| Compiler for C++ supports arguments -fmax-errors=5: YES (cached)
tomlplusplus| Compiler for C++ supports arguments -Wno-unused-command-line-argument: NO (cached)
tomlplusplus| Compiler for C++ supports arguments -Wno-reserved-macro-identifier: NO (cached)
tomlplusplus| Compiler for C++ supports arguments -Wno-init-list-lifetime: YES (cached)
tomlplusplus| Compiler for C++ supports arguments -fchar8_t: YES (cached)
tomlplusplus| Compiler for C++ supports arguments /bigobj: NO (cached)
tomlplusplus| Compiler for C++ supports arguments /Gy: NO (cached)
tomlplusplus| Compiler for C++ supports arguments /GF: NO (cached)
tomlplusplus| Compiler for C++ supports arguments /openmp-: NO (cached)
tomlplusplus| Compiler for C++ supports arguments /permissive-: NO (cached)
tomlplusplus| Compiler for C++ supports arguments /utf-8: NO (cached)
tomlplusplus| Compiler for C++ supports arguments /volatile:iso: NO (cached)
tomlplusplus| Compiler for C++ supports arguments /Zc:__cplusplus: NO (cached)
tomlplusplus| Compiler for C++ supports arguments /Zc:inline: NO (cached)
tomlplusplus| Compiler for C++ supports arguments /Zc:externConstexpr: NO (cached)
tomlplusplus| Compiler for C++ supports arguments /Zc:preprocessor: NO (cached)
tomlplusplus| Compiler for C++ supports arguments /Zc:throwingNew: NO (cached)
tomlplusplus| Compiler for C++ supports arguments -D_HAS_EXCEPTIONS=1: YES (cached)
tomlplusplus| Compiler for C++ supports arguments -Wno-c++98-compat: NO (cached)
tomlplusplus| Compiler for C++ supports arguments -Wno-c++98-compat-pedantic: NO (cached)
tomlplusplus| Compiler for C++ supports arguments -Wno-documentation: NO (cached)
tomlplusplus| Compiler for C++ supports arguments -Wno-documentation-unknown-command: NO (cached)
tomlplusplus| Compiler for C++ supports arguments -Wno-switch-enum: YES (cached)
tomlplusplus| Compiler for C++ supports arguments -Wno-covered-switch-default: NO (cached)
tomlplusplus| Compiler for C++ supports arguments -Wno-padded: YES (cached)
tomlplusplus| Compiler for C++ supports arguments -Wno-float-equal: YES (cached)
tomlplusplus| Compiler for C++ supports arguments -DTOML_HEADER_ONLY=0: YES (cached)
tomlplusplus| Compiler for C++ supports arguments -DTOML_SHARED_LIB=1: YES (cached)
tomlplusplus| Build targets in project: 48
tomlplusplus| Subproject tomlplusplus finished.

Dependency tomlplusplus found: YES 3.4.0 (overridden)
Run-time dependency CUDA (modules: cudart) found: NO (tried system)
Run-time dependency cufft found: NO (tried pkgconfig and cmake)
Dependency OpenCL found: YES 3.0 (cached)
Dependency clFFT found: YES 2.12.2 (cached)
Library stdc++fs found: YES
Dependency libcurl found: YES 7.81.0 (cached)
Compiler for language cuda for the build machine not found.
Compiler for language cuda for the host machine not found.
Build targets in project: 49

spectrumdistributor undefined

  Subprojects
    glaze       : YES
    tomlplusplus: YES
    websocketpp : YES

  User defined options
    optimization: 3

Martin G8JNJ

Lots of warnings, but it gets worse towards the end


root@phantom:/home/wessex/PhantomSDR-Plus# meson compile -C build
ninja: Entering directory `/home/wessex/PhantomSDR-Plus/build'
[1/21] Compiling C++ object spectrumserver.p/src_samplereader.cpp.o
../src/samplereader.cpp: In function 'void convert(float*, T_signed*, float, siz                                    e_t)':
../src/samplereader.cpp:29:5: warning: attributes at the beginning of statement                                      are ignored [-Wattributes]
  29 |    [[assume(num > 0)]];
      |    ^~~~~~~~~~~~~~~~~~~
[2/21] Compiling C++ object spectrumserver.p/src_client.cpp.o
In file included from ../src/client.cpp:1:
../src/client.h:90:7: warning: 'class Client' has virtual functions and accessib                                    le non-virtual destructor [-Wnon-virtual-dtor]
  90 | class Client {
      |      ^~~~~~
[4/21] Compiling C++ object spectrumserver.p/src_fft.cpp.o
In file included from ../src/spectrumserver.h:13,
                from ../src/fft.cpp:2:
../src/client.h:90:7: warning: 'class Client' has virtual functions and accessib                                    le non-virtual destructor [-Wnon-virtual-dtor]
  90 | class Client {
      |      ^~~~~~
In file included from ../src/spectrumserver.h:16,
                from ../src/fft.cpp:2:
../src/signal.h:58:7: warning: base class 'class Client' has accessible non-virt                                    ual destructor [-Wnon-virtual-dtor]
  58 | class AudioClient : public Client {
      |      ^~~~~~~~~~~
In file included from ../src/spectrumserver.h:17,
                from ../src/fft.cpp:2:
../src/waterfall.h:11:7: warning: base class 'class Client' has accessible non-v                                    irtual destructor [-Wnon-virtual-dtor]
  11 | class WaterfallClient : public Client {
      |      ^~~~~~~~~~~~~~~
In file included from ../src/spectrumserver.h:19,
                from ../src/fft.cpp:2:
../src/chat.h:11:7: warning: base class 'class Client' has accessible non-virtua                                    l destructor [-Wnon-virtual-dtor]
  11 | class ChatClient : public Client {
      |      ^~~~~~~~~~
../src/fft.cpp: In member function 'void broadcast_server::fft_task()':
../src/fft.cpp:48:10: warning: variable 'prev_data' set but not used [-Wunused-b                                    ut-set-variable]
  48 |    auto prev_data = std::chrono::steady_clock::now();
      |          ^~~~~~~~~
[7/21] Compiling C++ object spectrumserver.p/src_http.cpp.o
In file included from ../src/spectrumserver.h:13,
                from ../src/http.cpp:2:
../src/client.h:90:7: warning: 'class Client' has virtual functions and accessib                                    le non-virtual destructor [-Wnon-virtual-dtor]
  90 | class Client {
      |      ^~~~~~
In file included from ../src/spectrumserver.h:16,
                from ../src/http.cpp:2:
../src/signal.h:58:7: warning: base class 'class Client' has accessible non-virt                                    ual destructor [-Wnon-virtual-dtor]
  58 | class AudioClient : public Client {
      |      ^~~~~~~~~~~
In file included from ../src/spectrumserver.h:17,
                from ../src/http.cpp:2:
../src/waterfall.h:11:7: warning: base class 'class Client' has accessible non-v                                    irtual destructor [-Wnon-virtual-dtor]
  11 | class WaterfallClient : public Client {
      |      ^~~~~~~~~~~~~~~
In file included from ../src/spectrumserver.h:19,
                from ../src/http.cpp:2:
../src/chat.h:11:7: warning: base class 'class Client' has accessible non-virtua                                    l destructor [-Wnon-virtual-dtor]
  11 | class ChatClient : public Client {
      |      ^~~~~~~~~~
[8/21] Compiling C++ object spectrumserver.p/src_waterfall.cpp.o
In file included from ../src/waterfall.h:4,
                from ../src/waterfall.cpp:3:
../src/client.h:90:7: warning: 'class Client' has virtual functions and accessib                                    le non-virtual destructor [-Wnon-virtual-dtor]
  90 | class Client {
      |      ^~~~~~
In file included from ../src/waterfall.cpp:3:
../src/waterfall.h:11:7: warning: base class 'class Client' has accessible non-v                                    irtual destructor [-Wnon-virtual-dtor]
  11 | class WaterfallClient : public Client {
      |      ^~~~~~~~~~~~~~~
[9/21] Compiling C++ object spectrumserver.p/src_signal.cpp.o
In file included from ../src/audio.h:20,
                from ../src/signal.h:4,
                from ../src/signal.cpp:5:
../src/client.h:90:7: warning: 'class Client' has virtual functions and accessib                                    le non-virtual destructor [-Wnon-virtual-dtor]
  90 | class Client {
      |      ^~~~~~
In file included from ../src/signal.cpp:5:
../src/signal.h:58:7: warning: base class 'class Client' has accessible non-virt                                    ual destructor [-Wnon-virtual-dtor]
  58 | class AudioClient : public Client {
      |      ^~~~~~~~~~~
[10/21] Compiling C++ object spectrumserver.p/src_audio.cpp.o
In file included from ../src/audio.h:20,
                from ../src/audio.cpp:1:
../src/client.h:90:7: warning: 'class Client' has virtual functions and accessib                                    le non-virtual destructor [-Wnon-virtual-dtor]
  90 | class Client {
      |      ^~~~~~
[11/21] Compiling C++ object spectrumserver.p/src_utils_dsp.cpp.o
../src/utils/dsp.cpp: In function 'void dsp_negate_float(float*, size_t)':
../src/utils/dsp.cpp:78:5: warning: attributes at the beginning of statement are                                      ignored [-Wattributes]
  78 |    [[assume(len > 0)]];
      |    ^~~~~~~~~~~~~~~~~~~
../src/utils/dsp.cpp: In function 'void dsp_negate_complex(std::complex<float>*,                                      size_t)':
../src/utils/dsp.cpp:86:5: warning: attributes at the beginning of statement are                                      ignored [-Wattributes]
  86 |    [[assume(len > 0)]];
      |    ^~~~~~~~~~~~~~~~~~~
../src/utils/dsp.cpp: In function 'void dsp_add_float(float*, float*, size_t)':
../src/utils/dsp.cpp:95:5: warning: attributes at the beginning of statement are                                      ignored [-Wattributes]
  95 |    [[assume(len > 0)]];
      |    ^~~~~~~~~~~~~~~~~~~
../src/utils/dsp.cpp: In function 'void dsp_add_complex(std::complex<float>*, st                                    d::complex<float>*, size_t)':
../src/utils/dsp.cpp:105:5: warning: attributes at the beginning of statement ar                                    e ignored [-Wattributes]
  105 |    [[assume(len > 0)]];
      |    ^~~~~~~~~~~~~~~~~~~
../src/utils/dsp.cpp: In function 'void dsp_am_demod(std::complex<float>*, float                                    *, size_t)':
../src/utils/dsp.cpp:118:5: warning: attributes at the beginning of statement ar                                    e ignored [-Wattributes]
  118 |    [[assume(len > 0)]];
      |    ^~~~~~~~~~~~~~~~~~~
../src/utils/dsp.cpp: In function 'void dsp_float_to_int16(float*, int32_t*, flo                                    at, size_t)':
../src/utils/dsp.cpp:154:5: warning: attributes at the beginning of statement ar                                    e ignored [-Wattributes]
  154 |    [[assume(len > 0)]];
      |    ^~~~~~~~~~~~~~~~~~~
../src/utils/dsp.cpp:157:9: warning: unused variable 'minimum' [-Wunused-variabl                                    e]
  157 |    int minimum = 32767;
      |        ^~~~~~~
../src/utils/dsp.cpp:158:9: warning: unused variable 'maximum' [-Wunused-variabl                                    e]
  158 |    int maximum = -32768;
      |        ^~~~~~~
../src/utils/dsp.cpp: In function 'void dsp_float_to_int8(float*, int32_t*, floa                                    t, size_t)':
../src/utils/dsp.cpp:168:5: warning: attributes at the beginning of statement ar                                    e ignored [-Wattributes]
  168 |    [[assume(len > 0)]];
      |    ^~~~~~~~~~~~~~~~~~~
[13/21] Compiling C++ object spectrumserver.p/src_waterfallcompression.cpp.o
In file included from ../src/waterfallcompression.h:4,
                from ../src/waterfallcompression.cpp:1:
../src/client.h:90:7: warning: 'class Client' has virtual functions and accessib                                    le non-virtual destructor [-Wnon-virtual-dtor]
  90 | class Client {
      |      ^~~~~~
[15/21] Compiling C++ object spectrumserver.p/src_fft_impl.cpp.o
../src/fft_impl.cpp: In member function 'virtual int FFTW::execute()':
../src/fft_impl.cpp:151:9: warning: unused variable 'normalize' [-Wunused-variab                                    le]
  151 |    int normalize = size;
      |        ^~~~~~~~~
[16/21] Compiling C++ object spectrumserver.p/src_websocket.cpp.o
In file included from ../src/websocket.cpp:1:
../src/client.h:90:7: warning: 'class Client' has virtual functions and accessib                                    le non-virtual destructor [-Wnon-virtual-dtor]
  90 | class Client {
      |      ^~~~~~
In file included from ../src/websocket.cpp:2:
../src/signal.h:58:7: warning: base class 'class Client' has accessible non-virt                                    ual destructor [-Wnon-virtual-dtor]
  58 | class AudioClient : public Client {
      |      ^~~~~~~~~~~
In file included from ../src/spectrumserver.h:17,
                from ../src/websocket.cpp:3:
../src/waterfall.h:11:7: warning: base class 'class Client' has accessible non-v                                    irtual destructor [-Wnon-virtual-dtor]
  11 | class WaterfallClient : public Client {
      |      ^~~~~~~~~~~~~~~
In file included from ../src/spectrumserver.h:19,
                from ../src/websocket.cpp:3:
../src/chat.h:11:7: warning: base class 'class Client' has accessible non-virtua                                    l destructor [-Wnon-virtual-dtor]
  11 | class ChatClient : public Client {
      |      ^~~~~~~~~~
../src/websocket.cpp: In member function 'void broadcast_server::on_open_signal(                                    websocketpp::connection_hdl, conn_type)':
../src/websocket.cpp:138:49: warning: unused parameter 'signal_type' [-Wunused-p                                    arameter]
  138 |                                      conn_type signal_type) {
      |                                      ~~~~~~~~~~^~~~~~~~~~~
[17/21] Compiling C++ object spectrumserver.p/src_events.cpp.o
In file included from ../src/spectrumserver.h:13,
                from ../src/events.cpp:1:
../src/client.h:90:7: warning: 'class Client' has virtual functions and accessib                                    le non-virtual destructor [-Wnon-virtual-dtor]
  90 | class Client {
      |      ^~~~~~
In file included from ../src/spectrumserver.h:16,
                from ../src/events.cpp:1:
../src/signal.h:58:7: warning: base class 'class Client' has accessible non-virt                                    ual destructor [-Wnon-virtual-dtor]
  58 | class AudioClient : public Client {
      |      ^~~~~~~~~~~
In file included from ../src/spectrumserver.h:17,
                from ../src/events.cpp:1:
../src/waterfall.h:11:7: warning: base class 'class Client' has accessible non-v                                    irtual destructor [-Wnon-virtual-dtor]
  11 | class WaterfallClient : public Client {
      |      ^~~~~~~~~~~~~~~
In file included from ../src/spectrumserver.h:19,
                from ../src/events.cpp:1:
../src/chat.h:11:7: warning: base class 'class Client' has accessible non-virtua                                    l destructor [-Wnon-virtual-dtor]
  11 | class ChatClient : public Client {
      |      ^~~~~~~~~~
[19/21] Compiling C++ object spectrumserver.p/src_chat.cpp.o
In file included from ../src/spectrumserver.h:13,
                from ../src/chat.cpp:2:
../src/client.h:90:7: warning: 'class Client' has virtual functions and accessib                                    le non-virtual destructor [-Wnon-virtual-dtor]
  90 | class Client {
      |      ^~~~~~
In file included from ../src/spectrumserver.h:16,
                from ../src/chat.cpp:2:
../src/signal.h:58:7: warning: base class 'class Client' has accessible non-virt                                    ual destructor [-Wnon-virtual-dtor]
  58 | class AudioClient : public Client {
      |      ^~~~~~~~~~~
In file included from ../src/spectrumserver.h:17,
                from ../src/chat.cpp:2:
../src/waterfall.h:11:7: warning: base class 'class Client' has accessible non-v                                    irtual destructor [-Wnon-virtual-dtor]
  11 | class WaterfallClient : public Client {
      |      ^~~~~~~~~~~~~~~
In file included from ../src/spectrumserver.h:19,
                from ../src/chat.cpp:2:
../src/chat.h:11:7: warning: base class 'class Client' has accessible non-virtua                                    l destructor [-Wnon-virtual-dtor]
  11 | class ChatClient : public Client {
      |      ^~~~~~~~~~
../src/chat.cpp: In member function 'virtual void ChatClient::on_chat_message(we                                    bsocketpp::connection_hdl, std::string&, std::string&)':
../src/chat.cpp:84:49: warning: unused parameter 'sender_hdl' [-Wunused-paramete                                    r]
  84 | void ChatClient::on_chat_message(connection_hdl sender_hdl, std::string&                                      username, std::string& message) {
      |                                  ~~~~~~~~~~~~~~~^~~~~~~~~~
[20/21] Compiling C++ object spectrumserver.p/src_spectrumserver.cpp.o
In file included from ../src/spectrumserver.h:13,
                from ../src/spectrumserver.cpp:1:
../src/client.h:90:7: warning: 'class Client' has virtual functions and accessib                                    le non-virtual destructor [-Wnon-virtual-dtor]
  90 | class Client {
      |      ^~~~~~
In file included from ../src/spectrumserver.h:16,
                from ../src/spectrumserver.cpp:1:
../src/signal.h:58:7: warning: base class 'class Client' has accessible non-virt                                    ual destructor [-Wnon-virtual-dtor]
  58 | class AudioClient : public Client {
      |      ^~~~~~~~~~~
In file included from ../src/spectrumserver.h:17,
                from ../src/spectrumserver.cpp:1:
../src/waterfall.h:11:7: warning: base class 'class Client' has accessible non-v                                    irtual destructor [-Wnon-virtual-dtor]
  11 | class WaterfallClient : public Client {
      |      ^~~~~~~~~~~~~~~
In file included from ../src/spectrumserver.h:19,
                from ../src/spectrumserver.cpp:1:
../src/chat.h:11:7: warning: base class 'class Client' has accessible non-virtua                                    l destructor [-Wnon-virtual-dtor]
  11 | class ChatClient : public Client {
      |      ^~~~~~~~~~
../src/spectrumserver.cpp: In function 'int main(int, char**)':
../src/spectrumserver.cpp:471:12: warning: ignoring return value of 'FILE* freop                                    en(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result                                    ' [-Wunused-result]
  471 |    freopen(NULL, "rb", stdin);
      |    ~~~~~~~^~~~~~~~~~~~~~~~~~~

Martin G8JNJ

[21/21] Linking target spectrumserver
FAILED: spectrumserver
c++  -o spectrumserver spectrumserver.p/src_spectrumserver.cpp.o spectrumserver.p/src_samplereader.cpp.o spectrumserver.p/src_websocket.cpp.o spectrumserver.p/src_http.cpp.o spectrumserver.p/src_fft.cpp.o spectrumserver.p/src_client.cpp.o spectrumserver.p/src_signal.cpp.o spectrumserver.p/src_waterfall.cpp.o spectrumserver.p/src_events.cpp.o spectrumserver.p/src_audio.cpp.o spectrumserver.p/src_chat.cpp.o spectrumserver.p/src_waterfallcompression.cpp.o spectrumserver.p/src_utils_dsp.cpp.o spectrumserver.p/src_utils_audioprocessing.cpp.o spectrumserver.p/src_fft_impl.cpp.o spectrumserver.p/src_utils.cpp.o spectrumserver.p/src_compression.cpp.o -Wl,--as-needed -Wl,--no-undefined '-Wl,-rpath,$ORIGIN/subprojects/tomlplusplus-3.4.0/src' -Wl,-rpath-link,/home/wessex/PhantomSDR-Plus/build/subprojects/tomlplusplus-3.4.0/src -Wl,--start-group subprojects/tomlplusplus-3.4.0/src/libtomlplusplus.so.3.4.0 -lstdc++fs -pthread /usr/lib/x86_64-linux-gnu/libfftw3f.so -lfftw3f_omp -fopenmp /usr/lib/x86_64-linux-gnu/libOpenCL.so /usr/lib/x86_64-linux-gnu/libclFFT.so /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.74.0 /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libzstd.so /usr/lib/x86_64-linux-gnu/libFLAC++.so /usr/lib/x86_64-linux-gnu/libFLAC.so /usr/lib/x86_64-linux-gnu/libopus.so /usr/lib/x86_64-linux-gnu/libz.so -lliquid /usr/lib/x86_64-linux-gnu/libcurl.so -lstdc++ -Wl,--end-group
/usr/bin/ld: warning: libOpenCL.so.1, needed by /usr/lib/x86_64-linux-gnu/libclFFT.so, not found (try using -rpath or -rpath-link)

Martin G8JNJ

/usr/bin/ld: spectrumserver.p/src_spectrumserver.cpp.o: in function `cl::detail::ReferenceHandler<_cl_command_queue*>::release(_cl_command_queue*)':
/usr/include/CL/opencl.hpp:1724: undefined reference to `clReleaseCommandQueue'
/usr/bin/ld: spectrumserver.p/src_spectrumserver.cpp.o: in function `cl::detail::ReferenceHandler<_cl_context*>::release(_cl_context*)':
/usr/include/CL/opencl.hpp:1715: undefined reference to `clReleaseContext'
/usr/bin/ld: spectrumserver.p/src_spectrumserver.cpp.o: in function `cl::detail::ReferenceHandler<_cl_device_id*>::release(_cl_device_id*)':
/usr/include/CL/opencl.hpp:1680: undefined reference to `clReleaseDevice'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_mem*>::release(_cl_mem*)':
/usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o:/usr/include/CL/opencl.hpp:1733: more undefined references to `clReleaseMemObject' follow

Martin G8JNJ


/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_kernel*>::release(_cl_kernel*)':
/usr/include/CL/opencl.hpp:1760: undefined reference to `clReleaseKernel'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1760: undefined reference to `clReleaseKernel'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1760: undefined reference to `clReleaseKernel'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1760: undefined reference to `clReleaseKernel'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_program*>::release(_cl_program*)':
/usr/include/CL/opencl.hpp:1751: undefined reference to `clReleaseProgram'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_command_queue*>::release(_cl_command_queue*)':
/usr/include/CL/opencl.hpp:1724: undefined reference to `clReleaseCommandQueue'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_context*>::release(_cl_context*)':
/usr/include/CL/opencl.hpp:1715: undefined reference to `clReleaseContext'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_device_id*>::release(_cl_device_id*)':
/usr/include/CL/opencl.hpp:1680: undefined reference to `clReleaseDevice'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Buffer::Buffer(cl::Context const&, unsigned long, unsigned long, void*, int*)':
/usr/include/CL/opencl.hpp:3916: undefined reference to `clCreateBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_mem*>::release(_cl_mem*)':
/usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Buffer::Buffer(cl::Context const&, unsigned long, unsigned long, void*, int*)':
/usr/include/CL/opencl.hpp:3916: undefined reference to `clCreateBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_mem*>::release(_cl_mem*)':
/usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Buffer::Buffer(cl::Context const&, unsigned long, unsigned long, void*, int*)':
/usr/include/CL/opencl.hpp:3916: undefined reference to `clCreateBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_mem*>::release(_cl_mem*)':
/usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Buffer::Buffer(cl::Context const&, unsigned long, unsigned long, void*, int*)':
/usr/include/CL/opencl.hpp:3916: undefined reference to `clCreateBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_mem*>::release(_cl_mem*)':
/usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::CommandQueue::enqueueMapBuffer(cl::Buffer const&, unsigned int, unsigned long, unsigned long, unsigned long, std::vector<cl::Event, std::allocator<cl::Event> > const*, cl::Event*, int*) const':
/usr/include/CL/opencl.hpp:8109: undefined reference to `clEnqueueMapBuffer'
/usr/bin/ld: /usr/include/CL/opencl.hpp:8109: undefined reference to `clEnqueueMapBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Buffer::Buffer(cl::Context const&, unsigned long, unsigned long, void*, int*)':
/usr/include/CL/opencl.hpp:3916: undefined reference to `clCreateBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_mem*>::release(_cl_mem*)':
/usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Buffer::Buffer(cl::Context const&, unsigned long, unsigned long, void*, int*)':
/usr/include/CL/opencl.hpp:3916: undefined reference to `clCreateBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_mem*>::release(_cl_mem*)':
/usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Buffer::Buffer(cl::Context const&, unsigned long, unsigned long, void*, int*)':
/usr/include/CL/opencl.hpp:3916: undefined reference to `clCreateBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_mem*>::release(_cl_mem*)':
/usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Buffer::Buffer(cl::Context const&, unsigned long, unsigned long, void*, int*)':
/usr/include/CL/opencl.hpp:3916: undefined reference to `clCreateBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_mem*>::release(_cl_mem*)':
/usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::CommandQueue::enqueueMapBuffer(cl::Buffer const&, unsigned int, unsigned long, unsigned long, unsigned long, std::vector<cl::Event, std::allocator<cl::Event> > const*, cl::Event*, int*) const':
/usr/include/CL/opencl.hpp:8109: undefined reference to `clEnqueueMapBuffer'
/usr/bin/ld: /usr/include/CL/opencl.hpp:8109: undefined reference to `clEnqueueMapBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_command_queue*>::retain(_cl_command_queue*)':
/usr/include/CL/opencl.hpp:1722: undefined reference to `clRetainCommandQueue'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `std::enable_if<!std::is_pointer<cl::Buffer>::value, int>::type cl::Kernel::setArg<cl::Buffer>(unsigned int, cl::Buffer const&)':
/usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: /usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: /usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `std::enable_if<!std::is_pointer<float>::value, int>::type cl::Kernel::setArg<float>(unsigned int, float const&)':
/usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `std::enable_if<!std::is_pointer<int>::value, int>::type cl::Kernel::setArg<int>(unsigned int, int const&)':
/usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o:/usr/include/CL/opencl.hpp:6093: more undefined references to `clSetKernelArg' follow
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::CommandQueue::enqueueNDRangeKernel(cl::Kernel const&, cl::NDRange const&, cl::NDRange const&, cl::NDRange const&, std::vector<cl::Event, std::allocator<cl::Event> > const*, cl::Event*) const':
/usr/include/CL/opencl.hpp:8570: undefined reference to `clEnqueueNDRangeKernel'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_event*>::release(_cl_event*)':
/usr/include/CL/opencl.hpp:1769: undefined reference to `clReleaseEvent'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1769: undefined reference to `clReleaseEvent'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_command_queue*>::release(_cl_command_queue*)':
/usr/include/CL/opencl.hpp:1724: undefined reference to `clReleaseCommandQueue'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_command_queue*>::retain(_cl_command_queue*)':
/usr/include/CL/opencl.hpp:1722: undefined reference to `clRetainCommandQueue'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `std::enable_if<!std::is_pointer<cl::Buffer>::value, int>::type cl::Kernel::setArg<cl::Buffer>(unsigned int, cl::Buffer const&)':
/usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: /usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: /usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `std::enable_if<!std::is_pointer<int>::value, int>::type cl::Kernel::setArg<int>(unsigned int, int const&)':
/usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: /usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o:/usr/include/CL/opencl.hpp:6093: more undefined references to `clSetKernelArg' follow
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::CommandQueue::enqueueNDRangeKernel(cl::Kernel const&, cl::NDRange const&, cl::NDRange const&, cl::NDRange const&, std::vector<cl::Event, std::allocator<cl::Event> > const*, cl::Event*) const':
/usr/include/CL/opencl.hpp:8570: undefined reference to `clEnqueueNDRangeKernel'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_event*>::release(_cl_event*)':
/usr/include/CL/opencl.hpp:1769: undefined reference to `clReleaseEvent'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1769: undefined reference to `clReleaseEvent'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_command_queue*>::release(_cl_command_queue*)':
/usr/include/CL/opencl.hpp:1724: undefined reference to `clReleaseCommandQueue'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::CommandQueue::enqueueReadBuffer(cl::Buffer const&, unsigned int, unsigned long, unsigned long, void*, std::vector<cl::Event, std::allocator<cl::Event> > const*, cl::Event*) const':
/usr/include/CL/opencl.hpp:7619: undefined reference to `clEnqueueReadBuffer'
/usr/bin/ld: /usr/include/CL/opencl.hpp:7619: undefined reference to `clEnqueueReadBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::CommandQueue::finish() const':
/usr/include/CL/opencl.hpp:8817: undefined reference to `clFinish'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_command_queue*>::retain(_cl_command_queue*)':
/usr/include/CL/opencl.hpp:1722: undefined reference to `clRetainCommandQueue'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `std::enable_if<!std::is_pointer<cl::Buffer>::value, int>::type cl::Kernel::setArg<cl::Buffer>(unsigned int, cl::Buffer const&)':
/usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: /usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: /usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `std::enable_if<!std::is_pointer<float>::value, int>::type cl::Kernel::setArg<float>(unsigned int, float const&)':
/usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `std::enable_if<!std::is_pointer<int>::value, int>::type cl::Kernel::setArg<int>(unsigned int, int const&)':
/usr/include/CL/opencl.hpp:6093: undefined reference to `clSetKernelArg'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o:/usr/include/CL/opencl.hpp:6093: more undefined references to `clSetKernelArg' follow
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::CommandQueue::enqueueNDRangeKernel(cl::Kernel const&, cl::NDRange const&, cl::NDRange const&, cl::NDRange const&, std::vector<cl::Event, std::allocator<cl::Event> > const*, cl::Event*) const':
/usr/include/CL/opencl.hpp:8570: undefined reference to `clEnqueueNDRangeKernel'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_event*>::release(_cl_event*)':
/usr/include/CL/opencl.hpp:1769: undefined reference to `clReleaseEvent'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1769: undefined reference to `clReleaseEvent'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_command_queue*>::release(_cl_command_queue*)':
/usr/include/CL/opencl.hpp:1724: undefined reference to `clReleaseCommandQueue'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Platform::get(std::vector<cl::Platform, std::allocator<cl::Platform> >*)':
/usr/include/CL/opencl.hpp:2715: undefined reference to `clGetPlatformIDs'
/usr/bin/ld: /usr/include/CL/opencl.hpp:2721: undefined reference to `clGetPlatformIDs'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::GetInfoFunctor0<int (*)(_cl_platform_id*, unsigned int, unsigned long, void*, unsigned long*), _cl_platform_id*>::operator()(unsigned int, unsigned long, void*, unsigned long*)':
/usr/include/CL/opencl.hpp:1619: undefined reference to `clGetPlatformInfo'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Platform::getDevices(unsigned long, std::vector<cl::Device, std::allocator<cl::Device> >*) const':
/usr/include/CL/opencl.hpp:2584: undefined reference to `clGetDeviceIDs'
/usr/bin/ld: /usr/include/CL/opencl.hpp:2591: undefined reference to `clGetDeviceIDs'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_device_id*>::release(_cl_device_id*)':
/usr/include/CL/opencl.hpp:1680: undefined reference to `clReleaseDevice'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_device_id*>::retain(_cl_device_id*)':
/usr/include/CL/opencl.hpp:1669: undefined reference to `clRetainDevice'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::GetInfoFunctor0<int (*)(_cl_device_id*, unsigned int, unsigned long, void*, unsigned long*), _cl_device_id*>::operator()(unsigned int, unsigned long, void*, unsigned long*)':
/usr/include/CL/opencl.hpp:1619: undefined reference to `clGetDeviceInfo'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Context::Context(cl::Device const&, long const*, void (*)(char const*, void const*, unsigned long, void*), void*, int*)':
/usr/include/CL/opencl.hpp:2933: undefined reference to `clCreateContext'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_context*>::release(_cl_context*)':
/usr/include/CL/opencl.hpp:1715: undefined reference to `clReleaseContext'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::CommandQueue::CommandQueue(cl::Context const&, cl::Device const&, unsigned long, int*)':
/usr/include/CL/opencl.hpp:7440: undefined reference to `clCreateCommandQueueWithProperties'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_command_queue*>::release(_cl_command_queue*)':
/usr/include/CL/opencl.hpp:1724: undefined reference to `clReleaseCommandQueue'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1724: undefined reference to `clReleaseCommandQueue'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_context*>::release(_cl_context*)':
/usr/include/CL/opencl.hpp:1715: undefined reference to `clReleaseContext'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Buffer::Buffer(cl::Context const&, unsigned long, unsigned long, void*, int*)':
/usr/include/CL/opencl.hpp:3916: undefined reference to `clCreateBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_mem*>::release(_cl_mem*)':
/usr/include/CL/opencl.hpp:1733: undefined reference to `clReleaseMemObject'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::CommandQueue::enqueueWriteBuffer(cl::Buffer const&, unsigned int, unsigned long, unsigned long, void const*, std::vector<cl::Event, std::allocator<cl::Event> > const*, cl::Event*) const':
/usr/include/CL/opencl.hpp:7644: undefined reference to `clEnqueueWriteBuffer'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Program::Program(cl::Context const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, int*)':
/usr/include/CL/opencl.hpp:6392: undefined reference to `clCreateProgramWithSource'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_program*>::release(_cl_program*)':
/usr/include/CL/opencl.hpp:1751: undefined reference to `clReleaseProgram'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Program::build(cl::Device const&, char const*, void (*)(_cl_program*, void*), void*) const':
/usr/include/CL/opencl.hpp:6702: undefined reference to `clBuildProgram'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::GetInfoFunctor1<int (*)(_cl_program*, _cl_device_id*, unsigned int, unsigned long, void*, unsigned long*), _cl_program*, _cl_device_id*>::operator()(unsigned int, unsigned long, void*, unsigned long*)':
/usr/include/CL/opencl.hpp:1628: undefined reference to `clGetProgramBuildInfo'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_device_id*>::retain(_cl_device_id*)':
/usr/include/CL/opencl.hpp:1669: undefined reference to `clRetainDevice'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_device_id*>::release(_cl_device_id*)':
/usr/include/CL/opencl.hpp:1680: undefined reference to `clReleaseDevice'
/usr/bin/ld: /usr/include/CL/opencl.hpp:1680: undefined reference to `clReleaseDevice'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Kernel::Kernel(cl::Program const&, char const*, int*)':
/usr/include/CL/opencl.hpp:7067: undefined reference to `clCreateKernel'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_kernel*>::release(_cl_kernel*)':
/usr/include/CL/opencl.hpp:1760: undefined reference to `clReleaseKernel'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Kernel::Kernel(cl::Program const&, char const*, int*)':
/usr/include/CL/opencl.hpp:7067: undefined reference to `clCreateKernel'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_kernel*>::release(_cl_kernel*)':
/usr/include/CL/opencl.hpp:1760: undefined reference to `clReleaseKernel'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Kernel::Kernel(cl::Program const&, char const*, int*)':
/usr/include/CL/opencl.hpp:7067: undefined reference to `clCreateKernel'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::detail::ReferenceHandler<_cl_kernel*>::release(_cl_kernel*)':
/usr/include/CL/opencl.hpp:1760: undefined reference to `clReleaseKernel'
/usr/bin/ld: spectrumserver.p/src_fft_impl.cpp.o: in function `cl::Kernel::Kernel(cl::Program const&, char const*, int*)':


Martin G8JNJ

Sorry about that my editing didn't work

Bas ON5HB

So it doesn't see the opencl library....

Did you perform this? Then tried to compile?

sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so

That solved the problem with linking for me.

As I can't see what you are doing, I can only guess you didn't do that.

It solved for me the final compiling.
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Martin G8JNJ


Which directory should that be done from ?

If I try from PhantomSDR-Plus


root@phantom:/home/wessex/PhantomSDR-Plus# sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so
ln: failed to create symbolic link '/usr/lib/libOpenCL.so': File exists




Quote from: Bas ON5HB on Sep 25, 2024, 06:09 PMSo it doesn't see the opencl library....

Did you perform this? Then tried to compile?


sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so

That solved the problem with linking for me.

As I can't see what you are doing, I can only guess you didn't do that.

It solved for me the final compiling.

Bas ON5HB

The line is directory included, doesn't matter where you run it, as long as it's on the websdr-computer ;D

The line you have may be wrong and missing the directory parts.

Have seen it before. Check the exsiting link, it's probably without directory-parts

Won't be a first that lib's aren't found....like the Windows-dll-hell :o
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

magicint1337

Try to run

sudo ldconfig

Then recompile
Maintainer and Developer of PhantomSDR-Plus

Bas ON5HB

Quote from: magicint1337 on Sep 25, 2024, 06:24 PMTry to run

sudo ldconfig

Then recompile

That shouldn't be needed after a reboot, but I have seen that to solve many things in the past ;D

That should be a default line of the install.sh ;D
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Martin G8JNJ


root@phantom:/# sudo ldconfig
/sbin/ldconfig.real: File /lib/x86_64-linux-gnu/libOpenCL.so.1.0.0 is empty, not checked.
/sbin/ldconfig.real: File /lib/x86_64-linux-gnu/libOpenCL.so.1 is empty, not checked.
/sbin/ldconfig.real: File /lib/x86_64-linux-gnu/libOpenCL.so is empty, not checked.
/sbin/ldconfig.real: File /lib/libOpenCL.so is empty, not checked.

Bas ON5HB

Did you run this?

sudo apt install ocl-icd-opencl-dev

Looks like you are missing this part....else apt purge and reinstall.

Then reboot and try again.
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

magicint1337

Yea apt purge and run sudo ldconfig again

The libs are broken

Reboot should not be needed when the ldconfig is run
Maintainer and Developer of PhantomSDR-Plus

Bas ON5HB

Quote from: magicint1337 on Sep 25, 2024, 06:34 PMYea apt purge and run sudo ldconfig again

The libs are broken

Reboot should not be needed when the ldconfig is run

I like to see people rebooting all the time ;D  8)
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Powered by EzPortal