Skip to content

Commit

Permalink
Fix --player=omxplayer needs
Browse files Browse the repository at this point in the history
define TARGET_RASPBERRY_PI
HAVE_OMXLIB, USE_OMXLIB=1, USE_MMAL=1 and HAS_MMAL
omxplayer needs -lvcsm.so -lmmal_core -lmmal_util -lmmal -lmmal_vc_client
Better search libGLESv2 before libEGL as EGL depends on GLESv2 on raspberrypi
  • Loading branch information
atupone authored and popcornmix committed Jun 11, 2016
1 parent eeeb922 commit 5f4b116
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure.ac
Expand Up @@ -924,8 +924,8 @@ if test "$use_gles" = "yes"; then
AC_MSG_RESULT(== WARNING: OpenGLES support is assumed.)
LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm -lmmal -lmmal_core -lmmal_util -lvcsm"
else
AC_CHECK_LIB([EGL], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([GLESv2],[main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([EGL], [main],, AC_MSG_ERROR($missing_library))
fi
fi
else
Expand Down Expand Up @@ -1705,6 +1705,10 @@ fi
case $add_players in
*omxplayer*)
XB_ADD_PLAYER([OMXPLAYER], [omxplayer])
USE_OMXLIB=1; AC_DEFINE([HAVE_OMXLIB],[1],["Define to 1 if OMX libs is enabled"])
USE_MMAL=1; AC_DEFINE([HAS_MMAL],[1],["Define to 1 if MMAL libs is enabled"])
AC_DEFINE([TARGET_RASPBERRY_PI],[1],["Define to 1 for RASPBERRY_PI"])
LIBS="$LIBS -lbcm_host -lvcos -lvchiq_arm -lmmal_vc_client -lmmal -lmmal_core -lmmal_util -lvcsm"
CORE_SYSTEM_VARIANT=omx
;;
esac
Expand Down

0 comments on commit 5f4b116

Please sign in to comment.