My OpenGL solutions for INDI (EPSEVG) / IDI (FIB) at UPC. All solved OpenGL exams until 2023-24 + Solved Activities from 2022-23 course.
Exam | Output | Interaction Mouse/Keys |
---|---|---|
qmake --version
If not, install Qt-5 using the following commands:
sudo apt-get install build-essential
sudo apt-get install qtcreator
sudo apt-get install qt5-default
If sudo apt-get install qt5-default
doesen't work, use the following command instead:
sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
Install and validate that OpenGL is installed correctly in your graphics card's driver:
sudo apt install mesa-utils
glxinfo | grep -E "direct rendering|^OpenGL"
Your terminal output should be similar to this:
![](https://private-user-images.githubusercontent.com/92806890/253626582-eb73da74-439c-43fe-85e5-06b17a87c1e7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5Nzg0MDAsIm5iZiI6MTcyMzk3ODEwMCwicGF0aCI6Ii85MjgwNjg5MC8yNTM2MjY1ODItZWI3M2RhNzQtNDM5Yy00M2ZlLTg1ZTUtMDZiMTdhODdjMWU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDEwNDgyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZhODYyMDBlOTdiNmVkMDBiY2FjODU2Yzg5OWRiN2JmNzlkNzNjNmE0Y2E2ZmVhZWUwMmQyNDM0NTczN2E2MDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RB1IfR9WieibCaiv3u9a8Gsexw4RNR5nGKdmAl3UXOQ)
Then, install cmake (metacompiler), build-essential (package that includes the necessary to develop in C++)
and libglm-dev (GLM library):
sudo apt-get install cmake build-essential libglm-dev
cd directory_act_ex/
qmake
make
./executable_name