Installing btnx for the Logitech MX Revolution mouse

I am having a bit of a problem. I have downloaded the btnx and the btnx-config files. I want to install them because I want complete access to my Logitech MX Revolution mouse.

I read that I had to install the btnx-config file first so that is what I tried. When I opened a shell and went to where I had stored the package, I opened the INSTALL text file and followed the instructions. The first was type in ./configure. I did and got the following:

silkmaze@linux-lz1z:~/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9> ./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking for style of include used by make… GNU
checking dependency style of gcc… gcc3
checking whether make sets $(MAKE)… (cached) yes
checking for scrollkeeper-config… no
checking for gksu… no
checking for kdesu… kdesu
checking for tar… /bin/tar
checking for pkg-config… /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking for GTK… yes
checking for GLIB… yes
checking for GLADE… configure: error: Package requirements (libglade-2.0 >= 2.6.0) were not met:

No package ‘libglade-2.0’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLADE_CFLAGS
and GLADE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

silkmaze@linux-lz1z:~/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9>

I thought that the libglade-2.0 error might be because I hadn’t carried out the command as su, so I logged in as su and carried out the command again, with the same results.

I checked and found that the libglade-2.0 was installed.

I wanted to see what would happen with the btnx ./configure and got the following:

silkmaze@linux-lz1z:~/My-Stuff/Applications/Software/BTNX/btnx-0.4.11> ./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking for style of include used by make… GNU
checking dependency style of gcc… gcc3
checking whether make sets $(MAKE)… (cached) yes
checking for pkg-config… /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking for LIBDAEMON… configure: error: Package requirements (libdaemon >= 0.10) were not met:

No package ‘libdaemon’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBDAEMON_CFLAGS
and LIBDAEMON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

silkmaze@linux-lz1z:~/My-Stuff/Applications/Software/BTNX/btnx-0.4.11>

Once again I checked and the libdaemon was installed.

I am not sure how to set the flags mentioned at the end of the two error messages. If someone could help, that would be greatly appreciated.

Thanks.

silkmaze adjusted his/her AFDB on Saturday 01 Aug 2009 09:46 to write:

>
> Once again I checked and the libdaemon was installed.
>
> I am not sure how to set the flags mentioned at the end of the two
> error messages. If someone could help, that would be greatly
> appreciated.
>
> Thanks.
>
>

You might have the libs installed but for compiling you need the
corresponding devel files installed to accommodate compiling stuff from
source, these supply all the developer stuff.

Use YaST and search for:

libdaemon

You should see:

libdaemon0
libdaemon-devel

select the devel and install, same goes for any other errors/deps that the
config script calls for.

HTH


Mark
Caveat emptor
Nullus in verba
Nil illegitimi carborundum

Thank I’ll check that right now.

silkmaze adjusted his/her AFDB on Saturday 01 Aug 2009 14:46 to write:

>
> Thank I’ll check that right now.
>
>

Did I mention the word devel a little too much there :slight_smile:

I seem to be either repeating myself or not putting all the data in stuff
today, do apologise.

:slight_smile:


Mark
Caveat emptor
Nullus in verba
Nil illegitimi carborundum

Well, as I said, I installed all the developers files went back into the directories and typed in ./configure. That worked perfectly. Then, as per the instructions in the install file, I typed make. That too worked without a problem. After that, I typed in make install and for the most part it worked except at the end I got the following error messages (I won’t put in the complete read out, just the error message part, that came at the end):

For the btnx configuration file:

make[1]: Leaving directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9/intl' Making install in src make[1]: Entering directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9/src’
make[2]: Entering directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9/src' test -z "/usr/sbin" || /bin/mkdir -p "/usr/sbin" /usr/bin/install -c 'btnx-config' '/usr/sbin/btnx-config' /usr/bin/install: cannot create regular file /usr/sbin/btnx-config’: Permission denied
make[2]: *** [install-sbinPROGRAMS] Error 1
make[2]: Leaving directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9/src’
make: *** [install-recursive] Error 1

For the btnx file, about half way down:

make[1]: Leaving directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9/intl' Making install in src make[1]: Entering directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9/src’
make[2]: Entering directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9/src' test -z "/usr/sbin" || /bin/mkdir -p "/usr/sbin" /usr/bin/install -c 'btnx-config' '/usr/sbin/btnx-config' /usr/bin/install: cannot create regular file /usr/sbin/btnx-config’: Permission denied
make[2]: *** [install-sbinPROGRAMS] Error 1
make[2]: Leaving directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-config-0.4.9/src’
make: *** [install-recursive] Error 1

and at the end:

configure: creating ./config.status
/bin/sh ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
Making install in src
make[1]: Entering directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-0.4.11/src' gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -W -Wunused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wswitch -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls pkg-config --cflags libdaemon-g -O2 -MT btnx.o -MD -MP -MF .deps/btnx.Tpo -c -o btnx.o btnx.c mv -f .deps/btnx.Tpo .deps/btnx.Po gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -W -Wunused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wswitch -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-declspkg-config --cflags libdaemon-g -O2 -MT config_parser.o -MD -MP -MF .deps/config_parser.Tpo -c -o config_parser.o config_parser.c mv -f .deps/config_parser.Tpo .deps/config_parser.Po gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -W -Wunused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wswitch -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-declspkg-config --cflags libdaemon-g -O2 -MT device.o -MD -MP -MF .deps/device.Tpo -c -o device.o device.c mv -f .deps/device.Tpo .deps/device.Po gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -W -Wunused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wswitch -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-declspkg-config --cflags libdaemon-g -O2 -MT revoco.o -MD -MP -MF .deps/revoco.Tpo -c -o revoco.o revoco.c mv -f .deps/revoco.Tpo .deps/revoco.Po gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -W -Wunused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wswitch -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-declspkg-config --cflags libdaemon-g -O2 -MT uinput.o -MD -MP -MF .deps/uinput.Tpo -c -o uinput.o uinput.c mv -f .deps/uinput.Tpo .deps/uinput.Po gcc -Wall -Werror -W -Wunused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wswitch -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-declspkg-config --cflags libdaemon-g -O2pkg-config --libs libdaemon -o btnx btnx.o config_parser.o device.o revoco.o uinput.o make[2]: Entering directory/home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-0.4.11/src’
test -z “/usr/local/sbin” || /bin/mkdir -p “/usr/local/sbin”
/usr/bin/install -c ‘btnx’ ‘/usr/local/sbin/btnx’
/usr/bin/install: cannot create regular file /usr/local/sbin/btnx': Permission denied make[2]: *** [install-sbinPROGRAMS] Error 1 make[2]: Leaving directory /home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-0.4.11/src’
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/silkmaze/My-Stuff/Applications/Software/BTNX/btnx-0.4.11/src’
make: *** [install-recursive] Error 1
silkmaze@linux-lz1z:~/My-Stuff/Applications/Software/BTNX/btnx-0.4.11>

All this is beyond me. I haven’t got a clue what is going on or what I need/should do.

Thanks for helping.

Hi
Normally you run configure, then make, then to install you need to use
sudo make install not just make install as the directories are not
owned by your user :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 2 days 2:26, 2 users, load average: 0.26, 0.46, 0.53
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14

I went back in and carried out the make install as su. It worked perfectly.

Thank you very much.