Installation Guide¶
This guide covers all the ways to install and set up XC8 Wrapper on your system.
Requirements¶
Before installing XC8 Wrapper, ensure you have:
- Python 3.9 or higher installed on your system
- Microchip XC8 Compiler installed (is have been tested with xc8-v3.00)
- Operating System: Windows 10+, macOS 10.15+, or Linux (Ubuntu 18.04+, CentOS 7+)
Installation Methods¶
Method 1: Install from PyPI (Recommended)¶
This is the easiest way to install XC8 Wrapper:
Method 2: Install from Source¶
For the latest development version or to contribute:
# Clone the repository
git clone https://github.com/s-celles/xc8-wrapper.git
cd xc8-wrapper
# Install in development mode
pip install -e .
Method 3: Install Specific Version¶
To install a specific version:
Platform-Specific Instructions¶
Windows¶
- Install Python (if not already installed):
- Download from python.org
-
Or use Anaconda/Miniconda
-
Install XC8 Wrapper:
-
Verify Installation:
macOS¶
-
Install Python (if not already installed):
-
Install XC8 Wrapper:
-
Verify Installation:
Linux (Ubuntu/Debian)¶
-
Install Python and pip:
-
Install XC8 Wrapper:
-
Verify Installation:
Linux (CentOS/RHEL/Fedora)¶
-
Install Python and pip:
-
Install XC8 Wrapper:
-
Verify Installation:
XC8 Compiler Installation¶
XC8 Wrapper requires the Microchip XC8 compiler to be installed. Here's where to get it:
Download XC8 Compiler¶
- Visit Microchip's official page
- Download the appropriate version for your operating system
- Install following Microchip's instructions
Expected Installation Locations¶
XC8 Wrapper automatically detects XC8 installations in these standard locations:
Windows¶
C:\Program Files\Microchip\xc8\v{version}\bin\
C:\Program Files (x86)\Microchip\xc8\v{version}\bin\
macOS¶
/Applications/microchip/xc8/v{version}/bin/
/opt/microchip/xc8/v{version}/bin/
Linux¶
/opt/microchip/bin/
/usr/local/microchip/bin/
/opt/microchip/xc8/v{version}/bin/
(alternative versioned path)/usr/local/microchip/xc8/v{version}/bin/
(alternative versioned path)
Virtual Environment Setup (Recommended)¶
For isolated Python environments:
# Create virtual environment
python -m venv xc8-env
# Activate it
# Windows:
xc8-env\Scripts\activate
# macOS/Linux:
source xc8-env/bin/activate
# Install XC8 Wrapper
pip install xc8-wrapper
Troubleshooting¶
Common Issues¶
"xc8-wrapper: command not found"¶
Problem: The command is not in your PATH.
Solutions: 1. Check installation:
-
Find installation location:
-
Add to PATH (if needed):
- Find where pip installs scripts (usually
~/.local/bin
on Linux/macOS) - Add that directory to your PATH
"XC8 not found" Error¶
Problem: XC8 Wrapper can't find your XC8 installation.
Solutions: 1. Verify XC8 installation: - Check if XC8 is installed in standard locations - Try running xc8-cc --version
directly
-
Use custom path:
-
Check version format:
Permission Errors¶
Problem: Permission denied during installation.
Solutions: 1. Use user installation:
- Use virtual environment (recommended):
Getting Help¶
If you encounter issues:
- Check the FAQ: FAQ page
- Search existing issues: GitHub Issues
- Create a new issue: Include your OS, Python version, and error messages
- Ask in discussions: GitHub Discussions
Next Steps¶
Once installed, check out: - Getting Started Guide - Create your first project - CLI Reference - Learn all available commands - Examples - See real-world usage examples