Fixed Linux Support
This commit is contained in:
@@ -250,10 +250,6 @@ target_link_libraries("${CMAKE_PROJECT_NAME}"
|
||||
PRIVATE
|
||||
OpenGL::GL
|
||||
freeglut_static
|
||||
"-framework Cocoa"
|
||||
"-framework IOKit"
|
||||
"-framework CoreVideo"
|
||||
"-lpthread"
|
||||
stb_image
|
||||
miniaudio
|
||||
)
|
||||
|
||||
16
README.md
16
README.md
@@ -40,21 +40,19 @@ However, for this guide, install Visual Studio Code and [Brew](https://brew.sh).
|
||||
6. Once CMake has finished configuring, press Shift+F5 (You may also need to press fn depending on how your mac is setup), and the application will run.
|
||||
|
||||
|
||||
### For Linux (debian/ubuntu)
|
||||
### For Linux (Debian/Ubuntu)
|
||||
|
||||
The following packages are needed in order for the included libraries to function: cmake, build-essential, libgl1-mesa-dev, libglu1-mesa-dev, freeglut3-dev, libx11-dev, libxcursor-dev, libxtst-dev, libxft-dev, libxmu-dev, libxi-dev
|
||||
|
||||
The following packages are needed in order for the included libraries to function
|
||||
```
|
||||
build-essential
|
||||
libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev
|
||||
libx11-dev libxcursor-dev libxtst-dev libxft-dev libxmu-dev libxi-dev
|
||||
```
|
||||
|
||||
Heres an easy one-line install script
|
||||
```
|
||||
sudo apt install build-essential libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libx11-dev libxcursor-dev libxtst-dev libxft-dev libxmu-dev libxi-dev -y
|
||||
sudo apt install cmake build-essential libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libx11-dev libxcursor-dev libxtst-dev libxft-dev libxmu-dev libxi-dev -y
|
||||
```
|
||||
|
||||
After this point, follow the same instructions for MacOS, or use the CLI Interface Below
|
||||
After this point, follow the same instructions for MacOS, or use the CLI Interface below.
|
||||
|
||||
*NOTE* - For some reason, unix needs to use #include `<GL/freeglut.h>`, it will thow a error if #include `<gl/freeglut.h>`. Notice the capitalization
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
#if defined(use_freeglut)
|
||||
#include <glad/glad.h>
|
||||
#define FREEGLUT_STATIC
|
||||
#include <gl/freeglut.h>
|
||||
#include <GL/freeglut.h>
|
||||
#else
|
||||
#include <GLUT/glut.h>
|
||||
#endif
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#if defined(use_freeglut)
|
||||
# include <glad/glad.h>
|
||||
# define FREEGLUT_STATIC
|
||||
# include <gl/freeglut.h>
|
||||
# include <GL/freeglut.h>
|
||||
#else
|
||||
# include <GLUT/glut.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user