OpenFPGA/tutorials/building.md

54 lines
1.1 KiB
Markdown
Raw Normal View History

2019-07-09 15:28:14 -05:00
# How to build?
## Dependancies
OpenFPGA requires all the dependancies listed below:
- autoconf
- automake
- bash
- bison
- build-essential
- cmake (version 3.X at least)
- ctags
- curl
- doxygen
- flex
- fontconfig
- g++-8
- gcc-8
- g++-4.9
- gcc-4.9
- gdb
- git
- gperf
- iverilog
- libcairo2-dev
- libevent-dev
- libfontconfig1-dev
- liblist-moreutils-perl
- libncurses5-dev
- libx11-dev
- libxft-dev
- libxml++2.6-dev
- perl
- python
- texinfo
- time
- valgrind
- zip
- qt5-default
## Docker
If all these dependancies are not installed in your machine you can choose to use a Docker (docker tool need to be installed). To ease customer first experience a Dockerfile is provided in OpenFPGA folder. It can be build using the commands:
- docker build . -t open_fpga
2019-07-11 11:10:30 -05:00
- docker run -it --rm -v $PWD:/localfile/OpenFPGA -w="/localfile/OpenFPGA" open_fpga bash<br />
2019-07-10 17:14:38 -05:00
[*docker download link*](https://www.docker.com/products/docker-desktop)
2019-07-09 15:28:14 -05:00
## Building
To build the tool you have to be in OpenFPGA folder and do:
- mkdir build && cd build
2019-07-10 16:42:31 -05:00
- cmake .. -DCMAKE_BUILD_TYPE=debug
2019-07-11 11:13:55 -05:00
- make (*WARNING using docker you cannot use "make -j", errors will happen*)