Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong AC_CHECK_LIB for the vpx library #16

Open
giulianoc opened this issue Dec 24, 2017 · 0 comments
Open

Wrong AC_CHECK_LIB for the vpx library #16

giulianoc opened this issue Dec 24, 2017 · 0 comments

Comments

@giulianoc
Copy link

Hi,
in vireo/vireo/configure.ac we have the following row to check the existence of the vpx library.
AC_CHECK_LIB([vpx], [vpx_free])
I guess this is wrong because in my case did not find the vpx_free function.
In fact AC_CHECK_LB build the program
#ifdef __cplusplus
extern "C"
#endif
char vpx_free ();
int
main ()
{
return vpx_free ();
return 0;
}
and it fails when it is compiled
g++ -o conftest -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -I/app/2/giuliano/tmp/vireo/vireoBinaries/include -I/app/2/giuliano/tmp/vireo/libwebm -L/app/2/giuliano/tmp/vireo/vireoBinaries/lib -L/app/2/giuliano/tmp/vireo/libwebm a.cpp -lvorbisenc -lvorbis -lpthread -logg -lfdk-aac -llsmash -lvpx
/tmp/ccUMBT2f.o: In function main': /app/2/giuliano/tmp/vireo/vireo/vireo/a.cpp:10: undefined reference to vpx_free()'
collect2: error: ld returned 1 exit status

I suggest to change the check using the following row
AC_CHECK_LIB([vpx], [vpx_codec_dec_init_ver])
This one works fine.
Best regards
giu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant