hadess / iio-sensor-proxy

IIO accelerometer sensor to input device proxy
197 stars 64 forks source link

Some error on installation #233

Closed Migacz85 closed 6 years ago

Migacz85 commented 6 years ago

Hi, I'm on manjaro trying to install it i got this errors:

./configure --prefix=/usr --sysconfdir=/etc

./configure: line 1930: syntax error near unexpected token `git-directory'
./configure: line 1930: `AX_IS_RELEASE(git-directory)'

some directions what next ?

hadess commented 6 years ago

Install autoconf-archive from your distribution, or use your distribution's packages.

Migacz85 commented 6 years ago

That strange because i have that package.

hadess commented 6 years ago

You'll want to check the errors that might be there earlier in the output, rather than the last thing to fail.

Migacz85 commented 6 years ago

how ?

hadess commented 6 years ago

how ?

By reading the full output of the commands from top to bottom, rather than just the last few lines.

Migacz85 commented 6 years ago

That was my full output.

On Fri, 13 Jul 2018 at 14:52, hadess notifications@github.com wrote:

how ?

By reading the full output of the commands from top to bottom, rather than just the last few lines.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hadess/iio-sensor-proxy/issues/233#issuecomment-404839961, or mute the thread https://github.com/notifications/unsubscribe-auth/AYmGLfBGqUD1IqbQLO-XzGGyq4sQfxNZks5uGKYzgaJpZM4VLM4Q .

hadess commented 6 years ago

You needed to run autogen.sh before configure so that configure gets generated. There were errors in the autogen.sh run which you ignored.

Migacz85 commented 6 years ago

Thank You very much. following your steps i got results :

Making all in data make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/data' GEN iio-sensor-proxy.service make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/data' Making all in src make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' GEN iio-sensor-proxy-resources.c GEN iio-sensor-proxy-resources.h make all-am make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' CC monitor_sensor-monitor-sensor.o CCLD monitor-sensor CC fake_input_accelerometer-fake-input-accelerometer.o CCLD fake-input-accelerometer CC test_mount_matrix-test-mount-matrix.o CC test_mount_matrix-accel-mount-matrix.o CCLD test-mount-matrix CC test_orientation-test-orientation.o CC test_orientation-orientation.o CC test_orientation-accel-mount-matrix.o CCLD test-orientation CC test_orientation_gtk-test-orientation-gtk.o CC test_orientation_gtk-orientation.o CCLD test-orientation-gtk CC iio_sensor_proxy-iio-sensor-proxy.o CC iio_sensor_proxy-orientation.o CC iio_sensor_proxy-drv-iio-buffer-accel.o CC iio_sensor_proxy-drv-iio-poll-accel.o CC iio_sensor_proxy-drv-input-accel.o CC iio_sensor_proxy-drv-fake-compass.o CC iio_sensor_proxy-drv-fake-light.o CC iio_sensor_proxy-drv-iio-poll-light.o CC iio_sensor_proxy-drv-hwmon-light.o CC iio_sensor_proxy-drv-iio-buffer-light.o CC iio_sensor_proxy-drv-iio-buffer-compass.o CC iio_sensor_proxy-iio-buffer-utils.o CC iio_sensor_proxy-accel-mount-matrix.o CC iio_sensor_proxy-iio-sensor-proxy-resources.o CCLD iio-sensor-proxy make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' Making all in docs make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy' make[1]: Nothing to be done for 'all-am'. make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy'

sudo make install

Making install in data make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/data' make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/data' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/etc/dbus-1/system.d' /bin/install -c -m 644 net.hadess.SensorProxy.conf '/etc/dbus-1/system.d' /bin/mkdir -p '/usr/lib/systemd/system' /bin/install -c -m 644 iio-sensor-proxy.service '/usr/lib/systemd/system' /bin/mkdir -p '/usr/lib/udev/rules.d' /bin/install -c -m 644 80-iio-sensor-proxy.rules '/usr/lib/udev/rules.d' make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/data' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/data' Making install in src make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' make install-am make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[3]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' /bin/mkdir -p '/usr/bin' /bin/install -c monitor-sensor '/usr/bin' /bin/mkdir -p '/usr/sbin' /bin/install -c iio-sensor-proxy '/usr/sbin' make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' Making install in docs make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[2]: Nothing to be done for 'install-exec-am'. Nothing to install make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy' make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy'

On Fri, 13 Jul 2018 at 15:26, hadess notifications@github.com wrote:

You needed to run autogen.sh before configure so that configure gets generated. There were errors in the autogen.sh run which you ignored.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hadess/iio-sensor-proxy/issues/233#issuecomment-404849329, or mute the thread https://github.com/notifications/unsubscribe-auth/AYmGLb7D0kv16Dj6HvuN6EXIEyz2Jb_kks5uGK4pgaJpZM4VLM4Q .

Migacz85 commented 6 years ago

It looks that is working :) Thank You very much. Any thoughts how i can induce this in Kde display ?

monitor-sensor Waiting for iio-sensor-proxy to appear +++ iio-sensor-proxy appeared === Has accelerometer (orientation: undefined) === No ambient light sensor Accelerometer orientation changed: normal Accelerometer orientation changed: left-up Accelerometer orientation changed: normal Accelerometer orientation changed: right-up Accelerometer orientation changed: normal Accelerometer orientation changed: left-up Accelerometer orientation changed: normal Accelerometer orientation changed: right-up

On Fri, 13 Jul 2018 at 15:38, Marcin Migacz migacz85@gmail.com wrote:

Thank You very much. following your steps i got results :

Making all in data make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/data' GEN iio-sensor-proxy.service make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/data' Making all in src make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' GEN iio-sensor-proxy-resources.c GEN iio-sensor-proxy-resources.h make all-am make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' CC monitor_sensor-monitor-sensor.o CCLD monitor-sensor CC fake_input_accelerometer-fake-input-accelerometer.o CCLD fake-input-accelerometer CC test_mount_matrix-test-mount-matrix.o CC test_mount_matrix-accel-mount-matrix.o CCLD test-mount-matrix CC test_orientation-test-orientation.o CC test_orientation-orientation.o CC test_orientation-accel-mount-matrix.o CCLD test-orientation CC test_orientation_gtk-test-orientation-gtk.o CC test_orientation_gtk-orientation.o CCLD test-orientation-gtk CC iio_sensor_proxy-iio-sensor-proxy.o CC iio_sensor_proxy-orientation.o CC iio_sensor_proxy-drv-iio-buffer-accel.o CC iio_sensor_proxy-drv-iio-poll-accel.o CC iio_sensor_proxy-drv-input-accel.o CC iio_sensor_proxy-drv-fake-compass.o CC iio_sensor_proxy-drv-fake-light.o CC iio_sensor_proxy-drv-iio-poll-light.o CC iio_sensor_proxy-drv-hwmon-light.o CC iio_sensor_proxy-drv-iio-buffer-light.o CC iio_sensor_proxy-drv-iio-buffer-compass.o CC iio_sensor_proxy-iio-buffer-utils.o CC iio_sensor_proxy-accel-mount-matrix.o CC iio_sensor_proxy-iio-sensor-proxy-resources.o CCLD iio-sensor-proxy make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' Making all in docs make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy' make[1]: Nothing to be done for 'all-am'. make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy'

sudo make install

Making install in data make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/data' make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/data' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/etc/dbus-1/system.d' /bin/install -c -m 644 net.hadess.SensorProxy.conf '/etc/dbus-1/system.d' /bin/mkdir -p '/usr/lib/systemd/system' /bin/install -c -m 644 iio-sensor-proxy.service '/usr/lib/systemd/system' /bin/mkdir -p '/usr/lib/udev/rules.d' /bin/install -c -m 644 80-iio-sensor-proxy.rules '/usr/lib/udev/rules.d' make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/data' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/data' Making install in src make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' make install-am make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[3]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' /bin/mkdir -p '/usr/bin' /bin/install -c monitor-sensor '/usr/bin' /bin/mkdir -p '/usr/sbin' /bin/install -c iio-sensor-proxy '/usr/sbin' make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' Making install in docs make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[2]: Nothing to be done for 'install-exec-am'. Nothing to install make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy' make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy'

On Fri, 13 Jul 2018 at 15:26, hadess notifications@github.com wrote:

You needed to run autogen.sh before configure so that configure gets generated. There were errors in the autogen.sh run which you ignored.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hadess/iio-sensor-proxy/issues/233#issuecomment-404849329, or mute the thread https://github.com/notifications/unsubscribe-auth/AYmGLb7D0kv16Dj6HvuN6EXIEyz2Jb_kks5uGK4pgaJpZM4VLM4Q .

Migacz85 commented 6 years ago

Thank You very much again, that project is a brilliant job !

On Fri, 13 Jul 2018 at 15:46, Marcin Migacz migacz85@gmail.com wrote:

It looks that is working :) Thank You very much. Any thoughts how i can induce this in Kde display ?

monitor-sensor Waiting for iio-sensor-proxy to appear +++ iio-sensor-proxy appeared === Has accelerometer (orientation: undefined) === No ambient light sensor Accelerometer orientation changed: normal Accelerometer orientation changed: left-up Accelerometer orientation changed: normal Accelerometer orientation changed: right-up Accelerometer orientation changed: normal Accelerometer orientation changed: left-up Accelerometer orientation changed: normal Accelerometer orientation changed: right-up

On Fri, 13 Jul 2018 at 15:38, Marcin Migacz migacz85@gmail.com wrote:

Thank You very much. following your steps i got results :

Making all in data make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/data' GEN iio-sensor-proxy.service make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/data' Making all in src make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' GEN iio-sensor-proxy-resources.c GEN iio-sensor-proxy-resources.h make all-am make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' CC monitor_sensor-monitor-sensor.o CCLD monitor-sensor CC fake_input_accelerometer-fake-input-accelerometer.o CCLD fake-input-accelerometer CC test_mount_matrix-test-mount-matrix.o CC test_mount_matrix-accel-mount-matrix.o CCLD test-mount-matrix CC test_orientation-test-orientation.o CC test_orientation-orientation.o CC test_orientation-accel-mount-matrix.o CCLD test-orientation CC test_orientation_gtk-test-orientation-gtk.o CC test_orientation_gtk-orientation.o CCLD test-orientation-gtk CC iio_sensor_proxy-iio-sensor-proxy.o CC iio_sensor_proxy-orientation.o CC iio_sensor_proxy-drv-iio-buffer-accel.o CC iio_sensor_proxy-drv-iio-poll-accel.o CC iio_sensor_proxy-drv-input-accel.o CC iio_sensor_proxy-drv-fake-compass.o CC iio_sensor_proxy-drv-fake-light.o CC iio_sensor_proxy-drv-iio-poll-light.o CC iio_sensor_proxy-drv-hwmon-light.o CC iio_sensor_proxy-drv-iio-buffer-light.o CC iio_sensor_proxy-drv-iio-buffer-compass.o CC iio_sensor_proxy-iio-buffer-utils.o CC iio_sensor_proxy-accel-mount-matrix.o CC iio_sensor_proxy-iio-sensor-proxy-resources.o CCLD iio-sensor-proxy make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' Making all in docs make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy' make[1]: Nothing to be done for 'all-am'. make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy'

sudo make install

Making install in data make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/data' make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/data' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/etc/dbus-1/system.d' /bin/install -c -m 644 net.hadess.SensorProxy.conf '/etc/dbus-1/system.d' /bin/mkdir -p '/usr/lib/systemd/system' /bin/install -c -m 644 iio-sensor-proxy.service '/usr/lib/systemd/system' /bin/mkdir -p '/usr/lib/udev/rules.d' /bin/install -c -m 644 80-iio-sensor-proxy.rules '/usr/lib/udev/rules.d' make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/data' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/data' Making install in src make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' make install-am make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[3]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/src' /bin/mkdir -p '/usr/bin' /bin/install -c monitor-sensor '/usr/bin' /bin/mkdir -p '/usr/sbin' /bin/install -c iio-sensor-proxy '/usr/sbin' make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/src' Making install in docs make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[2]: Nothing to be done for 'install-exec-am'. Nothing to install make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy/docs' make[1]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy' make[2]: Entering directory '/home/migacz/Downloads/iio-sensor-proxy' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy' make[1]: Leaving directory '/home/migacz/Downloads/iio-sensor-proxy'

On Fri, 13 Jul 2018 at 15:26, hadess notifications@github.com wrote:

You needed to run autogen.sh before configure so that configure gets generated. There were errors in the autogen.sh run which you ignored.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hadess/iio-sensor-proxy/issues/233#issuecomment-404849329, or mute the thread https://github.com/notifications/unsubscribe-auth/AYmGLb7D0kv16Dj6HvuN6EXIEyz2Jb_kks5uGK4pgaJpZM4VLM4Q .

hadess commented 6 years ago

Thank You very much. Any thoughts how i can induce this in Kde display ?

As per the README, no. I don't use or work on KDE.

Migacz85 commented 6 years ago

Once again thank You so much for help! I figure it out, and using that simple script my screen is rotating automatically :)

!/bin/bash

monitor-sensor | while read line do if [[ $line =~ .left. ]] then xrandr -o left fi if [[ $line =~ .right. ]] then xrandr -o right fi if [[ $line =~ .bottom-up. ]] then xrandr -o inverted fi if [[ $line =~ .normal. ]] then xrandr -o normal fi done

On Fri, 13 Jul 2018 at 16:08, hadess notifications@github.com wrote:

Thank You very much. Any thoughts how i can induce this in Kde display ?

As per the README, no. I don't use or work on KDE.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hadess/iio-sensor-proxy/issues/233#issuecomment-404861803, or mute the thread https://github.com/notifications/unsubscribe-auth/AYmGLX_mRTFyN1N30CYZl6WXUBB6-Kbvks5uGLf7gaJpZM4VLM4Q .