Skip to content

Commit 9b86131

Browse files
committed
Added compilation info
1 parent 0b0dd4b commit 9b86131

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,19 @@ The y-axis range is between 0 and 255 (in hex 0x0 and 0xff, i.e. the byte values
6767

6868
The chart plots the byte values of the binary file and let you focus only on the relevant sections. For example, if in a binary file there is an area full of null bytes, you can easily detect it from the chart.
6969

70+
## Compilation
71+
The project has the following dependences: qt5-charts (package: libqt5charts5-dev in debian/ubuntu), capstone (optional) and keystone (optional).
72+
On linux you can check if you have the mandatory library with `ldconfig -p | grep -i qt5charts`
73+
74+
Fhex by default is compiled with the MINIMAL profile, this means it doesn't include capstone and keystone. You can change this option removing the related line from `fhex.pro`.
75+
76+
In order to build Fhex on linux execute these commands:
77+
```sh
78+
mkdir build
79+
cd build
80+
qmake ..
81+
make -j$(nproc)
82+
```
83+
7084
### License
7185
GPL-3

fhex.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ TEMPLATE = app
1818
# deprecated API in order to know how to port your code away from it.
1919
DEFINES += QT_DEPRECATED_WARNINGS
2020

21+
# Set MINIMAL version by default, i.e. without capstone/keystone support
22+
# to add the support comment the following line:
23+
DEFINES += MINIMAL
24+
2125
# You can also make your code fail to compile if you use deprecated APIs.
2226
# In order to do so, uncomment the following line.
2327
# You can also select to disable deprecated APIs only up to a certain version of Qt.

0 commit comments

Comments
 (0)