Closed termi-official closed 2 years ago
I think I've seen this issue before: https://github.com/GLVis/glvis/issues/210.
We can add a check in the makefile
with something like this:
XXD_BIN = $(or $(shell command -v xxd),$(error Required tool not found: xxd. Stop.))
I'm not sure what happens with CMake -- maybe it stops with an error if does not find xxd
?
Indeed, this is the same issue.
I would also have opted for checking if xxd is installed by using command
, but with ?=
instead of direct assignment.
"Fixing" the cmake build should be as easy as
find_program(XXD_BIN xxd)
if(NOT XXD_BIN)
error(FATAL_ERROR "xxd not found!")
endif()
Should I make a PR?
Should I make a PR?
A PR will be welcome! Thanks!
Discussion continued in @222
Turns out the build scripts make use if
xxd
if we want to have the logo in the built program. See https://github.com/GLVis/glvis/blob/master/makefile#L278-L280 . Technically xxd is a tool from vim, which just happens to be shipped with Fedora and Ubuntu by default. Not sure if this belongs here or on the web repo. Might be an issue for novice users, as this can be easily be missed, yielding a linker error:Maybe we should just check if the tool is there in the make and cmake files - however I am not sure which command line tools are allowed, so I opened an issue instead of a PR.