Changeset 17714b8 in opengl-game


Ignore:
Timestamp:
Aug 29, 2019, 7:52:09 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
850e84c
Parents:
8a40f4b
git-author:
Dmitry Portnoy <dmp1488@…> (08/29/19 04:32:59)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (08/29/19 19:52:09)
Message:

Update the README and makefile to correctly setup and build vulkangame with SDL2 on Ubuntu

Files:
1 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • README.txt

    r8a40f4b r17714b8  
    8585Download the vulkan sdk (make sure VULKAN_SDK_PATH in the makefile points to it)
    8686
    87 sudo apt-get install libxcb1-dev xorg-dev libsdl2-dev libglm-dev
     87sudo apt-get install libxcb1-dev xorg-dev libglm-dev libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
    8888
    8989source setup-env.sh into your current shell
  • makefile

    r8a40f4b r17714b8  
    4747endif
    4848ifeq ($(OS),Linux)
    49         LIBS := -lvulkan $(LIBS)
     49        LIBS = `pkg-config --static --libs sdl2 glfw3`
     50        LIBS := -lvulkan $(LIBS) -lSDL2_image -lSDL2_ttf # TODO: figure out how to statically link these, ideally using pkg-config
    5051endif
    5152
    5253LIB_FLAGS = $(LIB_PATHS) $(LIBS)
     54
     55vulkanref: vulkan-ref.cpp game-gui-sdl.cpp game-gui-glfw.cpp
     56        $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS)
    5357
    5458vulkangame: vulkan-game.cpp game-gui-sdl.cpp game-gui-glfw.cpp
     
    6165clean:
    6266        rm -f newgame
     67        rm -f vulkanref
    6368        rm -f vulkangame
    6469        rm -f shaders/*.spv
Note: See TracChangeset for help on using the changeset viewer.