Installation Guide

HarbourBuilder runs on Windows, macOS, and Linux. This guide covers installation for all platforms.

Quick Start

Already have Harbour installed? Just clone the repository and run the build script for your platform. HarbourBuilder will handle the rest.

System Requirements

PlatformMinimumRecommendedCompiler
WindowsWindows 10, 2 GB RAMWindows 11, 4 GB RAMMSVC 2022 or BCC 7.7
macOSmacOS 12+, 2 GB RAMmacOS 14+, 4 GB RAMXcode CLT (Clang)
LinuxGTK3, 2 GB RAMGTK3, 4 GB RAMGCC 11+

Windows Installation

Prerequisites

  1. Harbour 3.2+ — Download from harbour.github.io or use pre-built binaries
  2. C Compiler — Choose one:
    • MSVC (recommended): Visual Studio 2022 Community (free) or Build Tools
    • BCC: Embarcadero Borland C++ Compiler 7.7 (free)

Step-by-Step

  1. Clone the repository:
    git clone https://github.com/yourusername/HarbourBuilder.git
    cd HarbourBuilder
  2. Set Harbour path (if not already in PATH):
    set HBDIR=C:\harbour
  3. Run the build script:
    build_win.bat
    This compiles Harbour (if needed), Scintilla, and the IDE.
  4. Run the IDE:
    bin\hbbuilder_win.exe
Compiler Detection

HarbourBuilder auto-detects MSVC installations (2019, 2022, Community, BuildTools). Use Tools > Select Compiler to choose between detected compilers.

macOS Installation

Prerequisites

  1. Xcode Command Line Tools:
    xcode-select --install
    This is the only prerequisite. Harbour and Scintilla are downloaded and built automatically.

Step-by-Step

  1. Navigate to samples:
    cd HarbourBuilder/samples
  2. Run the build script:
    ./build_mac.sh
    On first run, this script will:
    • Clone and compile Harbour to ~/harbour (if not found)
    • Build Scintilla 5.5.3 + Lexilla static libraries from source
    • Compile the HarbourBuilder IDE
  3. Copy to bin/ and run:
    cp HbBuilder ../bin/
    ../bin/HbBuilder
Custom Harbour Installation

To use a custom Harbour installation: HBDIR=/path/to/harbour ./build_mac.sh

Apple Silicon (M1/M2/M3/M4)

The current build produces x86_64 binaries which run via Rosetta 2 on ARM Macs. For native ARM builds, recompile Harbour for darwin/clang/arm64 and update HBDIR in build_mac.sh.

Linux Installation

Prerequisites

  1. Harbour 3.2+ — Install from package manager or build from source
  2. GTK3 development libraries:
    sudo apt install libgtk-3-dev
  3. GCC compiler:
    sudo apt install gcc g++
  4. Scintilla — Built automatically by the build script

Step-by-Step (Ubuntu/Debian)

  1. Install dependencies:
    sudo apt update
    sudo apt install libgtk-3-dev gcc g++ harbour
  2. Navigate to samples:
    cd HarbourBuilder/samples
  3. Run the build script:
    ./build_linux.sh
  4. Run the IDE:
    ../bin/hbbuilder_linux

Scintilla Setup

Scintilla is the code editing component used by HarbourBuilder. Setup varies by platform:

PlatformMethodFiles
WindowsDynamic librariesScintilla.dll, Lexilla.dll in bin/
macOSStatic librarieslibscintilla.a, liblexilla.a (compiled from source)
LinuxShared librarieslibscintilla.so, liblexilla.so

The build scripts handle Scintilla automatically — you don't need to build it manually unless you want a custom version.

Verifying Your Installation

After installation, verify everything works:

  1. Launch the IDE: Should open without errors
  2. Create a new project: File > New Project
  3. Press F9: Should compile and run a simple form
  4. Test the designer: Drag a button from the palette onto the form
  5. Test the editor: Open the code tab, verify syntax highlighting works
Sample Projects

Check out the samples/projects/ directory for working examples including database, AI, and transformer demos.

Troubleshooting

IssueCauseSolution
"harbour: command not found"Harbour not in PATHSet HBDIR environment variable or add Harbour to PATH
"gtk/gtk.h: No such file"GTK3 dev headers missingInstall libgtk-3-dev (Linux) or Xcode CLT (macOS)
"Scintilla not found"Scintilla libraries not builtRun the platform build script (build_win.bat, build_mac.sh, build_linux.sh)
Build fails on WindowsCompiler not detectedRun build_win.bat or use Tools > Select Compiler
IDE won't start on macOSGatekeeper blockingRight-click > Open, or remove quarantine: xattr -d com.apple.quarantine HbBuilder
Dark mode not workingOS theme not setEnsure your OS is in dark mode; HarbourBuilder follows system theme

Next Steps

Once installed, continue with:

On This Page

Getting Started Component Palette IDE Features Tutorials Reference Platforms System Requirements Windows Installation Prerequisites Step-by-Step macOS Installation Prerequisites Step-by-Step Linux Installation Prerequisites Step-by-Step (Ubuntu/Debian) Scintilla Setup Verifying Your Installation Troubleshooting Next Steps