Re: [xorg] Where can I find the code examples from the X11 books?
On 04/12/11 12:58 PM, Lori Nagel wrote: > > I have most of the X11 books series. (there were books 0-8) that had a lot of > documentation about the X11 interface. I wonder where I can get the code > examples for the books. In particular, book 4, the Athena Widget version. I > have been able to find the books online, but not the code examples, that I am > really wanting O'Reilly, the book publisher, still seems to have "Example Code" links on the book pages that lead to tarballs, I didn't download & unpack them to confirm: Volume 1 (Xlib): http://oreilly.com/catalog/9781565920026/ Volume 4 (Motif): http://oreilly.com/catalog/9781565920132/ http://oreilly.com/oreilly/cs/examples-faq.html has information about finding examples based on the books ISBN numbers, so you should hopefully be able to find the rest from the numbers on the book cover, the list on http://www.x.org/wiki/ProgrammingDocumentation or from finding the books on Amazon. However, I must strongly urge you to use a modern toolkit instead for new code. The Athena widgets will be sorely lacking in support for accessibility, internationalization, integration to modern desktops, modern font and graphics rendering, and many other things expected in modern X applications. -- -Alan Coopersmith-alan.coopersm...@oracle.com Oracle Solaris Platform Engineering: X Window System ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
[xorg] Where can I find the code examples from the X11 books?
I have most of the X11 books series. (there were books 0-8) that had a lot of documentation about the X11 interface. I wonder where I can get the code examples for the books. In particular, book 4, the Athena Widget version. I have been able to find the books online, but not the code examples, that I am really wanting. It is getting to be a pain to have to type it all out by hand and guess what they mean every time they do the ... in the books. The books give these old ways to get code that may have worked in 1993, but the internet has changed so much since then, I wonder where I can get them now. Do you think you would be able to help me? Also, I wonder if anyone else on this list is interested in working with me to develop a game in X11. I know retro-gaming has been, and is popular, but I think that we could do more to make a nice game without the long lists of dependancies I find in most GNU/Linux games these days. - Jastiv ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: i couldn't start an application which is installed on the Server with Graphic User Interface
Philipp Hagemeister and Wolfgang Draxinger, thank you both very much, i just installed Xming, and then i solved every problem. and i installed xCrySDen1.5.21, and it worked well too. Thank you, Philipp *【this is an email sent by tiankong】* > Is there an X11 server running on your Windows machine? Standard > Windows and PuTTY don't ship with a X server. Either use Cygwin or > Xming to start an X server on your Windows machine, then use ssh. > > > Wolfgang > ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: i couldn't start an application which is installed on the Server with Graphic User Interface
On Tue, 12 Apr 2011 17:51:42 +0800 tian kong wrote: > But when i used Ubuntu10.04, open the terminal, and use the following > command: ssh -l abc -p 222 111.111.111.111 -X, and then after i login > into the server and start xCrySDen, it works, i can see the > application's graphic user interface. > i want it works correctly when the clients' OS is Windows. Can you > help me? Thx a lot > 【this is an email sent by tiankong】 Is there an X11 server running on your Windows machine? Standard Windows and PuTTY don't ship with a X server. Either use Cygwin or Xming to start an X server on your Windows machine, then use ssh. Wolfgang ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: i couldn't start an application which is installed on the Server with Graphic User Interface
X applications (such as the ones rendering the graphical interface from your Linux Server) need an X server they can talk to. The X server renders the drawing commands by the application. While Ubuntu includes an X server, Windows does not. You need to install a Windows X server such as Xming (*and* enable X11 forwarding in your ssh client). Alternatively, you can use another protocol such as VNC or nomachine nx. You'll need a Windows client and a server on the .. well ... server. Be warned that X tends not to perform well over high-latency low-bandwidth links. Both VNC and nx are far more suitable on such Additionally, the output > Error in startup script: can't read "xcrys(platform)": no such > variable while executing > (...) indicates an error in the application you're using (XCrySDen). Please contact their support. Since you are apparently not running the latest version, I'd encourage you to do so before reporting a bug. Cheers, Philipp tian kong wrote: > i connected to a Server which is using SUSE Linux Enterprise Server 10 SP2 > (x86_64). > I have just installed xCrySDen on the Server. I want to open it with a > graphic user interface when i use a ssh client( F-Secure ssh client ) to > connect to the server. > > When i use F-Secure ssh client in Windows 7, login in the server, then start > xCrySDen, it failed with the following text: > > Application initialization failed: no display name and no $DISPLAY > environment variable > Error in startup script: can't read "xcrys(platform)": no such variable >while executing > "if { $xcrys(platform) == "windows" } { ># testing ... >rename exec _tcl_exec > >proc exec {args} { >global env > ># first try a normal exec..." >(file > "/home/users/luttangfl/software/XCrySDen-1.5.21-bin-semishared/Tcl/cygwin.tcl" > line 19) >invoked from within > "source $system(TOPDIR)/Tcl/cygwin.tcl" >(file > "/home/users/luttangfl/software/XCrySDen-1.5.21-bin-semishared/Tcl/xcInit.tcl" > line 433) > > then, i tried the command xlogo, it said: > Error: Can't open display: > > When i use Putty( another ssh client) in Windows 7, enable the X11 > forwarding in Putty, it still couldn't open the graphic user interface. > > But when i used Ubuntu10.04, open the terminal, and use the following > command: ssh -l abc -p 222 111.111.111.111 -X, and then after i login into > the server and start xCrySDen, it works, i can see the application's graphic > user interface. > i want it works correctly when the clients' OS is Windows. Can you help me? > Thx a lot > 【this is an email sent by tiankong】 > > > > > ___ > xorg@lists.freedesktop.org: X.Org support > Archives: http://lists.freedesktop.org/archives/xorg > Info: http://lists.freedesktop.org/mailman/listinfo/xorg > Your subscription address: phi...@phihag.de signature.asc Description: OpenPGP digital signature ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Multibuffer Extension and Stereoscopic Rendering / Doublebuffering and Composite
Hi, as most of you are aware (or should be) the multibuffer extension had been dropped from the latest release of X.Org. However multibuffer had been the way to create stereoscopic drawables -- if one doesn't consider OpenGL quadbuffer, which works independently from X multibuffer (personally I consider this a bad choice on the design of GLX, doing it independently - a clear connection between X (multi)buffers and OpenGL front/back/auxiliaries would have been the better design IMHO; also, at least on my system some visuals reported not being double bufferd by glX are reported double buffered by DBE, so there's some discrepancy there, too). I consider myself as a high profile OpenGL programmer and because of that, knowing the properties of this "tool", I think, that the current trend to do everything related to graphics using OpenGL is, sorry I've to say it that blunt, *stupid*. OpenGL is an excellent API, but to some people it seems to be their hammer to unfit nails (for example it's extremely tedious to implement HW accelerated crips vector graphics using OpenGL, like you need it for font rendering; there are some techniques like "vector textures", but they're quite heavy on feature demands, essentially implementing a scanline curve rasterizer in the fragment shader, with some preprocessing in a geometry shader). There are serious applications that demand stereoscopic view modes, that don't require 3D rasterizing capabilties at all (steroscopic video players for example). As far as I understand, (some of) the capabilities of multibuffer were considered to be included into doublebuffer extension. How is the current state on this, especially on the topic of stereoscopic rendering - or even far more advanced, multi viewpoint rendering. For example the deprecation of multibuffer means that a multiviewpoint^1 display tool I implemented some time ago stopped working. With the popularity of stereoscopic 3D, and some of the advanced things you can do I see the need for: - ability to create or associate at least two, but better multiple drawables to a window. - ability to tether/bind X drawables to corresponding objects in auxiliary rendering APIs^2 - Extensions for accelerated video display should allow to bind to multi-drawables, either by individual layers/components, or at whole. Last but not least the DBE still lacks some important functionality (which should be trivial to implement): Defining buffer swap behaviour, i.e. the time when to swap the contents of a double buffer (sync it to V-Sync, swap immediately, or sync to a SYNC extension counter). There are some GLX extensions to this, but still core X doesn't provide it. This kind of swap control should interface with the SYNC and COMPOSITE extensions: Compositing in some way is some kind of super-doublebuffer; however since clients usually don't signal a "rendering done", one can see in-client tearing. Using a doublebuffered visual imposes V-Sync granularity on compositor updates, percieved as lag and stuttering by the user (unless the OpenGL driver has been configured so: Don't V-Sync by default, but respect the applications choice doing V-Sync which the Compositor may use). This could be resolved by conventional use of SYNC counters for this purpose. I already wrote a mail to this list about stereoscopy some time ago, where I already tried to start a discussion on this topic. So here it goes again, hopefully this time more people will answer and share their thoughts. Greetings, Wolfgang [1]: Instead of just two views the scene is photographed/rendered from a large number of horizontally shifted eye positions; a tracker measures the position of the viewer (technically it's a Wii-Mote and a set of IR LEDs on the 3D glasses), showing the apropriate pictures, making it possible to look "behind" objects upfront. [2]: IMHO GLX needs some major overhaul, there are a lot of misconceptions out there, even among people who should know better, especially about the caveats of direct/indirect rendering - recently I read an article that claimed that the performance improvements of Vertex Buffer Objects are only accessible through direct rendering and no gain is possible in indirect mode; actually especially when direct rendering is not available the use of VBOs, placing all data on the server side give a HUGE performance boost, as the whole idea of VBOs is eliminating any kind of bottleneck between the API consumer and the renderer). ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
i couldn't start an application which is installed on the Server with Graphic User Interface
i connected to a Server which is using SUSE Linux Enterprise Server 10 SP2 (x86_64). I have just installed xCrySDen on the Server. I want to open it with a graphic user interface when i use a ssh client( F-Secure ssh client ) to connect to the server. When i use F-Secure ssh client in Windows 7, login in the server, then start xCrySDen, it failed with the following text: Application initialization failed: no display name and no $DISPLAY environment variable Error in startup script: can't read "xcrys(platform)": no such variable while executing "if { $xcrys(platform) == "windows" } { # testing ... rename exec _tcl_exec proc exec {args} { global env # first try a normal exec..." (file "/home/users/luttangfl/software/XCrySDen-1.5.21-bin-semishared/Tcl/cygwin.tcl" line 19) invoked from within "source $system(TOPDIR)/Tcl/cygwin.tcl" (file "/home/users/luttangfl/software/XCrySDen-1.5.21-bin-semishared/Tcl/xcInit.tcl" line 433) then, i tried the command xlogo, it said: Error: Can't open display: When i use Putty( another ssh client) in Windows 7, enable the X11 forwarding in Putty, it still couldn't open the graphic user interface. But when i used Ubuntu10.04, open the terminal, and use the following command: ssh -l abc -p 222 111.111.111.111 -X, and then after i login into the server and start xCrySDen, it works, i can see the application's graphic user interface. i want it works correctly when the clients' OS is Windows. Can you help me? Thx a lot 【this is an email sent by tiankong】 ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: Dvorak-Qwerty Keyborad Layout
On Sun, Apr 10, 2011 at 12:15:56PM +0200, Thomas Berger wrote: >Hi, >I'm using the US Dvorak keyboard layout with X.Org X Server 1.9.0. The >problem I have is that control-key and alt-key keys are also mapped, so >that ctrl-c becomes ctrl-i, etc. Is there a way to have the Dvorak >keyboard layout, but if one presses control or alt it uses the Qwerty >keyboard layout? This layout is available by default on Mac OSX. The >reasons for such a layout is that the common copy/paste hotkeys X, C, >and V remain on the left hand, and so can be used while the right hand >is on the mouse. >Regarding this issue I found the following workarounds, which did not >work as expected: >[1]http://ubuntuforums.org/showthread.php?t=774773 >[2]http://code.google.com/p/dvorak-qwerty/ >[3]http://forums.gentoo.org/viewtopic-p-4660238.html?sid=e2605ed35a9188 >210eeb03f07d615279 >Can such a Dvorak-Qwerty layout be implement/configured in xorg? No, that can't be done with an XKB configuration. The solution would be that shortcuts on the client side could be defined in terms of keys and not keysyms. For example in KDE there is the system-settings dialog "Standard Keyboard Shortcuts" -- so there appears to be desktop wide abstraction for it. If it would be possible to to assign a shortcut to a key and not the keysym (eg 'c' for crtl-c) it would be possible to have those shortcuts independent of which layout you use. -- Cheers, Dirk ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com