Logitech G13 driver compilation issue

Issues related to hardware problems
Post Reply
loy
Posts: 1
Joined: 2019/06/29 13:02:58

Logitech G13 driver compilation issue

Post by loy » 2019/06/29 13:16:52

Hi!

I am new here, sorry if posting on wrong place, but for me it's a hardware issue, not pure software.
I have a Logitech G13 game controller and I want it to work under CentOS7.
I try to compile this driver from source: https://github.com/ecraven/g13
I researched for the missing libraries and it compiles the .c files to .o, but when it try to link it I got an error message, which I can't manage:

g++ -o g13d -std=c++0x \
g13_main.o g13.o g13_log.o g13_fonts.o g13_lcd.o g13_stick.o g13_keys.o helper.o \
-lusb-1.0 -lboost_program_options \
-lboost_log \
-lboost_system -lpthread
/bin/ld: cannot find -lboost_log
collect2: error: ld returned 1 exit status
make: *** [g13d] Error 1


On debian9 it compiles and works perfectly, so the source and a driver is OK.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Logitech G13 driver compilation issue

Post by TrevorH » 2019/06/29 15:13:35

You're missing a -devel package that supplies a library called libboost_log. Run yum provides '*/libboost_log*' to locate packages that provide things that match that pattern and pick the best one for your use. Since it's not complaining about -lboost_program_options, check your system and find out what package provided libboost_program_options and use the similarly named package that provides the other lib.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply