π INSTALLATION SCRIPTS - GUΓA¶
Scripts automatizados para instalar y verificar dependencias de AudioLab.
π¦ SCRIPTS DISPONIBLES¶
| Script | Plataformas | Tiempo | PropΓ³sito |
|---|---|---|---|
install_all_dependencies.ps1/sh |
Win, Unix, macOS | 15-30 min | InstalaciΓ³n completa |
install_core_deps.ps1 |
Windows | 10-15 min | Solo core (mΓ‘s rΓ‘pido) |
install_vcpkg_simple.ps1 |
Windows | 2-5 min | Solo setup de vcpkg |
verify_installation.ps1/sh |
Win, Unix, macOS | 1-2 min | Verificar instalados |
list_installed.ps1 |
Windows | < 1 min | Listar packages |
update_registry.ps1 |
Windows | < 1 min | Actualizar tracking |
create_vcpkg_registry.ps1 |
Windows | < 1 min | Crear registry inicial |
π INSTALL_ALL_DEPENDENCIES¶
Uso¶
Windows:
Unix/macOS:
Opciones (PowerShell)¶
-SkipVcpkg # Omitir vcpkg packages
-SkipPython # Omitir Python tools
-Force # No pedir confirmaciones
QuΓ© Instala¶
1. vcpkg (si no existe):
git clone https://github.com/Microsoft/vcpkg.git external/vcpkg
cd external/vcpkg
./bootstrap-vcpkg.bat # Windows
./bootstrap-vcpkg.sh # Unix
2. vcpkg Packages (7): - fftw3 - eigen3 - libsndfile - catch2 - benchmark - fmt - spdlog
3. Python Tools (3): - black - pytest - sphinx
4. Actualiza Registry:
Crea YAML files en _installed_registry/
Output Esperado¶
ββββββββββββββββββββββββββββββββββββββββββββββ
β π¦ AudioLab Dependency Installer β
ββββββββββββββββββββββββββββββββββββββββββββββ
π Checking prerequisites...
β Git found
β Python found
β pip found
π¦ Installing vcpkg...
Cloning vcpkg...
β vcpkg cloned
Bootstrapping vcpkg...
β vcpkg bootstrapped
π¦ Installing vcpkg packages (7)...
Installing fftw3...
β fftw3 installed
Installing eigen3...
β eigen3 installed
... (5 more)
π Installing Python tools (3)...
Installing black...
β black installed
... (2 more)
π Updating registry...
β Registry updated
ββββββββββββββββββββββββββββββββββββββββββββββ
β β
All dependencies installed β
ββββββββββββββββββββββββββββββββββββββββββββββ
β±οΈ Total time: 18m 42s
π‘ Next steps:
1. Verify: .\verify_installation.ps1
2. Build: cd ..\..\03_02_build_infrastructure\03_02_03_build_scripts
.\build.ps1
Troubleshooting¶
Error: Git not found
Error: Python not found
Error: vcpkg install fails
β‘ INSTALL_CORE_DEPS¶
Uso¶
Diferencia con install_all¶
install_all_dependencies: Instala TODO (vcpkg + Python + JUCE setup) install_core_deps: Solo vcpkg packages esenciales (mΓ‘s rΓ‘pido)
QuΓ© Instala¶
Solo vcpkg packages: - fftw3 - eigen3 - libsndfile - catch2 - benchmark - fmt - spdlog
NO instala: - β Python tools (black, pytest, sphinx) - β JUCE setup (asume ya estΓ‘ vendored)
CuΓ‘ndo Usar¶
- β Setup rΓ‘pido para compilar
- β CI/CD builds (Python ya instalado)
- β Rebuild despuΓ©s de clean
β VERIFY_INSTALLATION¶
Uso¶
Windows:
Unix/macOS:
QuΓ© Verifica¶
1. vcpkg packages:
2. Python tools:
3. Registry consistency:
4. CMake integration:
Output Esperado¶
β Todo OK:
ββββββββββββββββββββββββββββββββββββββββββββββ
β β
AudioLab Dependency Verification β
ββββββββββββββββββββββββββββββββββββββββββββββ
π Verifying vcpkg packages...
β fftw3 3.3.10 - Installed
β eigen3 3.4.1 - Installed
β libsndfile 1.2.0 - Installed
β catch2 3.4.0 - Installed
β benchmark 1.8.3 - Installed
β fmt 10.1.1 - Installed
β spdlog 1.12.0 - Installed
π Verifying Python tools...
β black 23.9.1 - Installed
β pytest 7.4.2 - Installed
β sphinx 7.2.6 - Installed
π Verifying registry...
β Registry matches installations
π Verifying CMake integration...
β All packages findable by CMake
ββββββββββββββββββββββββββββββββββββββββββββββ
β β
All dependencies verified β
ββββββββββββββββββββββββββββββββββββββββββββββ
β Con errores:
β fftw3 - NOT FOUND
π‘ Fix: vcpkg install fftw3:x64-windows
β Registry out of sync
π‘ Fix: .\update_registry.ps1
π LIST_INSTALLED¶
Uso¶
Output¶
Table (default):
ββββββββββββββββββββββββββββββββββββββββββββββ
β π¦ Installed Dependencies β
ββββββββββββββββββββββββββββββββββββββββββββββ
VCPKG PACKAGES:
ββββββββββββββββββ¬βββββββββββ¬βββββββββββββββββ
β Package β Version β Triplet β
ββββββββββββββββββΌβββββββββββΌβββββββββββββββββ€
β fftw3 β 3.3.10 β x64-windows β
β eigen3 β 3.4.1 β x64-windows β
β libsndfile β 1.2.0 β x64-windows β
β catch2 β 3.4.0 β x64-windows β
β benchmark β 1.8.3 β x64-windows β
β fmt β 10.1.1 β x64-windows β
β spdlog β 1.12.0 β x64-windows β
ββββββββββββββββββ΄βββββββββββ΄βββββββββββββββββ
PYTHON TOOLS:
ββββββββββββββββββ¬βββββββββββ
β Tool β Version β
ββββββββββββββββββΌβββββββββββ€
β black β 23.9.1 β
β pytest β 7.4.2 β
β sphinx β 7.2.6 β
ββββββββββββββββββ΄βββββββββββ
VENDORED:
ββββββββββββββββββ¬βββββββββββ¬βββββββββββββ
β Library β Version β Size β
ββββββββββββββββββΌβββββββββββΌβββββββββββββ€
β JUCE β 7.0.9 β 71 MB β
ββββββββββββββββββ΄βββββββββββ΄βββββββββββββ
π UPDATE_REGISTRY¶
Uso¶
PropΓ³sito¶
Sincroniza registry YAMLs con dependencias realmente instaladas.
CuΓ‘ndo Usar¶
- β
DespuΓ©s de install manual:
vcpkg install <pkg> - β Registry desactualizado
- β Cambio de equipo (pull registry de git)
QuΓ© Hace¶
-
Escanea vcpkg:
-
Escanea Python:
-
Actualiza YAMLs:
- Crea nuevos para packages instalados
- Actualiza existentes con nueva info
-
Marca como "removed" los que no estΓ‘n
-
Output:
π― WORKFLOWS COMUNES¶
First-Time Setup¶
# 1. Install all
.\install_all_dependencies.ps1
# 2. Verify
.\verify_installation.ps1
# 3. Done! Build project
cd ..\..\03_02_build_infrastructure\03_02_03_build_scripts
.\build.ps1
Reinstall After Clean¶
# 1. Clean (si ya lo hiciste)
..\03_03_03_maintenance_scripts\clean_dependencies.ps1 -All
# 2. Install core (mΓ‘s rΓ‘pido)
.\install_core_deps.ps1
# 3. Verify
.\verify_installation.ps1
Add Single Dependency¶
# 1. Install manually
vcpkg install new-lib:x64-windows
# 2. Update registry
.\update_registry.ps1
# 3. Verify
.\verify_installation.ps1
After Git Pull (Registry Changed)¶
# 1. See what changed
git diff 03_03_00_package_manifests/_installed_registry/
# 2. Install missing packages
.\install_all_dependencies.ps1
# 3. Verify
.\verify_installation.ps1
π RECURSOS¶
- Main README: ../README.md
- Cheat Sheet: ../DEPENDENCY_CHEAT_SHEET.md
- Troubleshooting: ../03_03_09_troubleshooting/DEPENDENCY_TROUBLESHOOTING_GUIDE.md
Γltima actualizaciΓ³n: 2025-10-09