j-marjanovic / jtag-quartus-ft232h

GNU General Public License v3.0
44 stars 16 forks source link

Build instructions and dependencies #1

Closed carlosedp closed 3 years ago

carlosedp commented 3 years ago

I've checked-out the project and also the openocd repository in version v0.11.0.

After running copy_openocd_files.sh and cmake ., the build complains about missing files (some were found on openocd repo under src/helper but some were not found.

It complains about missing jim.h also.

Any pointers to which openocd this driver should be compiled against?

j-marjanovic commented 3 years ago

copy_openocd_files.sh is just a convenience script for developers. This is maybe different to other projects where such script are provided because of the licensing reasons - this is not the case here.

The files from OpenOCD were modified for standalone use in commit 94ac3b0

To build the library the following commands should suffice (tested on Ubuntu 20.10): mkdir build && cd build && cmake .. && make

j-marjanovic commented 3 years ago

libjim-dev also needs to be installed

j-marjanovic commented 3 years ago

@carlosedp could you please confirm that using the above instructions you are able to compile the library?

carlosedp commented 3 years ago

Ah yes, it worked perfectly! I'll submit a PR to the Readme adding the instructions and dependencies.

j-marjanovic commented 3 years ago

ok, perfect, thanks!