Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Blank window on Raspberry Pi / Raspbian
- - By dsm0nd Date 2016-10-17 09:01
Hi,

I am quite new to Gosu and I have an application that is running perfectly under Os X. I have tried to run it on a Raspberry Pi under Raspbian Jessie. I Installed everything as stated in the getting started guide (all dependencies, SDL and SDL_ttf compiled) and had no problem installing the gosu gem.
The application starts and opens the window but nothing is drawn.

Just to be sure I executed a basic "hello world" but I got the same result. Runs fine, nothing is shown in the screen (neither windowed nor fullscreen).

=====CODE=====
require 'rubygems'
require 'gosu'

class Hello < Gosu::Window
  def initialize
    super 640, 480, true
    self.caption = 'Hello World!'
    @background_image = Gosu::Image.new("media/background.png", :tileable => true)   
  end

  def draw
    @background_image.draw(0, 0, 0)
    puts 'drawing'
  end
end

window = Hello.new
window.show
=====CODE=====

I get "drawing" written in the terminal, so 'draw' is called and executed, but nothing shown on the screen.

Any Idea? Am i missing something? Some library needed and not installed? Some settings I overlooked?

Thanks in advance,
dsm0nd
Parent - - By dsm0nd Date 2016-10-18 10:00
[SOLVED]

Found the problem.

I configured it and built with

> ./configure --host=armv7l-raspberry-linux-gnueabihf --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl
> make
> sudo make install


now it's working
Parent - By jlnr (dev) Date 2016-10-19 21:58
Wow, that's great to hear. That's an original Pi, right? The tutorial was written before Jessie, I've quickly updated it:

https://github.com/gosu/gosu/wiki/Getting-Started-on-Raspbian-(Raspberry-Pi)

Does audio work even after disabling pulseaudio and esd?
Parent - By mikedstark Date 2017-02-07 10:02
I know this is a bit late but, which Pi are you using? I could not get gosu to run on the pi 3 and I don't have the pi in my possession at this time to test your solution.
Up Topic Gosu / Gosu Exchange / Blank window on Raspberry Pi / Raspbian

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill