KejPi / AbracaDABra

Abraca DAB radio: DAB/DAB+ Software Defined Radio (SDR)
MIT License
58 stars 8 forks source link

libfaad2 not found in system - libfaad-dev required as well? #20

Closed andimik closed 2 years ago

andimik commented 2 years ago

I already have successfully installed AbracaDABra on one laptop recently, and remember I had the same issue, but I have no idea how I solved it.

On my other laptop I have installed 22.04 and installed all required libraries, but cmake returns in an error:

$ cmake ..
-- Build type not specified: defaulting to release.
-- libdabsdr found: /home/andreas/apps/AbracaDABra/lib/linux_x86_64/libdabsdr.so
-- Checking for one of the modules 'rtlsdr'
-- Checking for one of the modules 'usb-1.0'
-- Checking for one of the modules 'faad'
CMake Warning at CMakeLists.txt:223 (message):
  libfaad2 not found in system, searching in
  /home/andreas/apps/AbracaDABra/../AbracaDABra-libs

FATALlibfaad2 not found. Build from source and install to: /home/andreas/apps/AbracaDABra/../AbracaDABra-libs
-- Checking for one of the modules 'mpg123'
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBFAAD2_INCLUDE_DIRS
   used as include directory in directory /home/andreas/apps/AbracaDABra/gui
   used as include directory in directory /home/andreas/apps/AbracaDABra/gui
   used as include directory in directory /home/andreas/apps/AbracaDABra/gui
LIBFAAD2_LINK_LIBRARIES
    linked by target "AbracaDABra" in directory /home/andreas/apps/AbracaDABra/gui

CMake Error in gui/CMakeLists.txt:
  Found relative path while evaluating include directories of "AbracaDABra":

    "LIBFAAD2_INCLUDE_DIRS-NOTFOUND"

CMake Error in gui/CMakeLists.txt:
  Found relative path while evaluating include directories of "AbracaDABra":

    "LIBFAAD2_INCLUDE_DIRS-NOTFOUND"

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
/$ sudo find | grep libfaad2
./var/lib/dpkg/info/libfaad2:amd64.shlibs
./var/lib/dpkg/info/libfaad2:amd64.triggers
./var/lib/dpkg/info/libfaad2:amd64.md5sums
./var/lib/dpkg/info/libfaad2:amd64.list
./var/lib/dpkg/info/libfaad2:amd64.symbols
./var/cache/apt/archives/libfaad2_2.10.0-2_amd64.deb
./usr/share/doc/libfaad2
./usr/share/doc/libfaad2/copyright
./usr/share/doc/libfaad2/changelog.Debian.gz
$ sudo apt-get install libfaad2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libfaad2 is already the newest version (2.10.0-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

It seems that one of the following packages (which are required for https://github.com/Opendigitalradio/dablin ) solved it, obviously libfaad-dev

sudo apt-get install libmpg123-dev libfaad-dev libsdl2-dev libgtkmm-3.0-dev
$ cmake ..
-- Build type not specified: defaulting to release.
-- libdabsdr found: /home/andreas/apps/AbracaDABra/lib/linux_x86_64/libdabsdr.so
-- Checking for one of the modules 'rtlsdr'
-- Checking for one of the modules 'usb-1.0'
-- Checking for one of the modules 'faad'
-- Checking for one of the modules 'mpg123'
-- Found XKB: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "1.4.0", minimum required is "0.5.0") 
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/andreas/apps/AbracaDABra/build
andimik commented 2 years ago

Fixed in 39f9b9dece496690918d068919e27ad5af10e112 and https://github.com/KejPi/AbracaDABra/pull/22