Re: Unable to launch openGL application on cygwin/X server from Sun S olaris OS

2004-11-19 Thread Alexander Gottwald
On Fri, 19 Nov 2004, Gautier, Valentin wrote:

> I intend to use an openGL demo on my cygwin/X server XWin or XWin_GL from a
> Solaris box.
> 
> 
> I can't make it work at all. When I launch ogl_install_check, I get:
> 
> bash-2.03$ /usr/openwin/demo/GL/ogl_install_check 
> /usr/openwin/demo/GL/sparcv9/ogl_install_check: glXChooseVisual Error: Can't
> find visual.
> 
> 
> Why does it that it doesn't work when it works perfectly with a linux box ?
> 
> I know that I can make it work replacing the OpenGL libs by Mesa libs, but
> the application I intend to use doesn't use mesa (SDRC Ideas with OGL).
> 
> Is there any one who encounters the same trouble and is there any solution
> to fix it?

Solaris apps like using fixed colordepths and strange visuals. Maybe you should 
try
changing the colordepth of windows to any of 8bit, 16 or 24bit

You can start XWin_GL with the environment variable GLWIN_DUMP_PFD=1. this will 
print 
some extra information on visual creation.

GLWIN_DUMP_PFD=1 /usr/X11R6/bin/XWin_GL -multiwindow -clipboard 
-silent-dup-error

Maybe this will a clue what's failing.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Unable to launch openGL application on cygwin/X server from Sun S olaris OS

2004-11-18 Thread Gautier, Valentin
I intend to use an openGL demo on my cygwin/X server XWin or XWin_GL from a
Solaris box.


I can't make it work at all. When I launch ogl_install_check, I get:

bash-2.03$ /usr/openwin/demo/GL/ogl_install_check 
/usr/openwin/demo/GL/sparcv9/ogl_install_check: glXChooseVisual Error: Can't
find visual.


Why does it that it doesn't work when it works perfectly with a linux box ?

I know that I can make it work replacing the OpenGL libs by Mesa libs, but
the application I intend to use doesn't use mesa (SDRC Ideas with OGL).

Is there any one who encounters the same trouble and is there any solution
to fix it?

Thanks a lot.



My XWin.log file is:

$ cat /tmp/XWin.log 
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.1.0-5

Contact: [EMAIL PROTECTED]

XWin was started with the following command line:

/usr/X11R6/bin/XWin_GL -multiwindow -clipboard 
-silent-dup-error 

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1280 h 1024
winInitializeDefaultScreens - Returning
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be
created.
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
(==) FontPath set to
"/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TT
F/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/
lib/
X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per
pixel
winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 1024 depth:
32
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp
32
glWinInitVisuals:1476: glWinInitVisuals
glWinInitVisualConfigs:1383: glWinInitVisualConfigs
glWinSetVisualConfigs:1461: 
glWinSetVisualConfigs
init_visuals:906: init_visuals
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
winInitMultiWindowWM - Calling pthread_mutex_lock ()
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of
shar
ed memory support in the kernel
glWinScreenProbe:1270: glWinScreenProbe
fixup_visuals:1160: fixup_visuals
init_screen_visuals:1193: init_screen_visuals
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "040C" (040c) 
(--) Using preset keyboard for "French (Standard)" (40c), type "4"
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing
from li
st!
glWinRealizeWindow:709: glWinRealizeWindow
winInitMultiWindowWM - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened
the di
splay.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the
disp
lay.
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the
display.
glWinRealizeWindow:709: glWinRealizeWindow
glWinCopyWindow:772: glWinCopyWindow - passing to hw layer
glWinCopyWindow:772: glWinCopyWindow - passing to hw layer
glWinRealizeWindow:709: glWinRealizeWindow
glWinRealizeWindow:709: glWinRealizeWindow
glWinCreateContext:677: glWinCreateContext
glWinCreateContext:696: glWinCreateContext done
glWinRealizeWindow:709: glWinRealizeWindow
glWinCopyWindow:772: glWinCopyWindow - passing to hw layer
glWinCreateBuffer:1357: glWinCreateBuffer
attach:374: attach (ctx 0x0)
attach:393: attached
glWinDestroyDrawablePrivate:1338: glWinDestroyDrawablePrivate
glWinUnrealizeWindow:788: glWinUnrealizeWindow
glWinDestroyContext:411: glWinDestroyContext (ctx 0x1)
unattach:292: unattach (ctx 0x1)