OK, off we go:
mkdir ~/BNTXtmp
cd ~/BNTXtmp
wget http://download.opensuse.org/repositories/hardware/openSUSE_Tumbleweed/src/btnx-0.4.11-1.3.src.rpm
wget http://download.opensuse.org/repositories/hardware/openSUSE_Tumbleweed/src/btnx-config-0.4.9-1.5.src.rpm
su -c 'rpm -iUvh btnx*'
(enter rootpassword)
Now you have the source packages installed
Next step is to upack the sources
su
cd /usr/src/packages/SOURCES/
tar -xvf btnx-0.4.11.tar.bz2
tar -xvf btnx-config-0.4.9.tar.gz
You’ll now see 2 folders
drwxr-xr-x 6 33 video 4096 30 apr 2008 btnx-0.4.11
drwxr-xr-x 10 33 video 4096 28 apr 2008 btnx-config-0.4.9
First we go to the btnx program itself and run configure
cd btnx-0.4.11/
./configure
This may throw errors at you about missing packages. That means you need the corresponding -devel package. After doing so, rerun configure until it finishes succesfully. Post output if you can’t find what you’re missing
After succesful finish, we can build the btmx program from the configured sources:
make
After “make” has finished succesfully, you have to install the built program binaries:
make install
Repeat the same commands after changing to the btnx-config-0.4.9 folder, and it will throw a compile error. I fixed this by entering the /usr/src/packages/SOURCES/btnx-config-0.4.9/src/ folder and replacing
-Wl
(a minus sign followed by capital W followed by a lower case L)
by
-Wall
(an "a" and an extra lower case L inserted)
in the files
Makefile
Makefile.am
Makefile.in
then run make again in /usr/src/packages/SOURCES/btnx-config-0.4.9/ . After succesful compile run “make install” from the btnx-config-0.4.9 folder. Then run btnx-config and see if it works. If not, you should seek for another option, I don’t have a mouse to play with and test it atm.