work in progress | all the code written in C
Hello! For now I only have the code to open a window on the Linux OS with the shared libraries Glew and Glfw.
This configuration is the equivalent of the <windows.h> shared library for Windows, which works only on windows.
Clone the project
git clone https://git@github.com:devpedrofurquim/opengl-c-config-for-linux.git
Go to the project directory
cd OpenGl-C-config-for-Linux
Update your Linux and install OpenGl and dependencies
sudo apt-update
sudo apt-get install cmake pkg-config
sudo apt-get install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev
sudo apt-get install libglew-dev libglfw3-dev libglm-dev
sudo apt-get install build-essential libxmu-dev libxi-dev libgl-dev
sudo apt-get install libao-dev libmpg123-dev
Download the GLFW library on this link https://sourceforge.net/projects/glfw/files/glfw/3.0.4/glfw-3.0.4.tar.gz/download
Go to the directory of the file and extract it
cd Downloads
tar xzvf glfw-3.0.4.tar.gz
Install the GLFW library
cd glfw-3.0.4
mkdir build
cd build
cmake ../
make && sudo make install
These comands above will install the library.
Now let's install the GLEW library.
Download the library on this link https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.zip/download
Go to the directory of the file and extract it.
Then run this command on the extracted folder
sudo make install
It will will attempt to install GLEW into /usr/include/GL and /usr/lib.
Run the breakout executable file
./breakout
A empty window will show up on your screen, press ESC to close it. Now it's working. If you have any issues let me know.