Admin-Ahead Community

General Category => General Discussion => Topic started by: jominj on April 08, 2014, 02:10:04 pm

Title: Error: While Manually Compiling FAAC in Ubuntu 13.10
Post by: jominj on April 08, 2014, 02:10:04 pm
FAAC is a free software project which includes AAC encoder and decoder.While manually compiling this package in Ubuntu 13.10 we may get error like the following:
Code: [Select]
mpeg4ip.h:126:58: error: new declaration ‘char* strcasestr(const char*, const char*)’
 char *strcasestr(const char *haystack, const char *needle);
                                     ^

We can resolve this error and Install FAAC successfully by following below steps:

1. When we analyze the error we can see the problem is with mpeg4ip.h header file in line number 126.

2. search for  the mpeg4ip.h file in the downloaded package file and open it in a text editor.

3. move to the line number 126 as specified in the error.

4. We can see lines like the following:
Code: [Select]
#ifdef __cplusplus
extern "C" {
#endif
char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif
We have to comment this part like the following:
Code: [Select]
/*
#ifdef __cplusplus
extern "C" {
#endif
char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif
*/

5. Then reconfigure and install the package.