tuxmark5 / ApexCtl

An utility to enable extra macro keys on Steelseries Apex keyboards
GNU Lesser General Public License v3.0
101 stars 19 forks source link

Failed to build - Arch #15

Closed JScharloo closed 10 years ago

JScharloo commented 10 years ago
Building ApexCtl-0.0.2...
Preprocessing executable 'apexctl' for ApexCtl-0.0.2...
[1 of 1] Compiling Main             ( src/Main.hs, dist/build/apexctl/apexctl-tmp/Main.o )

src/Main.hs:41:10:
    No instance for (GBinary (GHC.Generics.Rep ApexCommand))
      arising from a use of ‘binary-0.7.1.0:Data.Binary.Class.$gdmget’
    In the expression: binary-0.7.1.0:Data.Binary.Class.$gdmget
    In an equation for ‘get’:
        get = binary-0.7.1.0:Data.Binary.Class.$gdmget
    In the instance declaration for ‘Binary ApexCommand’

src/Main.hs:71:10:
    No instance for (GBinary (GHC.Generics.Rep Color))
      arising from a use of ‘binary-0.7.1.0:Data.Binary.Class.$gdmget’
    In the expression: binary-0.7.1.0:Data.Binary.Class.$gdmget
    In an equation for ‘get’:
        get = binary-0.7.1.0:Data.Binary.Class.$gdmget
    In the instance declaration for ‘Binary Color’
makefile:21: recipe for target 'dist/build/apexctl/apexctl' failed
make: *** [dist/build/apexctl/apexctl] Error 1
kiwistrongis commented 10 years ago

Did you install ghc? I'm no haskell duder, but it looks like it's missing the ghc class definitions. If you haven't read it yet, we've got a little guide thingy here. The dependencies are ghc, libusb 1.0.0 headers, cabal, and the usb and cmdargs cabal packages.

JScharloo commented 10 years ago

Yah, its installed =)

@basvandijk pointed out to me that ApexCommand doesnt delcare the 'get' method.

tuxmark5 commented 10 years ago

I just pushed a version of ApexCtl which defines get functions. It should compile okay now.

JScharloo commented 10 years ago

Thanks. Its all working good. You made my day a happy day :)

Just a sidenote: I had to touch /etc/X11/Xmodmap for the installation to succeed. (It tried to back-up the non-existant file)

tuxmark5 commented 10 years ago

No problem :)

JScharloo commented 10 years ago

In retrospect, I cheered a little bit too soon :)

It appears the scancodes differ for my setup. This is from a xev output:

--M keys 1 trough 12---
144 Find
185 F31
186 F32
184 F30
--M5 Not showing at all--
160 XF86ScreenSaver
160 XF86ScreenSaver
181 F27
148 XF86Calculator
248 NoSymbol
248 NoSymbol
248 NoSymbol
248 NoSymbol
-- MX keys one trough ten--
172 XF86AudioPlay
174 XF86AudioStop
173 XF86AudioPrev
171 XF86AudioNext
169 XF86Eject
123 XF86AudioRaiseVolume
122 XF86AudioLowerVolume
121 XF86AudioMute
158 XF86WWW
166 XF86Back
--Layer keys--
248 NoSymbol
248 NoSymbol
248 NoSymbol
248 NoSymbol
--Right audio keys top to bottom---
123 XF86AudioRaiseVolume
122 XF86AudioLowerVolume
121 XF86AudioMute
173 XF86AudioPrev
171 XF86AudioNext
172 XF86AudioPlay

I have loaded your Xmodmap file into the sys. I will see if I can do some custom mapping tommorow. If you`d like some more information, please do not hesistate to ask.

Great lil` program guys :) I like my new colors already haha

tuxmark5 commented 10 years ago

This means that your 90-apex.hwdb file isn't active. This may be because you have an outdated version of udev/systemd. It is also possible that it might not have been installed correctly.

kiwistrongis commented 10 years ago

Huh, the /etc/X11/Xmodmap thing is my fault, I'll get on that.

kiwistrongis commented 10 years ago

Fixed: af3d7bc40274345abdc48c141b4473f6cf5b7ea9

tuxmark5 commented 10 years ago

kiwistrongis, I've just added you as a collaborator to this repo, so you can push directly without having to issue pull requests. I should have done this earlier, but I forgot that github allowed that.

kiwistrongis commented 10 years ago

Alrighty. I was planning to do some work on the colour profile script, so that'll be useful.

JScharloo commented 10 years ago

A nice suspend/wake and a reload of the Xmodmap have resolved the issue.

Thanks guys - great lil' program you made here!