From Fedora Project Wiki
(Created page with "{{QA/Test_Case |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` |actions= # 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> in...") |
No edit summary |
||
Line 5: | Line 5: | ||
|actions= | |actions= | ||
# Create a simple C++ program named `test_fdk_aac.cpp` with the following content to link against the library: | # 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> | '' | ||
#include <fdk-aac/aacenc_lib.h> | |||
int main() { | int main() { |
Revision as of 13:34, 21 August 2023
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.