Building from Source
podkit ships prebuilt native binaries for macOS (Intel and Apple Silicon) and Linux (x64). If prebuilt binaries are not available for your platform, podkit will attempt to build the native module from source during installation. This requires libgpod development headers.
macOS
libgpod is not available in Homebrew, so it must be built from source. The podkit repo includes a build script:
git clone https://github.com/jvgomg/podkit.gitcd podkit/tools/libgpod-macos./build.shThis will:
- Install Homebrew dependencies (libplist, gdk-pixbuf, autoconf, etc.)
- Download libgpod 0.8.3 source and required patches
- Build and install to
~/.local
Add to your shell profile (~/.zshrc or ~/.bashrc):
export PKG_CONFIG_PATH="$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH"export DYLD_LIBRARY_PATH="$HOME/.local/lib:$DYLD_LIBRARY_PATH"Reload your shell, then install podkit:
source ~/.zshrc # or ~/.bashrcnpm install -g podkitUbuntu / Debian
sudo apt install -y libgpod-devnpm install -g podkitFedora
sudo dnf install -y libgpod-develnpm install -g podkitArch Linux
sudo pacman -S libgpodnpm install -g podkitVerifying the Build
podkit --versionpodkit device info # Should not show native binding errorsTroubleshooting
libgpod build fails (macOS)
Ensure Homebrew packages are properly linked:
brew link --force libplist gdk-pixbuf gettextpkg-config can’t find libgpod
Verify your PKG_CONFIG_PATH includes ~/.local/lib/pkgconfig:
echo $PKG_CONFIG_PATHpkg-config --modversion libgpod-1.0# Expected: 0.8.3Runtime: library not found
Ensure DYLD_LIBRARY_PATH is set:
echo $DYLD_LIBRARY_PATHSee Also
- Installation - Standard installation
- Development Setup - Full development environment setup