xbows-driver icon indicating copy to clipboard operation
xbows-driver copied to clipboard

request for a minimal Readme / error during initial build

Open robinmoussu opened this issue 5 years ago • 5 comments

Hello, I was going to try to use this project ton make some remapping on my x-bows, but I didn't really understood where to start. Is it possible to add a minimal Readme.md that contains a list of command to copy-paste. I was expecting to do something like git clone && git submodule init && git submodule update, then mkdir build && cd build && cmake .. and finally ./xbows --help then probably ./xbows ../share/default-prog1.yaml.

Unfortunately when doing cmake .., I got the following error:

CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 9.0.1
-- The CXX compiler identification is GNU 9.0.1
-- 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
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
crc /include
-- Configuring done
CMake Error at CMakeLists.txt:18 (add_executable):
  Cannot find source file:

    crap.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx


CMake Error at CMakeLists.txt:18 (add_executable):
  No SOURCES given to target: crap


CMake Generate step failed.  Build files cannot be regenerated correctly.

robinmoussu avatar Aug 27 '19 19:08 robinmoussu

It isn't directly compilable - if you refer to #1, you see the modified CMakeLists.txt I use.

peterhoeg avatar Aug 28 '19 01:08 peterhoeg

As well as some additional patches.

peterhoeg avatar Aug 28 '19 01:08 peterhoeg

Hi @robinmoussu I'll work on getting that simple scenario to work. Obviously I haven't tried it from scratch yet :-(

jlquinn avatar Aug 29 '19 03:08 jlquinn

@robinmoussu @peterhoeg The basic clean compile sequence should work now. Please give it try.

jlquinn avatar Aug 29 '19 04:08 jlquinn

I added doc/quick-start.md. Please let me know if that works for you. It's not pretty but it works for me.

jlquinn avatar Aug 29 '19 04:08 jlquinn