Skip to content

Instantly share code, notes, and snippets.

@Wowfunhappy
Last active April 22, 2022 16:02
Show Gist options
  • Save Wowfunhappy/076dcc48d4b920a8714aed5db6157c7d to your computer and use it in GitHub Desktop.
Save Wowfunhappy/076dcc48d4b920a8714aed5db6157c7d to your computer and use it in GitHub Desktop.
Compile Cutter
Install patched qt 5.9: https://github.com/Wowfunhappy/qt5.9-base-mavericks
sudo port install clang-13 cmake meson ninja graphviz git realpath
git clone --recurse-submodules https://github.com/rizinorg/cutter
mkdir build-cutter && cd build-cutter
cmake \
-DCMAKE_PREFIX_PATH=/usr/local/Qt-5.9.9/ \
-DCMAKE_C_COMPILER=/opt/local/bin/clang-mp-13 \
-DCMAKE_CXX_COMPILER=/opt/local/bin/clang++-mp-13 \
-DPYTHON_LIBRARY="/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib" \
-DPYTHON_INCLUDE_DIR="/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9" \
-DPYTHON_EXECUTABLE="/opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3" \
-DCUTTER_USE_BUNDLED_RIZIN=ON \
-DCUTTER_ENABLE_PACKAGING=ON \
-DCUTTER_PACKAGE_DEPENDENCIES=ON \
-DCUTTER_ENABLE_DEPENDENCY_DOWNLOADS=ON \
-DCUTTER_PACKAGE_RZ_GHIDRA=ON \
-DCUTTER_PACKAGE_JSDEC=ON \
-DCUTTER_PACKAGE_RZ_LIBSWIFT=ON \
-DCUTTER_ENABLE_GRAPHVIZ=on \
../cutter
CC=/opt/local/bin/clang-mp-13 CXX=/opt/local/bin/clang++-mp-13 make package -j4
#cd _CPack_Packages/Darwin/Bundle/Cutter-2.0.5-Darwin
#dylibbundler --search-path ../../../../Rizin-prefix/lib/ --overwrite-files -p '@executable_path/../Frameworks' -d Cutter.app/Contents/Frameworks/ -b -cd -ns -x Cutter.app/Contents/MacOS/cutter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment