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
- 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
- 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; }
- Compile the program:
g++ test_fdk_aac.cpp -lfdk-aac -o test_fdk_aac
- Run the compiled program:
./test_fdk_aac
Expected Results
- The program should compile without errors.
- 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.