v4l-utils fixes
cover v4l-utils fixes
Hi folks,
The two patches add instructions for building static binaries as well as fix a few warnings in libdvb5.
Sakari Ailus (2):
Add instructions for building static binaries
libdvb5: Fix unused local variable warnings
INSTALL | 16 ++++++++++++++++ lib/libdvbv5/dvb-dev-local.c | 5 +++-- 2 files changed, 19 insertions(+), 2 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/2 Add instructions for building static binaries
Static binaries are useful e.g. when copying test binaries to other systems. Document how to build them.
--- INSTALL | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
INSTALL +16 -0
@@ -53,6 +53,22 @@ export PKG_CONFIG_LIBDIR=/path/to/cross/root/lib ./configure --host=arm-linux-gnueabihf --without-jpeg make +Building static binaries: +------------------------- + +Fully static binares can be built by setting LDFLAGS for the configure and +using an option for disabling shared libraries: + + $ LDFLAGS="--static -static" ./configure --disable-shared + +Note that this requires static variants of all the libraries needed for +linking which may not be available in all systems. + +In order to build binaries that are not dependent on libraries contained +in v4l-utils, simply use the --disable-shared option: + + $ ./configure --disable-shared + Android Cross Compiling and Installing: ----------------
Signature · 1 line
2.7.4
PATCH 2/2 libdvb5: Fix unused local variable warnings
In reply to Sakari AilusSome local variables are only needed conditionally depending on available system support for e.g. pthreads. Put these variables behind same #ifdefs so that no warnings are produced if these features aren't available.
--- lib/libdvbv5/dvb-dev-local.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
lib/libdvbv5/dvb-dev-local.c +3 -2
@@ -296,7 +296,6 @@ static int dvb_local_find(struct dvb_device_priv *dvb,struct udev_enumerate *enumerate;struct udev_list_entry *devices, *dev_list_entry;struct udev_device *dev; -int ret;/* Free a previous list of devices */ if (dvb->d.num_devices)
@@ -346,6 +345,8 @@ static int dvb_local_find(struct dvb_device_priv *dvb,/* Begin monitoring udev events */ #ifdef HAVE_PTHREAD if (priv->notify_dev_change) { +int ret; + ret =pthread_create (&priv->dev_change_id,NULL , monitor_device_changes, dvb);if (ret <0 ) {
@@ -364,9 +365,9 @@ static int dvb_local_find(struct dvb_device_priv *dvb,static int dvb_local_stop_monitor (struct dvb_device_priv *dvb) { +#ifdef HAVE_PTHREAD struct dvb_dev_local_priv *priv = dvb->priv; -#ifdef HAVE_PTHREAD if (priv->notify_dev_change) {pthread_cancel (priv->dev_change_id);udev_unref (priv->udev);
Signature · 1 line
2.7.4
Em Thu, 5 Apr 2018 13:00:38 +0300
Sakari Ailus <[email protected]> escreveu:
Quoted 5 lines
Hi folks,
The two patches add instructions for building static binaries as well as fix a few warnings in libdvb5.
Quoted 8 lines
Sakari Ailus (2):
Add instructions for building static binaries
libdvb5: Fix unused local variable warningsINSTALL | 16 ++++++++++++++++ lib/libdvbv5/dvb-dev-local.c | 5 +++-- 2 files changed, 19 insertions(+), 2 deletions(-)
Both patches look ok on my eyes.
Thanks,
Mauro