khampf / g13

libusb driver for the g13
23 stars 15 forks source link

Unable to Make (Void Linux) #23

Open Xlaits opened 3 years ago

Xlaits commented 3 years ago
[xlaits@cinnamon g13]$ cmake -B build -S .
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xlaits/git/g13/build
[xlaits@cinnamon g13]$ make
make: *** No targets specified and no makefile found.  Stop.
[xlaits@cinnamon g13]$ cd build
[xlaits@cinnamon build]$ make
Scanning dependencies of target runtests
[  3%] Building CXX object CMakeFiles/runtests.dir/g13_action.cpp.o
In file included from /home/xlaits/git/g13/g13_manager.hpp:12,
                 from /home/xlaits/git/g13/g13_device.hpp:8,
                 from /home/xlaits/git/g13/g13.hpp:5,
                 from /home/xlaits/git/g13/g13_action.hpp:8,
                 from /home/xlaits/git/g13/g13_action.cpp:5:
/home/xlaits/git/g13/g13_log.hpp:8:10: fatal error: log4cpp/Category.hh: No such file or directory
    8 | #include <log4cpp/Category.hh>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/runtests.dir/build.make:82: CMakeFiles/runtests.dir/g13_action.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/runtests.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
RichieFrame commented 2 years ago

I also ran into similar compilation issues, I am using Ubuntu. You will need to install a few extra dependencies:

libedev-dev libgmock-dev liblog4cpp5-dev

Those are what they are called in Ubuntu repositories, Void may be different

Gor1ock commented 6 months ago

??? does

libedev-dev

exist?