Coder Social home page Coder Social logo

aviko's Introduction

aviko

Building on Raspberry Pi

First, update, and install required libraries:

sudo apt update
sudo apt install libsdl2-2.0-0 libsdl2-dev libsdl2-image-2.0-0 libsdl2-image-dev libsdl2-mixer-2.0-0 libsdl2-mixer-dev libsdl2-net-2.0-0 libsdl2-net-dev libsdl2-ttf-2.0-0 libsdl2-ttf-dev libmozjs-24-0 libmozjs-24-dev

Then, fetch current Aviko repository:

git https://github.com/kirilledelman/aviko.git aviko
cd aviko

Fetch required SDL_gpu library

git clone https://github.com/grimfang4/sdl-gpu.git sdl-gpu
cd sdl-gpu

Open SDL_gpu's make file:

nano CMakeLists.txt

Press Ctrl+W to invoke search, and type USE_BRO, press Enter, you'll see this line:

add_definitions(-DSDL_GPU_USE_BROADCOM_RASPBERRYPI_WORKAROUND)

Add # in front of it, so it's commented out:

# add_definitions(-DSDL_GPU_USE_BROADCOM_RASPBERRYPI_WORKAROUND)

Now, Ctrl+W again, and type 1.X, then Enter. You'll see a block that looks like this:

option(SDL_gpu_DISABLE_OPENGL_1 "Disable OpenGL 1.X renderer" OFF)
option(SDL_gpu_DISABLE_OPENGL_2 "Disable OpenGL 2.X renderer" OFF)
option(SDL_gpu_DISABLE_OPENGL_3 "Disable OpenGL 3.X renderer" OFF)
option(SDL_gpu_DISABLE_OPENGL_4 "Disable OpenGL 4.X renderer" OFF)
option(SDL_gpu_DISABLE_GLES_1 "Disable OpenGLES 1.X renderer" OFF)
option(SDL_gpu_DISABLE_GLES_2 "Disable OpenGLES 2.X renderer" OFF)
option(SDL_gpu_DISABLE_GLES_3 "Disable OpenGLES 3.X renderer" OFF)

Change it, so only "Disable OpenGLES 2.X renderer" is OFF, and all others are ON:

option(SDL_gpu_DISABLE_OPENGL_1 "Disable OpenGL 1.X renderer" ON)
option(SDL_gpu_DISABLE_OPENGL_2 "Disable OpenGL 2.X renderer" ON)
option(SDL_gpu_DISABLE_OPENGL_3 "Disable OpenGL 3.X renderer" ON)
option(SDL_gpu_DISABLE_OPENGL_4 "Disable OpenGL 4.X renderer" ON)
option(SDL_gpu_DISABLE_GLES_1 "Disable OpenGLES 1.X renderer" ON)
option(SDL_gpu_DISABLE_GLES_2 "Disable OpenGLES 2.X renderer" OFF)
option(SDL_gpu_DISABLE_GLES_3 "Disable OpenGLES 3.X renderer" ON)

Press Ctrl+O to save changes, and press Enter at file name prompt. Then press Ctrl+X to exit the text editor.

Now, we'll build, install, and remove SDL_gpu directory (you can ignore build warnings):

cmake -G "Unix Makefiles"
make
sudo make install
cd ..
rm -rf sdl-gpu

Now, let's build and install Aviko:

mkdir obj
make
sudo make install

aviko's People

Contributors

kirilledelman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.