Siga os comandos abaixo, testei todas estas possibilidades:
git clone git://git.bues.ch/razer.git
cd razer
mkdir build
cd build
cmake ..
make
ou
git clone git://git.bues.ch/razer.git
cd razer
cmake .
make
ou
wget http://bues.ch/razercfg/razercfg-0.32.tar.bz2
tar xf razercfg-0.32.tar.bz2
cd razercfg-0.32
cmake .
make
Depois disso:
sudo checkinstall
ou se houver problemas de dependência
sudo make install
Agora siga os passos em README
If you use systemd:
The
make install
step installed the razerd.service file. Reboot or run the following command as root to start the razerd daemon:
systemctl start razerd
If you do NOT use systemd:
To automatically start the required system daemon "razerd" at bootup time, you need to install the init-script. This software package includes a generic example script, that should work out-of-the-box on many Linux distributions. To install it, invoke the following commands as root:
cp ./razerd.initscript /etc/init.d/razerd
ln -s /etc/init.d/razerd /etc/rc2.d/S99razerd
ln -s /etc/init.d/razerd /etc/rc5.d/S99razerd
ln -s /etc/init.d/razerd /etc/rc0.d/K01razerd
ln -s /etc/init.d/razerd /etc/rc6.d/K01razerd
If you use udev:
The
make install
step installed the udev script to$(pkg-config --variable=udevdir udev)/rules.d/80-razer.rules
This should work on most distributions.If udev notification does not work, try to reboot the system.
Exemplo de saída cmake .
e make
[aboettger:~/tmp/razercfg-0.32] % cmake .
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for libusb.h
-- Looking for libusb.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/aboettger/tmp/razercfg-0.32
[aboettger:~/tmp/razercfg-0.32] % make
Scanning dependencies of target razer
[ 5%] Building C object librazer/CMakeFiles/razer.dir/buttonmapping.o
[ 10%] Building C object librazer/CMakeFiles/razer.dir/profile_emulation.o
[ 15%] Building C object librazer/CMakeFiles/razer.dir/librazer.o
[ 20%] Building C object librazer/CMakeFiles/razer.dir/config.o
[ 25%] Building C object librazer/CMakeFiles/razer.dir/util.o
[ 30%] Building C object librazer/CMakeFiles/razer.dir/synapse.o
[ 35%] Building C object librazer/CMakeFiles/razer.dir/cypress_bootloader.o
[ 40%] Building C object librazer/CMakeFiles/razer.dir/hw_boomslangce.o
[ 45%] Building C object librazer/CMakeFiles/razer.dir/hw_copperhead.o
[ 50%] Building C object librazer/CMakeFiles/razer.dir/hw_deathadder.o
[ 55%] Building C object librazer/CMakeFiles/razer.dir/hw_deathadder2013.o
[ 60%] Building C object librazer/CMakeFiles/razer.dir/hw_deathadder_chroma.o
[ 65%] Building C object librazer/CMakeFiles/razer.dir/hw_krait.o
[ 70%] Building C object librazer/CMakeFiles/razer.dir/hw_lachesis.o
[ 75%] Building C object librazer/CMakeFiles/razer.dir/hw_lachesis5k6.o
[ 80%] Building C object librazer/CMakeFiles/razer.dir/hw_naga.o
[ 85%] Building C object librazer/CMakeFiles/razer.dir/hw_imperator.o
[ 90%] Building C object librazer/CMakeFiles/razer.dir/hw_taipan.o
Linking C shared library librazer.so
[ 90%] Built target razer
Scanning dependencies of target razerd
[ 95%] Building C object razerd/CMakeFiles/razerd.dir/razerd.o
Linking C executable razerd
[ 95%] Built target razerd
Scanning dependencies of target pyrazer
[100%] Generating build/stamp
running build
running build_py
creating /home/aboettger/tmp/razercfg-0.32/ui/build
creating /home/aboettger/tmp/razercfg-0.32/ui/build/lib
creating /home/aboettger/tmp/razercfg-0.32/ui/build/lib/pyrazer
copying pyrazer/main.py -> /home/aboettger/tmp/razercfg-0.32/ui/build/lib/pyrazer
copying pyrazer/__init__.py -> /home/aboettger/tmp/razercfg-0.32/ui/build/lib/pyrazer
running build_scripts
creating /home/aboettger/tmp/razercfg-0.32/ui/build/scripts-3.4
copying and adjusting razercfg -> /home/aboettger/tmp/razercfg-0.32/ui/build/scripts-3.4
copying and adjusting qrazercfg -> /home/aboettger/tmp/razercfg-0.32/ui/build/scripts-3.4
changing mode of /home/aboettger/tmp/razercfg-0.32/ui/build/scripts-3.4/razercfg from 664 to 775
changing mode of /home/aboettger/tmp/razercfg-0.32/ui/build/scripts-3.4/qrazercfg from 664 to 775
[100%] Built target pyrazer
Exemplo de saída sudo checkinstall
[aboettger:~/tmp/razercfg-0.32] % sudo checkinstall
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
*****************************************
**** Debian package creation selected ***
*****************************************
This package will be built according to these values:
0 - Maintainer: [ root@sturm ]
1 - Summary: [ Package created with checkinstall 1.6.2 ]
2 - Name: [ razercfg ]
3 - Version: [ 0.32 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ razercfg-0.32 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ razercfg ]
12 - Conflicts: [ ]
13 - Replaces: [ ]
Enter a number to change any of them or press ENTER to continue:
Installing with make install...
========================= Installation results ===========================
[ 90%] Built target razer
[ 95%] Built target razerd
[100%] Built target pyrazer
Install the project...
-- Install configuration: ""
-- Installing: /lib/udev/rules.d/80-razer.rules
-- udevadm control --reload-rules: 0
-- Installing: /etc/pm/sleep.d/50-razer
-- Installing: /lib/systemd/system/razerd.service
-- systemctl --system daemon-reload: 0
-- systemctl --system enable razerd.service: 0
-- Installing: /usr/local/lib/librazer.so
-- ldconfig: 0
-- Installing: /usr/local/bin/razerd
-- Removed runtime path from "/usr/local/bin/razerd"
running install
running build
running build_py
running build_scripts
running install_lib
creating /usr/local/lib/python3.4
creating /usr/local/lib/python3.4/dist-packages
creating /usr/local/lib/python3.4/dist-packages/pyrazer
copying build/lib/pyrazer/main.py -> /usr/local/lib/python3.4/dist-packages/pyrazer
copying build/lib/pyrazer/__init__.py -> /usr/local/lib/python3.4/dist-packages/pyrazer
byte-compiling /usr/local/lib/python3.4/dist-packages/pyrazer/main.py to main.cpython-34.pyc
byte-compiling /usr/local/lib/python3.4/dist-packages/pyrazer/__init__.py to __init__.cpython-34.pyc
running install_scripts
copying build/scripts-3.4/qrazercfg -> /usr/local/bin
copying build/scripts-3.4/razercfg -> /usr/local/bin
changing mode of /usr/local/bin/qrazercfg to 775
changing mode of /usr/local/bin/razercfg to 775
running install_egg_info
Writing /usr/local/lib/python3.4/dist-packages/razercfg-0.32-py3.4.egg-info
-- Installing: /usr/local/bin/razer-gamewrapper
======================== Installation successful ==========================
Copying documentation directory...
./
./README
./COPYING
Some of the files created by the installation are inside the home directory: /home
You probably don't want them to be included in the package.
Do you want me to list them? [n]:
Should I exclude them from the package? (Saying yes is a good idea) [n]:
Some of the files created by the installation are inside the build
directory: /home/aboettger/tmp/razercfg-0.32
You probably don't want them to be included in the package,
especially if they are inside your home directory.
Do you want me to list them? [n]:
Should I exclude them from the package? (Saying yes is a good idea) [y]:
Copying files to the temporary directory...OK
Stripping ELF binaries and libraries...OK
Compressing man pages...OK
Building file list...OK
Building Debian package...OK
Installing Debian package...OK
Erasing temporary files...OK
Writing backup package...OK
OK
Deleting temp dir...OK
**********************************************************************
Done. The new package has been installed and saved to
/home/aboettger/tmp/razercfg-0.32/razercfg_0.32-1_amd64.deb
You can remove it from your system anytime using:
dpkg -r razercfg
**********************************************************************