Changeset ab65f84 in opengl-game
- Timestamp:
- Jul 2, 2019, 5:16:02 PM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- b6127d2
- Parents:
- 826df16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
README.txt
r826df16 rab65f84 46 46 47 47 48 Vulkan Instructions 48 -------------------- 49 VULKAN INSTRUCTIOS 49 50 -------------------- 50 51 52 Windows 53 -------- 54 55 ??? 56 51 57 Linux: 58 -------- 52 59 53 Download the Vulkan SDK from ... 60 sudo apt-get install libxcb1-dev xorg-dev libsdl2-dev libglm-dev 54 61 55 -Compile GLFW3 from source 56 (cmake . && make && sudo make install) 62 Download the vulkan sdk (make sure VULKAN_SDK_PATH in the makefile points to it) 57 63 58 -sudo apt-get install libxcb1-dev xorg-dev libsdl2-dev libglm-dev 64 make vulkcangame && ./vulkangame 59 65 60 66 OSX 67 -------- 61 68 62 Download the vulkan sdk 69 brew install sdl2 (might need 'brew install sdl2 --HEAD') 63 70 64 Theoretically, installing sdl using "brew install sdl2 --HEAD" should give me the one with VUlkan support 71 Download the vulkan sdk (make sure VULKAN_SDK_PATH in the makefile points to it) 72 73 make vulkcangame && ./vulkangame -
makefile
r826df16 rab65f84 2 2 OS = $(shell uname) 3 3 CC = g++ 4 CFLAGS = -std=c++1 1-Wall -pedantic -rdynamic4 CFLAGS = -std=c++17 -Wall -pedantic -rdynamic 5 5 # -rdynamic is to generate debug info for dynamic symbols on debian-based 6 6 # systems (tested on Linux Mint) … … 34 34 $(CC) $^ $(DEP) $(CFLAGS) -o $@ 35 35 36 # from the mac makefile 37 #CXX_INCLUDES = -I/Users/dportnoy15/Development/vulkan-sdk-macos-1.1.108.0/macOS/include -I/usr/local/Cellar/sdl2/2.0.9_1/include/SDL2 38 #LIBFLAGS = -Wl,-rpath,$(VULKAN_SDK_PATH)/macOS/lib $(VULKAN_SDK_PATH)/macOS/lib/libvulkan.dylib -L/usr/local/Cellar/sdl2/2.0.9_1/lib -lSDL2 36 CXX_FLAGS = -std=c++17 -Wall -pedantic # -O3 -rdynamic 39 37 40 CXX_FLAGS = -std=c++17 -Wall -pedantic # -O3 38 ifeq ($(OS),Darwin) 39 VULKAN_SDK_PATH = /Users/dportnoy15/Development/vulkan-sdk-macos-1.1.108.0/macOS 40 endif 41 ifeq ($(OS),Linux) 42 VULKAN_SDK_PATH = /home/dportnoy/Desktop/VulkanSDK/1.1.106.0/x86_64 43 endif 41 44 42 VULKAN_SDK_PATH = /home/dportnoy/Desktop/VulkanSDK/1.1.106.0/x86_64 45 LIB_PATHS = -I$(VULKAN_SDK_PATH)/include 46 ifeq ($(OS),Darwin) 47 LIB_PATHS := -Wl,-rpath,$(VULKAN_SDK_PATH)/lib $(LIB_PATHS) 48 endif 49 ifeq ($(OS),Linux) 50 LIB_PATHS := -L$(VULKAN_SDK_PATH)/lib $(LIB_PATHS) 51 endif 43 52 44 LIB_PATHS = -L$(VULKAN_SDK_PATH)/lib -I$(VULKAN_SDK_PATH)/include 45 LIBS = -lvulkan -lSDL2 53 LIBS = -lSDL2 54 ifeq ($(OS),Darwin) 55 LIBS := $(VULKAN_SDK_PATH)/lib/libvulkan.dylib $(LIBS) 56 endif 57 ifeq ($(OS),Linux) 58 LIBS := -lvulkan $(LIBS) 59 endif 46 60 47 61 LIB_FLAGS = $(LIB_PATHS) $(LIBS)
Note:
See TracChangeset
for help on using the changeset viewer.