Closed dvdmrn closed 3 years ago
I had the same problem. I managed to compile and run it by doing the following changes:
Changed line 82 in capabilities.hpp to:
data_type _data_type = data_type_unknown;
Changed lines 124-126 and 129 in capabilities.cpp to:
printf("\t\t min: %d\n", cap_value_to_int(cap._data_type, cap.min_value));
printf("\t\t max: %d\n", cap_value_to_int(cap._data_type, cap.max_value));
printf("\t\t step: %d\n", cap_value_to_int(cap._data_type, cap.step_size));
printf("\t\t%d\n", cap_value_to_int(cap._data_type, cap.values[i]));
Changed lines 171 and 174 in commands.cpp to:
memcpy(&cap._data_type, data + offset, 2);
value_size = data_type_size(cap._data_type);
This worked for me, but I just wanted to get it running quickly, there's probably an easier/better solution (maybe we have wrong versions of something?).
I'm on ubuntu 16.04, cmake version 3.5.1, g++ (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
this patch should allow to compile without such error (I'm on debian buster) to apply:
gunzip sandroPatch.diff.gz;
cd fuji-cam-wifi-tool;
patch -p1 < ../sandroPatch.diff
or better:
cd fuji-cam-wifi-tool;
gunzip -c ../sandroPatch.diff.gz | patch -p1
Why is this patch not committed upstream?
Why is this patch not committed upstream?
I don't know... maybe it doesn't work on the maintainer's system or the project owner is not interested anymore to maintain it!
I have pushed this fix to a forked repo https://github.com/mzealey/fuji-cam-wifi-tool b65b9c4
Should be fixed after merging https://github.com/mzealey/fuji-cam-wifi-tool
I'm able to install just fine until I get to
cmake --build .
. I get the following error:Any ideas as to why?
(I'm using an ubuntu bash emulator on windows)