๐Ÿ“ฆ itsfuad / MinGW_GLUT_OpenAL_Installer

๐Ÿ“„ README.md ยท 57 lines
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