f4exb / sdrangel

SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
GNU General Public License v3.0
2.84k stars 431 forks source link

I can't compile it on Kali Linux #2053

Closed Electro-Gamma closed 3 months ago

Electro-Gamma commented 5 months ago
┌──(root㉿kali)-[~]
└─# cd /opt/build
#git clone https://github.com/f4exb/sdrangel.git
cd sdrangel
mkdir build; cd build   
cmake -Wno-dev -DDEBUG_OUTPUT=ON -DRX_SAMPLE_24BIT=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DMIRISDR_DIR=/opt/install/libmirisdr \
-DAIRSPY_DIR=/opt/install/libairspy \
-DAIRSPYHF_DIR=/opt/install/libairspyhf \
-DBLADERF_DIR=/opt/install/libbladeRF \
-DHACKRF_DIR=/opt/install/libhackrf \
-DRTLSDR_DIR=/opt/install/librtlsdr \
-DLIMESUITE_DIR=/opt/install/LimeSuite \
-DIIO_DIR=/opt/install/libiio \
-DPERSEUS_DIR=/opt/install/libperseus \
-DXTRX_DIR=/opt/install/xtrx-images \
-DSOAPYSDR_DIR=/opt/install/SoapySDR \
-DUHD_DIR=/opt/install/uhd \
-DAPT_DIR=/opt/install/aptdec \
-DCM256CC_DIR=/opt/install/cm256cc \
-DDSDCC_DIR=/opt/install/dsdcc \
-DSERIALDV_DIR=/opt/install/serialdv \
-DMBE_DIR=/opt/install/mbelib \
-DCODEC2_DIR=/opt/install/codec2 \
-DSGP4_DIR=/opt/install/sgp4 \
-DLIBSIGMF_DIR=/opt/install/libsigmf \
-DDAB_DIR=/opt/install/libdab \
-DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel ..
make -j $(nproc) install
mkdir: cannot create directory ‘build’: File exists
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.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
-- 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
-- Found Git: /usr/bin/git (found version "2.43.0") 
-- SDRangel Version: 7.19.1
-- Build type set to: RelWithDebInfo
-- Compiling for 24 bit Rx DSP chain
-- Looking for __x86_64__
-- Looking for __x86_64__ - found
-- Target architecture: x86_64-native
-- Performing Test FLAG_SUPPORTED
-- Performing Test FLAG_SUPPORTED - Success
-- Looking for __ARM_NEON
-- Looking for __ARM_NEON - not found
-- Looking for __AVX512F__
-- Looking for __AVX512F__ - not found
-- Looking for __AVX2__
-- Looking for __AVX2__ - not found
-- Looking for __AVX__
-- Looking for __AVX__ - found
-- Looking for __SSE4_2__ - forced found
-- Looking for __SSE4_1__ - forced found
-- Looking for __SSSE3__ - forced found
-- Looking for __SSE3__ - forced found
-- Looking for __SSE2__ - forced found
-- Interprocedural optimization enabled
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") 
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake (found version "1.83.0")  
-- Checking for module 'fftw3f >= 3.0'
--   Found fftw3f, version 3.3.10
-- Found FFTW3F: /usr/lib/x86_64-linux-gnu/libfftw3f.so  
-- Found FFTW3F: /usr/include, /usr/lib/x86_64-linux-gnu/libfftw3f.so, /usr/lib/x86_64-linux-gnu/libfftw3f_threads.so
-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.27
-- Found libusb-1.0: /usr/include/libusb-1.0, /usr/lib/x86_64-linux-gnu/libusb-1.0.so
-- Found OpenCV: /usr (found version "4.6.0") found components: core highgui imgproc imgcodecs videoio 
-- Checking for module 'libsigmf'
--   Package 'libsigmf', required by 'virtual:world', not found
-- Found libsigmf: /opt/install/libsigmf/include, /opt/install/libsigmf/lib/liblibsigmf.so
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3")  
-- Checking for module 'faad2'
--   Found faad2, version 2.11.1
-- FAAD LIBRARY /usr/lib/x86_64-linux-gnu/libfaad.so
-- FAAD INCLUDE DIRS /usr/include
-- Found FAAD: /usr/lib/x86_64-linux-gnu/libfaad.so  
-- Checking for module 'codec2'
--   Package 'codec2', required by 'virtual:world', not found
-- Found Codec2: /opt/install/codec2/include, /opt/install/codec2/lib/libcodec2.so
-- Found CODEC2: /opt/install/codec2/lib/libcodec2.so  
-- Checking for module 'libcm256cc'
--   Package 'libcm256cc', required by 'virtual:world', not found
-- Found CM256cc: /opt/install/cm256cc/include, /opt/install/cm256cc/lib/libcm256cc.so
-- Found CM256CC: /opt/install/cm256cc/lib/libcm256cc.so  
-- Found LibMbe: /opt/install/mbelib/include, 
-- Found libserialdv: /opt/install/serialdv/include/serialdv, /opt/install/serialdv/lib/libserialdv.so
-- Checking for module 'libdsdcc'
--   Package 'libdsdcc', required by 'virtual:world', not found
-- Found libdsdcc: /opt/install/dsdcc/include, /opt/install/dsdcc/lib/libdsdcc.so
-- Checking for module 'sgp4'
--   Package 'sgp4', required by 'virtual:world', not found
-- SGP4 LIBRARIES /opt/install/sgp4/lib/libsgp4s.so
-- SGP4 INCLUDE DIRS /opt/install/sgp4/include/libsgp4
-- Found SGP4: /opt/install/sgp4/lib/libsgp4s.so  
-- Checking for module 'apt'
--   Package 'apt', required by 'virtual:world', not found
-- APT LIBRARIES /opt/install/aptdec/lib/libapt.so
-- APT INCLUDE DIRS /opt/install/aptdec/include/apt
-- Found APT: /opt/install/aptdec/lib/libapt.so  
-- Checking for module 'libdab'
--   Package 'libdab', required by 'virtual:world', not found
-- Found libdab: /opt/install/libdab/include/dab_lib, /opt/install/libdab/lib/libdab_lib.so
-- Found HIDAPI: /usr/include/hidapi  found components: any 
-- Checking for module 'libavcodec'
--   Found libavcodec, version 60.31.102
-- Checking for module 'libavformat'
--   Found libavformat, version 60.16.100
-- Checking for module 'libavdevice'
--   Package 'libavdevice', required by 'virtual:world', not found
-- Checking for module 'libavutil'
--   Found libavutil, version 58.29.100
-- Checking for module 'libavfilter'
--   Package 'libavfilter', required by 'virtual:world', not found
-- Checking for module 'libswscale'
--   Found libswscale, version 7.5.100
-- Checking for module 'libpostproc'
--   Package 'libpostproc', required by 'virtual:world', not found
-- Checking for module 'libswresample'
--   Found libswresample, version 4.12.100
-- Found FFmpeg: /usr/lib/x86_64-linux-gnu/libavcodec.so;/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so  
-- Checking for module 'libairspy'
--   Package 'libairspy', required by 'virtual:world', not found
-- Found libairspy: /opt/install/libairspy/include, /opt/install/libairspy/lib/libairspy.so
-- Checking for module 'libairspyhf'
--   Package 'libairspyhf', required by 'virtual:world', not found
-- Found libairspyhf: /opt/install/libairspyhf/include, /opt/install/libairspyhf/lib/libairspyhf.so
-- Checking for module 'libbladeRF>=2.0'
--   Package 'libbladeRF', required by 'virtual:world', not found
-- libbladerf not found.
-- Checking for module 'libhackrf'
--   Package 'libhackrf', required by 'virtual:world', not found
-- Found libhackrf: /opt/install/libhackrf/include, /opt/install/libhackrf/lib/libhackrf.so
-- Found Lime Suite: /opt/install/LimeSuite/include, /opt/install/LimeSuite/lib/libLimeSuite.so
-- Checking for module 'libiio>=0.7'
--   Package 'libiio', required by 'virtual:world', not found
-- libiio not found.
-- Checking for module 'libmirisdr'
--   Package 'libmirisdr', required by 'virtual:world', not found
-- Found libmirisdr: /opt/install/libmirisdr/include, /opt/install/libmirisdr/lib/libmirisdr.so
-- Checking for module 'libperseus'
--   Package 'libperseus', required by 'virtual:world', not found
-- libperseus not found.
-- Checking for module 'librtlsdr'
--   Found librtlsdr, version 2.0.1
-- Found librtlsdr: /opt/install/librtlsdr/include, /opt/install/librtlsdr/lib/librtlsdr.so
-- Checking for one of the modules 'soapysdr>=0.4.0;SoapySDR>=0.4.0'
-- Found SoapySDR: /opt/install/SoapySDR/include, /opt/install/SoapySDR/lib/libSoapySDR.so
-- Checking for module 'uhd'
--   Found uhd, version 4.6.0.0+ds1-5+b2
-- UHD LIBRARIES /usr/lib/x86_64-linux-gnu/libuhd.so
-- UHD INCLUDE DIRS /usr/include
-- Found UHD: /usr/lib/x86_64-linux-gnu/libuhd.so  
-- SDRPLAY LIBRARIES /usr/local/lib/libsdrplay_api.so
-- SDRPLAY INCLUDE DIRS /usr/local/include
-- Found SDRPLAY: /usr/local/lib/libsdrplay_api.so  
-- Checking for module 'libxtrx'
--   Package 'libxtrx', required by 'virtual:world', not found
-- libxtrx not found.
CMake Error at CMakeLists.txt:838 (add_subdirectory):
  add_subdirectory given source "fcdlib" which is not an existing directory.                            

CMake Error at CMakeLists.txt:839 (add_subdirectory):
  add_subdirectory given source "fcdhid" which is not an existing directory.                            

CMake Error at CMakeLists.txt:843 (add_subdirectory):
  add_subdirectory given source "sdrbase" which is not an existing directory.                           

CMake Error at CMakeLists.txt:844 (add_subdirectory):
  add_subdirectory given source "httpserver" which is not an existing                                   
  directory.                                                                                            

CMake Error at CMakeLists.txt:845 (add_subdirectory):
  add_subdirectory given source "logging" which is not an existing directory.                           

CMake Error at CMakeLists.txt:846 (add_subdirectory):
  add_subdirectory given source "qrtplib" which is not an existing directory.                           

CMake Error at CMakeLists.txt:847 (add_subdirectory):
  add_subdirectory given source "swagger" which is not an existing directory.                           

CMake Error at CMakeLists.txt:850 (add_subdirectory):
  add_subdirectory given source "modemm17" which is not an existing                                     
  directory.                                                                                            

CMake Error at CMakeLists.txt:853 (add_subdirectory):
  add_subdirectory given source "ft8" which is not an existing directory.                               

CMake Error at CMakeLists.txt:858 (add_subdirectory):
  add_subdirectory given source "sdrbench" which is not an existing                                     
  directory.                                                                                            

CMake Error at CMakeLists.txt:861 (add_subdirectory):
  add_subdirectory given source "sdrgui" which is not an existing directory.                            

CMake Error at CMakeLists.txt:862 (add_subdirectory):
  add_subdirectory given source "plugins" which is not an existing directory.                           

CMake Error at CMakeLists.txt:866 (add_subdirectory):
  add_subdirectory given source "sdrsrv" which is not an existing directory.                            

CMake Error at CMakeLists.txt:869 (add_subdirectory):
  add_subdirectory given source "plugins" which is not an existing directory.                           

-- Found Doxygen: /usr/bin/doxygen (found version "1.9.8") found components: doxygen dot 
-- added optional 'make dev_docs' for developer documentation generation
-- Found Dot: /usr/bin/dot  
-- Check for case-sensitive file systems
-- File system is case-sensitive
-- Asking qmake for QT_PLUGINS_DIR and got /usr/lib/x86_64-linux-gnu/qt5/plugins
-- Asking qmake for QT_IMPORTS_DIR and got /usr/lib/x86_64-linux-gnu/qt5/imports
-- Asking qmake for QT_QML_DIR and got /usr/lib/x86_64-linux-gnu/qt5/qml
-- Asking qmake for QT_LIBS_DIR and got /usr/lib/x86_64-linux-gnu
-- CPack generators: 
-- Configuring incomplete, errors occurred!
make: *** No rule to make target 'install'.  Stop.

> 
srcejon commented 5 months ago

Did the git clone work? Do the reported missing directories exist?

Electro-Gamma commented 5 months ago

Did the git clone work? Do the reported missing directories exist?

yes of course everything here : https://github.com/f4exb/sdrangel/wiki/Compile-from-source-in-Linux

Electro-Gamma commented 5 months ago

all cloned git in /opt/build/

and all missing directories exist

srcejon commented 5 months ago

Two things:

mkdir: cannot create directory ‘build’: File exists

Perhaps delete build and start from scratch.

Also, what are all the virtual:world messages?

Electro-Gamma commented 5 months ago

Two things:

mkdir: cannot create directory ‘build’: File exists

Perhaps delete build and start from scratch.

Also, what are all the virtual:world messages?

I don't know, everything is correct but same problem on kali linux 2024.1 arm64 and amd64

github-actions[bot] commented 4 months ago

This issue is going to be closed due to inactivity