This document contains Wikipedia links and tutorials for all technologies and concepts used in the Achilles evolutionary simulation.
- Wikipedia: C++ Programming Language
- Tutorials:
- Wikipedia: OpenGL
- Tutorials:
- Learn OpenGL - Comprehensive modern OpenGL tutorial
- OpenGL Programming Guide (Red Book)
- OpenGL-Tutorial.org
- Wikipedia: OpenGL Utility Library
- Wikipedia: OpenGL Utility Toolkit
- Wikipedia: Simple DirectMedia Layer
- Official Tutorials: Lazy Foo' Productions - SDL Tutorials
- SDL Documentation: SDL Wiki
- SDL2 Migration Guide: SDL2 Migration Guide
- Key Differences:
- SDL2 uses scancodes for keyboard state (not keycodes)
- Window creation API changed (
SDL_CreateWindowvsSDL_SetVideoMode) - Event handling improvements
- Better multi-monitor support
- SDL2 API Reference: SDL2 API Documentation
- Wikipedia: GNU Autotools
- Tutorials:
- Autoconf Macro Reference: Autoconf Macro Index
- Wikipedia: pkg-config
- Official Documentation: pkg-config Manual
- Why it's used: Automatically detects library installation paths, compiler flags, and linker flags
- Common usage:
pkg-config --cflags --libs sdl2to get SDL2 compilation flags - Tutorial: Understanding pkg-config
- Wikipedia: Shell Script
- Tutorial: Advanced Bash-Scripting Guide
The Achilles build system uses:
- configure.in: Autoconf script that detects system libraries (SDL2, OpenGL, GLU) using pkg-config
- Makefile.am: Automake template that defines build rules
- Makefile.in: Generated template with
@VARIABLE@substitutions - Makefile: Final generated file with actual paths and flags
Build Process:
autoconfgeneratesconfigurefromconfigure.inautomakegeneratesMakefile.infromMakefile.am./configuredetects libraries and generatesMakefilemakecompiles using the generatedMakefile
- Wikipedia: Artificial Neural Network
- Tutorials:
- Wikipedia (Theory): Hebbian Theory
- Wikipedia (Computational): Hebbian Learning
- Tutorial: Hebbian Learning Explained (Scholarpedia)
- Wikipedia: Genetic Algorithm
- Tutorials:
- Wikipedia: Evolutionary Algorithm
- Wikipedia: Evolutionary Computation
- Wikipedia: Natural Selection
- Wikipedia: Evolution
- Wikipedia: Quicksort
- Visual Tutorial: Visualgo - Sorting Algorithms
- Wikipedia: Dynamic Array
- C++ Reference: std::vector
- Wikipedia: Stack (Abstract Data Type)
- C++ Reference: std::stack
- Wikipedia: Vector (Mathematics and Physics)
- Tutorial: 3D Math Primer for Graphics and Game Development
- Wikipedia: Rotation (Mathematics)
- Wikipedia: Euler Angles
- Wikipedia: 3D Computer Graphics
- Wikipedia: Transformation Matrix
- Wikipedia: Game Programming - Game Loop
- Tutorial: Game Loop Pattern (Game Programming Patterns)
- Wikipedia: Collision Detection
- Tutorial: Real-Time Collision Detection (book)
- Wikipedia: Spatial Database
- Wikipedia: Minimum Bounding Box
- C++ Basics - Classes, pointers, STL containers
- 3D Mathematics - Vectors, angles, transformations
- OpenGL Basics - Rendering, transformations
- SDL - Window management, input handling
- Neural Networks - Feedforward networks, backpropagation
- Hebbian Learning - Specific learning algorithm used
- Genetic Algorithms - Crossover, mutation, selection
- Game Loop - Simulation concepts
- Autotools - Build system (if modifying build)
- pkg-config - Library detection and flag management
- SDL2 Migration - Understanding differences from SDL1 (if working with input handling)
- OpenGL Mathematics (GLM): GLM Library - Useful for 3D math
- Game Programming Patterns: Game Programming Patterns Book
- Real-Time Rendering: Real-Time Rendering Website
- Autotools Introduction: Introduction to the Autotools
- Writing configure.ac: Autoconf Tutorial
- pkg-config Usage: pkg-config Guide
- Object-Oriented Programming in C++
- 3D Vector Mathematics (position, direction, distance)
- Neural Network Architecture (layers, neurons, weights)
- Hebbian Learning Rule (weight updates based on correlation)
- Genetic Algorithm Operations (crossover, mutation, selection)
- OpenGL Rendering Pipeline (vertices, transformations, drawing)
- SDL2 Event Handling (keyboard input using scancodes, window management)
- Game Loop Pattern (update, render, repeat)
- pkg-config (automatic library detection for build system)
- Autoconf: Generates
configurescript that detects system capabilities - Automake: Generates
Makefile.infromMakefile.amtemplates - pkg-config: Provides compiler and linker flags for installed libraries
- Variable Substitution:
@VARIABLE@in templates gets replaced byconfigure
The Achilles build system has been updated to:
- Automatically detect SDL2, OpenGL, and GLU using pkg-config
- Support both SDL1 and SDL2 with automatic fallback
- Generate correct Makefiles without manual path editing
- Work across different Linux distributions and installation methods (system packages, homebrew, etc.)
Key Files:
configure.in: Contains library detection logic using pkg-configMakefile.in: Template with variable substitutions (@SDL2_CFLAGS@, etc.)Makefile.am: Automake source file defining build rules
To rebuild after changes:
autoconf # Regenerate configure script
./configure # Detect libraries and generate Makefile
make # CompileThis document was generated to help understand the Achilles evolutionary simulation codebase.