Coder Social home page Coder Social logo

lizhao21st / scenic_driver_glfw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scenicframework/scenic_driver_glfw

0.0 0.0 0.0 987 KB

Scenic render and input driver for windowed OSs

License: Apache License 2.0

Shell 0.06% C 89.60% Elixir 10.23% Makefile 0.12%

scenic_driver_glfw's Introduction

Scenic.Driver.Glfw

The main Mac and Ubuntu driver for Scenic applications

Might work on other systems too, but I've only tested those two...

See main Scenic documentation for the real installation steps

⚠ This has been replaced in Scenic 0.11+ by scenic_driver_local! ⚠

Installing on MacOS

The easiest way to install on MacOS is to use Homebrew. Just run the following in a terminal:

brew update
brew install glfw3 glew pkg-config

Once these components have been installed, you should be able to build the scenic_driver_glfw driver.

Installing on Ubuntu 18.04

The easiest way to install on Ubuntu is to use apt-get. Just run the following:

apt-get update
apt-get install pkgconf libglfw3 libglfw3-dev libglew2.0 libglew-dev

Once these components have been installed, you should be able to build the scenic_driver_glfw driver.

Installing on Ubuntu 20.04

The easiest way to install on Ubuntu is to use apt-get. Just run the following:

apt-get update
apt-get install pkgconf libglfw3 libglfw3-dev libglew2.1 libglew-dev

Once these components have been installed, you should be able to build the scenic_driver_glfw driver.

Installing on Archlinux

The easiest way to install on Archlinux is to use pacman. Just run the following:

pacman -Syu
sudo pacman -S glfw-x11 glew

If you're using wayland, you'll probably need glfw-wayland instead of glfw-x11 and glew-wayland instead of glew

Installing on Windows

First, make sure to have installed Visual Studio with its "Desktop development with C++" package.

Next, you need to download the Windows binaries for GLFW and GLEW manually.

Locate your Visual Studio installation directory. Two folders will be required for the next steps:

  • The Include folder: {Visual Studio Path}\VC\Tools\MSVC\{version number}\include
  • The Lib folder: {Visual Studio Path}\VC\Tools\MSVC\{version number}\lib\x64

Open the GLFW package you downloaded. Extract the contents of the packaged include folder to your Visual Studio Include folder. Next to the include folder, you'll also find several lib-vc20xx folders. Select the closest match to your Visual Studio version and extract the contents to your Lib folder.

Lastly, install the GLEW package. Find the packaged include folder and extract its contents to your Include folder as well. You should now have two new folders in your Include folder: GL and GLFW. Now navigate to lib\Release\x64 in the GLEW package. Copy all *.lib files to your Lib folder. Finally, navigate to bin\Release\x64 and copy glew32.dll to your Windows\system32 folder.

Once these components have been installed, you should be able to build the scenic_driver_glfw driver.

General Installation

As this is a hex package, it can be installed by adding scenic_driver_glfw to your list of dependencies in mix.exs:

def deps do
  [
    {:scenic_driver_glfw, "~> 0.10"}
  ]
end

Documentation

Documentation can be found at https://hexdocs.pm/scenic_driver_glfw.

scenic_driver_glfw's People

Contributors

boydm avatar gvirtu avatar ejc123 avatar crertel avatar awlexus avatar fhunleth avatar gazler avatar jhosteny avatar tuxified 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.