[Thinlinc-technical] Rendering OpenGl Applications via ThinLinc Terminal Servers

Peter Astrand astrand at cendio.se
Tue Jan 28 13:20:17 CET 2014


On Tue, 28 Jan 2014, Avijit Ashe wrote:

> Hello all,
> I am trying to find out how to run a sample OpenGL code (written in C with freeglut) on the terminal server (that has all libraries
> installed), through my client (on another linux system, with no libraries installed). I simply want to run some code out of the server as
> the documentation of ThinLinc says it supports OpenGL.
...
> from my client (System 2) using the usual procedure;
>        gcc spin.c -lglut
> This line compiles it properly and there are no warnings or errors at all (just as it compiled when done on System 1)
>        ./a.out
> This must draw the window and display as in System 1 earlier but now gives "Segmentation fault" on my client (System 2)

Hi. This should work. You have two alternatives:

1) Use the builtin software based OpenGL implementation. This should work 
ouf of the box, just run the application as you normally do. (However, due 
to bugs in the Nvidia drivers, the software based OpenGL has been disabled 
on our demo servers.)

2) Use VirtualGL, in conjunction with a real graphics card in the server. 
This gives much better performance. When VirtualGL is setup, you can use 
it by starting applications through "vglrun", ie "vglrun ./a.out".


I've tested your programs and it seems to work with both methods. I've not 
been able to reproduce the segmentation fault. I've fixed a few minor 
things though:

* Better indentation
* Include stdio.h
* Added build command to comment
* Print newlines after printf outputs

So unfortunately I cannot tell you why you get a segmentation fault. Try 
building with debug information (-g) and run it in a debugger such as gdb.


Regards, 
---
Peter Astrand		ThinLinc Chief Developer
Cendio AB		http://cendio.com
Teknikringen 8		http://twitter.com/ThinLinc
583 30 Linkoping	http://facebook.com/ThinLinc
Phone: +46-13-214600	http://google.com/+CendioThinLinc
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glutspin.c
URL: <http://lists.cendio.se/pipermail/thinlinc-technical/attachments/20140128/14252839/attachment.c>


More information about the Thinlinc-technical mailing list