From Fedora Project Wiki

Description

This test case ensures that the fdk-aac-free library is properly installed and can be linked against in Fedora.

Setup

  1. Ensure the fdk-aac-free library and development files are installed. If not, install them with the command: sudo dnf install fdk-aac-free fdk-aac-free-devel

How to test

  1. Create a simple C++ program named test_fdk_aac.cpp with the following content to link against the library:

  #include <fdk-aac/aacenc_lib.h>
   int main() {
  HANDLE_AACENCODER encoder;
   if (aacEncOpen(&encoder, 0, 2) != AACENC_OK) {
  return 1;
    }
  aacEncClose(&encoder);
  return 0;
   }

  1. Compile the program: g++ test_fdk_aac.cpp -lfdk-aac -o test_fdk_aac
  2. Run the compiled program: ./test_fdk_aac

Expected Results

  1. The program should compile without errors.
  2. When executed, the program should run and exit without any errors.

Optional

Optionally, explore more functionalities of the library and try to implement them in the test program.