Closed 8Observer8 closed 2 months ago
Hi @8Observer8,
Python 3.7 and Windows 7 (especially 32 bit) have been out of date for quite a while, thus there are no prebuilt wheels available. PyGLM should run on the system regardless, but you need to build it yourself. Since PyGLM is a Python C-API extension that was written in C++, you need a C++ compiler. Simply download and install the Microsoft visual C++ build tools, as instructed in the error message you got. That should allow you to build PyGLM
Cheers --Zuzu_Typ--
Is it possible to build PyGLM using MinGW?
I have installed MinGW from this link: https://winlibs.com/ I use GCC 11.2.0 I asked the question above to Gimini. I have copied the answer: https://g.co/gemini/share/7d8644c944c2
Yes, it is possible to build PyGLM using MinGW. MinGW is a compiler suite for Windows that provides a UNIX-like environment, and PyGLM is a Python library that provides OpenGL Mathematics functionality.
Here are the general steps involved in building PyGLM using MinGW:
Install MinGW: Download and install the MinGW compiler suite from https://sourceforge.net/projects/mingw-w64/. Make sure to include the required components, such as the C++ compiler and the header files.
Install Python: Download and install a Python interpreter from https://www.python.org/. Ensure you have the correct version for your MinGW installation.
Install NumPy: NumPy is a fundamental package for scientific computing with Python. Install it using pip:
pip install numpy
Obtain PyGLM: Download the PyGLM source code from [invalid URL removed].
Build PyGLM:
python setup.py build
python setup.py install
import glm
Note: These are general steps, and the specific commands and procedures may vary depending on your MinGW and Python versions. Refer to the PyGLM documentation and MinGW documentation for more detailed instructions.
It should be possible to build PyGLM with MinGW. You need to tell Python you want to use mingw though. By default, it is trying to use the Microsoft Visual C++ compiler. I don't know how you can change that, but I'm sure you'll find a way. Alternatively, simply use MSVC. Saves you the hassle.
Window 7, 32-bit Python 3.7.6