matrix-io / xc3sprog

xc3sprog is a suite of utilities for programming Xilinx FPGAs, CPLDs, and EEPROMs with the Xilinx Parallel Cable and other JTAG adapters under Linux. Used to program the FPGA of the MATRIX Creator/Voice via Raspberry Pi.
Other
119 stars 57 forks source link

Building wants wiringpi.h on a AMD build host #34

Open richardklingler opened 3 years ago

richardklingler commented 3 years ago

I don't see anything configurable for the building process....

When building on a Debian 11.1 AMD64 host it stops at:

[ 66%] Building CXX object CMakeFiles/xc3sproglib.dir/iowiringpi.cpp.o /home/me/develop/fpga/xc3sprog/iowiringpi.cpp:3:10: fatal error: wiringPi.h: No such file or directory 3 | #include <wiringPi.h> | ^~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/xc3sproglib.dir/build.make:441: CMakeFiles/xc3sproglib.dir/iowiringpi.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:212: CMakeFiles/xc3sproglib.dir/all] Error 2 make: *** [Makefile:171: all] Error 2

LittleFox94 commented 2 years ago

There is an option to build without WiringPi, it's even currently HEAD of the master branch: https://github.com/matrix-io/xc3sprog/commit/357c420bcc4ffa49b9e26b4c5435e7580245d3d9

Use -DUSE_WIRINGPI=OFF when running cmake to disable it