Skip to content

Instantly share code, notes, and snippets.

View mruegenberg's full-sized avatar

Marcel Ruegenberg mruegenberg

View GitHub Profile
@mruegenberg
mruegenberg / gist:8401862a9cf4a8a45dea8e9307ab0dfc
Created March 7, 2024 16:00
rawtoaces Vagrant build for CentOS 7
# -*- mode: ruby -*-
# vi: set ft=ruby :
# note you might sometimes have to do `vagrant provision` multiple times for everything to work.
Vagrant.configure("2") do |config|
# config.vm.box = "bento/centos-7" # also try
config.vm.box = "boxomatic/centos-7"
# set box name

Keybase proof

I hereby claim:

  • I am mruegenberg on github.
  • I am quryo (https://keybase.io/quryo) on keybase.
  • I have a public key ASCeIqRwHELLVh2sGBrKduwZk1G4fxUPsPWK0dT1QKQqDAo

To claim this, I am signing this object:

#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
gl->background(255,255,255);
camera.setEvents(window->events());
camera.setRenderer(gl);
gui->radius.addListener(this,&ofApp::radiusChanged);
gui->radius=200;
@mruegenberg
mruegenberg / GuiApp.cpp
Created May 18, 2016 09:29
Problem with oF multiwindow and textures
// in GuiApp.h:
// ofFbo fbo2;
void GuiApp::setup(){
parameters.setName("parameters");
parameters.add(radius.set("radius",50,1,100));
parameters.add(color.set("color",100,ofColor(0,0),255));
gui.setup(parameters);
ofBackground(0);
$ cd cudpp_2_2
$ mkdir build
$ cd build
$ $ cmake -DCUDPP_BUILD_APPLICATIONS=ON ..
-- The C compiler identification is Clang 5.1.0
-- The CXX compiler identification is Clang 5.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
$ ls
Cargo.toml test.rs
$ cargo build -u -v
Updating git repository `https://github.com/sebcrozet/rust-stb-image`
Updating git repository `https://github.com/sebcrozet/glfw-rs`
Running `rustc src/lib.rs --crate-name stb_image --crate-type dylib --crate-type staticlib -C metadata=stb_image:-:0.0.1:-:https://github.com/sebcrozet/rust-stb-image -C extra-filename=-7e52165aefd1b390 --out-dir ~/cargo-bug/target/deps -L ~/cargo-bug/target/deps -L ~/cargo-bug/target/deps -L ~/cargo-bug/target/native/stb_image-7e52165aefd1b390`
Running `rustc src/glfw.rs --crate-name glfw --crate-type lib -C metadata=glfw:-:0.0.1:-:https://github.com/sebcrozet/glfw-rs -C extra-filename=-2ddcd1fa0ba5ed3c --out-dir ~/cargo-bug/target/deps -L ~/cargo-bug/target/deps -L ~/cargo-bug/target/deps -L ~/cargo-bug/target/native/glfw-2ddcd1fa0ba5ed3c`
Running `rustc test.rs --crate-name test --crate-type bin --out-dir ~/cargo-bug/target -L ~/cargo-bug/target -L ~/cargo-bug/target/deps -L ~/cargo-bug/target/native/glfw-2ddc
$ cmake -DCUDPP_BUILD_APPLICATIONS=ON ../cudpp
-- The C compiler identification is Clang 5.1.0
-- The CXX compiler identification is Clang 5.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
@mruegenberg
mruegenberg / gist:95fb82342179401c9c43
Created May 16, 2014 17:15
GLFW-rs build failure
make lib
sh etc/link-rs.sh "-lglfw3 -framework Cocoa -framework OpenGL -framework IOKit -framework CoreFoundation -framework CoreVideo " > src/lib/link.rs
mkdir -p lib
rustc --out-dir=lib -O src/lib/lib.rs
src/lib/callbacks.rs:137:161: 137:187 error: mismatched types: expected `Modifiers` but found `core::option::Option<Modifiers>` (expected struct Modifiers but found enum core::option::Option)
src/lib/callbacks.rs:137 window_callback!(fn mouse_button_callback(button: c_int, action: c_int, mods: c_int) => MouseButtonEvent(mem::transmute(button), mem::transmute(action), Modifiers::from_bits(mods)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/callbacks.rs:117:1: 128:2 note: in expansion of window_callback!
src/lib/callbacks.rs:137:1: 137:189 note: expansion site
src/lib/callbacks.rs:141:160: 141:186 error: mismatched types: expect