parth-sh / ProjOpenGl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chronology

  1. https://www.youtube.com/watch?v=45MIykWJ-C4&list=PLWKjhJtqVAbmUE5IqyfGYEYjrZBYzaT4m&index=15
  1. brew install cmake

  2. Download GLFW https://www.glfw.org/download.html

  3. Download glad https://glad.dav1d.de/

  4. Run Cmake, create GLFW build folder https://stackoverflow.com/questions/7751342/how-to-execute-make-file Specify generator for this project: Unix makefile cd build/ make cd build/src make

  5. Copy glfw-3.3.8/build/src/libglfw3.a to project/Libraries/lib https://stackoverflow.com/questions/5965171/what-is-a-file-with-extension-a

  6. Copy glfw-3.3.8/include/GLFW to /Libraries/include

  1. Creating Raw CMake project Learning CMake: https://www.youtube.com/watch?v=mKZ-i-UfGgQ https://codevion.github.io/#!cpp/cmake.md

Older yt video: https://www.youtube.com/watch?v=nlKcXPUJGwA&list=PLalVdRk2RC6o5GHu618ARWh0VO0bFlif4&index=1&t=0s

Documentation: https://cmake.org/cmake/help/latest/guide/tutorial/index.html

  1. adding OpenGL library to CMake https://stackoverflow.com/questions/18647976/missing-opengl-headers-on-mac

  2. If you are using the static library version of GLFW, add it and the Cocoa, OpenGL and IOKit frameworks to the project as dependencies. They can all be found in /System/Library/Frameworks. https://www.glfw.org/docs/latest/build.html#:~:text=the%20project%20dependencies.-,If%20you%20are%20using%20the%20static%20library%20version%20of%20GLFW%2C%20add,.,-With%20command%2Dline

https://stackoverflow.com/questions/2908640/how-to-add-a-framework-to-cmake

https://stackoverflow.com/questions/57129755/problems-with-cmakelists-txt-for-osx-windows-compilation https://stackoverflow.com/q/57129755/9229695

  1. Failed to create GLFW window? glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE); // Mac https://stackoverflow.com/questions/66152815/failed-to-create-glfw-window https://stackoverflow.com/a/22889120/9229695

About


Languages

Language:C 90.8%Language:Objective-C 3.7%Language:HTML 2.2%Language:JavaScript 1.2%Language:CMake 1.0%Language:CSS 0.9%Language:SCSS 0.2%Language:C++ 0.0%Language:Shell 0.0%