@@ -129,7 +129,7 @@ Building the tool is easiest from the CLI. In Debian Bullseye (11.x),
129129```
130130% sudo apt install make gcc g++ cmake git qt6-base-dev libqt6charts6-dev \
131131qt6-translations-l10n linguist-qt6 qt6-l10n-tools qt6-tools-\* qt6-image-formats-plugins \
132- libreadline-dev qt6-declarative-dev
132+ libreadline-dev qt6-declarative-dev pkgconfig
133133% git clone https://github.com/travisgoodspeed/maskromtool/
134134...
135135% cd maskromtool
@@ -156,7 +156,7 @@ On macOS, you might need to run 'xattr -dr com.apple.quarantine *` if
156156you get warnings about the signature not being recognized.
157157
158158
159- To install on macOS, first install XCode, [ Homebrew] ( https://brew.sh ) ,
159+ To build on macOS, first install XCode, [ Homebrew] ( https://brew.sh ) ,
160160and [ Qt for Open Source] ( https://www.qt.io/download-qt-installer-oss ) ,
161161which sadly requires an account. After that, you can open
162162` CMakeLists.txt ` in QT Creator or use the release script to build.
@@ -172,7 +172,7 @@ You can also build it without the official Qt installer or App,
172172through Homebrew alone. This is roughly like what we'd do in Linux.
173173
174174```
175- % brew install cmake emacs qt
175+ % brew install cmake emacs qt pkgconfig
176176% git submodule init
177177% git submodule update --remote
178178...
@@ -181,6 +181,27 @@ through Homebrew alone. This is roughly like what we'd do in Linux.
181181% make -j 8 && sudo make install
182182```
183183
184+ ## Optional Libraries
185+
186+ ### YaraX
187+
188+ [ Yara-X] ( https://github.com/VirusTotal/yara-x ) is a pattern matching
189+ library that's popular in the malware research world. MaskRomTool and
190+ GatoROM support it as an optional library, for solving unkown layouts.
191+ Yara-X is automatically included when PkgConfig is available and its C
192+ API [ has been
193+ installed] ( https://virustotal.github.io/yara-x/docs/api/c/c-/ ) .
194+
195+ ```
196+ % git clone https://github.com/VirusTotal/yara-x
197+ ...
198+ % cd yara-x
199+ % cargo install cargo-c
200+ ...
201+ % cargo cinstall -p yara-x-capi --release
202+ ... (If error here, make your user own /usr/local/lib and include.)
203+ ```
204+
184205## GUI Usage
185206
186207First use File/Open ROM to open a ROM image as a photograph. Try to
0 commit comments