<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 5, 2013 at 6:33 AM, John Donovan <span dir="ltr"><<a href="mailto:mersey.viking@gmail.com" target="_blank">mersey.viking@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">OK, the issue I seem to be getting is a conflict between the function<br>
declarations in gl.h and those in GLES/gl2.h while compiling<br>
TestDrawPlane.cpp because (free)GLUT is including the standard OpenGL<br>
headers. I'm surprised GLUT is needed at all on mobile platforms, but<br>
vesTestHelper.h uses it.<br></blockquote><div><br></div><div style>No GLUT is not required on mobile platforms. We use it on desktop for testing. Did you set VES_USE_DESKTOP_GL to OFF? Another thing to try is set BUILD_TESTING to OFF (just to make sure you can compile core libraries on the system). </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
As GLUT includes GL/gl.h, I can't even put the GLES include<br>
directories first, and surely I don't have to overwrite GL/gl.h with<br>
the GLES version. Maybe my configuration is messed up, I'll carry on<br>
poking around.<br>
<span class=""><font color="#888888"><br>
-John<br>
</font></span><div class=""><div class="h5"><br>
On 5 July 2013 01:04, Aashish Chaudhary <<a href="mailto:aashish.chaudhary@kitware.com">aashish.chaudhary@kitware.com</a>> wrote:<br>
> +1 It would be awesome to completely support Raspberry Pi<br>
><br>
><br>
><br>
><br>
> On Thu, Jul 4, 2013 at 4:43 PM, John Donovan <<a href="mailto:mersey.viking@gmail.com">mersey.viking@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi Pat,<br>
>> Thanks for the quick reply. I'll get those files in and compiling<br>
>> later. The project I am involved in is in its early stages, but I am<br>
>> happy to hack on the VES source code to improve support for the Pi and<br>
>> submit pull requests or patches if that would be of help.<br>
>><br>
>> Regards,<br>
>> John<br>
>><br>
>> On 4 July 2013 21:33, Pat Marion <<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>> wrote:<br>
>> > Hi John,<br>
>> ><br>
>> > Luis and I got VES to run on raspberry pi without X11, but the work<br>
>> > didn't<br>
>> > get far enough to get full support added to the VES repository.<br>
>> > Attached<br>
>> > are two files that are work in progress, this is as far as I got. It<br>
>> > works<br>
>> > with basic mouse input, but it doesn't support keyboard input. My next<br>
>> > plan<br>
>> > was going to look at SDL to see if I could get key and mouse events that<br>
>> > way.<br>
>> ><br>
>> > To use the attached files, replace src/kiwi/vesKiwiTestHelper.h with the<br>
>> > attached file. Copy vesTestHelperRaspi.h into src/kiwi. Compile, and<br>
>> > hopefully if there are compile issues it's easy to fix. Then launch<br>
>> > TestKiwiViewer from the terminal before starting the graphical desktop<br>
>> > environment with X11. You should get a fullscreen render window that<br>
>> > shows<br>
>> > the spaceship dataset. Clicking the mouse should exit. I think<br>
>> > everything<br>
>> > should work once the keyboard/mouse input is implemented.<br>
>> ><br>
>> > Luis and I also ran VES using X11, but I don't remember if that was<br>
>> > using<br>
>> > GLUT or if it used the old VES tests that used only EGL and ES 2.0 and<br>
>> > got<br>
>> > keyboard/mouse events directly from X11 apis instead of using GLUT. If<br>
>> > you<br>
>> > look at the git history of TestKiwiViewer.cpp, you'll find an older<br>
>> > version<br>
>> > before GLUT was used.<br>
>> ><br>
>> > Pat<br>
>> ><br>
>> ><br>
>> > On Thu, Jul 4, 2013 at 4:09 PM, John Donovan <<a href="mailto:mersey.viking@gmail.com">mersey.viking@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Having just watched the webinar on ITK and VTK on the Pi, I thought I<br>
>> >> would have a go at compiling VES on my Pi under the latest Raspbian<br>
>> >> using the Superbuild. It compiled fine, but I'm having problems<br>
>> >> running the examples.<br>
>> >><br>
>> >> the video says that VES bypasses X completely which is great, but if I<br>
>> >> run TestKiwiViewer from the terminal (directly from the Pi, not via<br>
>> >> SSH), I get:<br>
>> >> freeglut (./TestKiwiViewer): failed to open display ''<br>
>> >><br>
>> >> Running from within X gives me:<br>
>> >> freeglut (./TestKiwiViewer): OpenGL GLX extension not supported by<br>
>> >> display<br>
>> >> ':0'<br>
>> >><br>
>> >> When I was compiling VES it couldn't find GLUT, so I apt-installed<br>
>> >> freeglut3-dev, which I presume is the right dependency. Also I'm using<br>
>> >> the version of cmake from the repo - 2.8.9 rather than the very latest<br>
>> >> one as suggested in the ITK on the Raspberry Pi video.<br>
>> >><br>
>> >> Is there a step I have missed?<br>
>> >><br>
>> >> Regards,<br>
>> >> John<br>
>> >><br>
>> >> --<br>
>> >> One of the advantages of being disorderly is that one is constantly<br>
>> >> making exciting discoveries. - AA Milne<br>
>> >> _______________________________________________<br>
>> >> Ves mailing list<br>
>> >> <a href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a><br>
>> >> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
>> ><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> One of the advantages of being disorderly is that one is constantly<br>
>> making exciting discoveries. - AA Milne<br>
>> _______________________________________________<br>
>> Ves mailing list<br>
>> <a href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a><br>
>> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
><br>
><br>
><br>
><br>
> --<br>
> | Aashish Chaudhary<br>
> | R&D Engineer<br>
> | Kitware Inc.<br>
> | <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
<br>
<br>
--<br>
One of the advantages of being disorderly is that one is constantly<br>
making exciting discoveries. - AA Milne<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer <br>| Kitware Inc. <br>| <a href="http://www.kitware.com">www.kitware.com</a>
</div></div>