Build Instructions for XMachOViewer

January 23, 2025 ยท View on GitHub

Prerequisites

Before you start building XMachOViewer, ensure you have the following tools installed:

  • CMake: Version 3.10 or higher
  • Qt: Qt5 or higher
  • Compiler: GCC, Clang, or MSVC

Building on Linux

  1. Install dependencies:

    sudo apt-get update
    sudo apt-get install cmake qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools build-essential
    
  2. Clone the repository:

    git clone https://github.com/horsicq/XMachOViewer.git
    cd XMachOViewer
    
  3. Create a build directory:

    mkdir build
    cd build
    
  4. Generate Makefiles using CMake:

    cmake ..
    
  5. Build the project:

    make
    

Building on Windows

  1. Install dependencies:

    • Download and install CMake.
    • Download and install Qt.
    • Install a C++ compiler (Visual Studio is recommended).
  2. Clone the repository:

    git clone https://github.com/horsicq/XMachOViewer.git
    cd XMachOViewer
    
  3. Create a build directory:

    mkdir build
    cd build
    
  4. Generate Visual Studio project files using CMake:

    cmake .. -G "Visual Studio 16 2019"
    
  5. Build the project: Open the generated .sln file in Visual Studio and build the solution.

Building on macOS

  1. Install dependencies:

    brew install cmake qt
    
  2. Clone the repository:

    git clone https://github.com/horsicq/XMachOViewer.git
    cd XMachOViewer
    
  3. Create a build directory:

    mkdir build
    cd build
    
  4. Generate Makefiles using CMake:

    cmake ..
    
  5. Build the project:

    make
    

Additional Notes

  • Ensure that the Qt installation path is correctly set in your environment variables.
  • For any issues encountered during the build process, refer to the GitHub Issues page for troubleshooting and support.