This guide will help you get the Nexus framework up and running quickly.
- CMake 3.18+
- C++ Compiler (GCC 9+, Clang 10+, or MSVC 2019+)
- Python 3.8+ with development headers
- Git with submodule support
git clone --recursive https://github.com/your-org/nexus.git
cd nexussudo apt-get update
sudo apt-get install -y build-essential cmake python3 python3-dev python3-pip python3-pybind11 libc++-dev libc++abi-dev
python3 -m pip install -r requirements.txtbrew install cmake python@3.11 pybind11
python3 -m pip install -r requirements.txt# Install Visual Studio 2022 with C++ workload
python -m pip install -r requirements.txtmkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DNEXUS_BUILD_PYTHON_MODULE=ON -DNEXUS_BUILD_PLUGINS=ON
make -j$(nproc) # Linux/macOS
# or
cmake --build . --config Release --parallel # Windowsctest --output-on-failureThe build process creates:
- Core Library:
libnexus-api.so(Linux),libnexus-api.dylib(macOS),nexus-api.dll(Windows) - Python Module:
nexus.so(Linux/macOS),nexus.pyd(Windows) - Runtime Plugins: CPU, Metal (macOS), CUDA/HIP (Linux)
- Tests: C++ and Python test suites
- Read the Core API documentation for C++ development
- Check out the Python API for Python bindings
- Explore Plugin API for custom hardware backends
- See Build and CI for detailed build instructions
CMake can't find Python
# Install Python development headers
sudo apt-get install python3-dev # Linux
brew install python@3.11 # macOSBuild fails with C++17 errors
# Use a newer compiler
export CC=gcc-9
export CXX=g++-9Tests fail
# Check if you have required hardware (GPU for CUDA/Metal tests)
# Some tests may be platform-specificFor more detailed troubleshooting, see the Build and CI documentation.