[Ves] VES on the Raspberry Pi
Pat Marion
pat.marion at kitware.com
Thu Jul 4 16:33:40 EDT 2013
Hi John,
Luis and I got VES to run on raspberry pi without X11, but the work didn't
get far enough to get full support added to the VES repository. Attached
are two files that are work in progress, this is as far as I got. It works
with basic mouse input, but it doesn't support keyboard input. My next
plan was going to look at SDL to see if I could get key and mouse events
that way.
To use the attached files, replace src/kiwi/vesKiwiTestHelper.h with the
attached file. Copy vesTestHelperRaspi.h into src/kiwi. Compile, and
hopefully if there are compile issues it's easy to fix. Then launch
TestKiwiViewer from the terminal before starting the graphical desktop
environment with X11. You should get a fullscreen render window that shows
the spaceship dataset. Clicking the mouse should exit. I think everything
should work once the keyboard/mouse input is implemented.
Luis and I also ran VES using X11, but I don't remember if that was using
GLUT or if it used the old VES tests that used only EGL and ES 2.0 and got
keyboard/mouse events directly from X11 apis instead of using GLUT. If you
look at the git history of TestKiwiViewer.cpp, you'll find an older version
before GLUT was used.
Pat
On Thu, Jul 4, 2013 at 4:09 PM, John Donovan <mersey.viking at gmail.com>wrote:
> Having just watched the webinar on ITK and VTK on the Pi, I thought I
> would have a go at compiling VES on my Pi under the latest Raspbian
> using the Superbuild. It compiled fine, but I'm having problems
> running the examples.
>
> the video says that VES bypasses X completely which is great, but if I
> run TestKiwiViewer from the terminal (directly from the Pi, not via
> SSH), I get:
> freeglut (./TestKiwiViewer): failed to open display ''
>
> Running from within X gives me:
> freeglut (./TestKiwiViewer): OpenGL GLX extension not supported by display
> ':0'
>
> When I was compiling VES it couldn't find GLUT, so I apt-installed
> freeglut3-dev, which I presume is the right dependency. Also I'm using
> the version of cmake from the repo - 2.8.9 rather than the very latest
> one as suggested in the ITK on the Raspberry Pi video.
>
> Is there a step I have missed?
>
> Regards,
> John
>
> --
> One of the advantages of being disorderly is that one is constantly
> making exciting discoveries. - AA Milne
> _______________________________________________
> Ves mailing list
> Ves at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20130704/1f2786fd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vesKiwiTestHelper.h
Type: text/x-chdr
Size: 4665 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/ves/attachments/20130704/1f2786fd/attachment-0006.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vesTestHelperRaspi.h
Type: text/x-chdr
Size: 8012 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/ves/attachments/20130704/1f2786fd/attachment-0007.h>
More information about the Ves
mailing list