1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57MinGW FreeGLUT & OpenAL Installer
----------------------------------
This script installs FreeGLUT and/or OpenAL headers and libraries into your MinGW environment.
REQUIREMENTS:
-------------
- MinGW with g++ must be installed and available in your system PATH.
- Place this script in a folder containing the following structure:
```
freeglut\
โโโ include\GL\*.h
โโโ lib\x64\*.a (for 64-bit)
โโโ lib\.\*.a (for 32-bit)
โโโ bin\x64\*.dll (for 64-bit)
OpenAL\
โโโ include\AL\*.h
โโโ libs\Win64\*.a, *.lib (for 64-bit)
โโโ libs\Win32\*.a, *.lib (for 32-bit)
โโโ oalinst.exe (optional OpenAL installer)
```
USAGE:
------
1. Right-click `install.bat` and select "Run as administrator" (or run from terminal with admin rights).
2. Choose what you want to install:
```
[1] FreeGLUT only
[2] OpenAL only
[3] Both
```
4. The script will:
- Detect your MinGW installation and architecture
- Copy relevant header and library files
- (If OpenAL is selected) silently run the OpenAL installer if available
NOTES:
------
- You must have admin rights to copy `.dll` files to the Windows system directory.
- At the end of the script, a summary will show what succeeded or failed.
- If errors occur, check that source folders and files exist in the correct locations.
EXAMPLE STRUCTURE:
------------------
.
โโโ install.bat
โโโ README.txt
โโโ freeglut\
โ โโโ include\GL\freeglut.h ...
โ โโโ lib\x64\freeglut.a ...
โ โโโ bin\x64\freeglut.dll ...
โโโ OpenAL\
โโโ include\AL\al.h ...
โโโ libs\Win64\OpenAL32.a / .lib ...
โโโ oalinst.exe