Amazon AWS EC2, Ubuntu, Wine and a 3D App on remote desktop

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
cgltower
Level 1
Level 1
Posts: 6
Joined: Wed Jul 13, 2011 11:02 pm

Amazon AWS EC2, Ubuntu, Wine and a 3D App on remote desktop

Post by cgltower »

I know what you're thinking - why?!?

Im not going to go into detail, but in short why not! :D

I have an industry app which I wont name yet, but is a relatively standard CAD-like 3D windows application. Im using x2go based on Nomachine/NX libraries for remote X desktop to Ubuntu. My 3D application tests for opengl or directx when it starts. At the moment when run with wine the application fails both and exits. Here is the output:

Code: Select all

(program dir)$: wine program_name.exe
err:winediag:X11DRV_WineGL_InitOpenglInfo The Mesa OpenGL driver is using software rendering, most likely your OpenGL drivers haven't been installed correctlyerr:winediag:X11DRV_WineGL_InitOpenglInfo The Mesa OpenGL driver is using software rendering, most likely your OpenGL drivers haven't been installed correctly
fixme:d3d_caps:wined3d_guess_card_vendor Received unrecognized GL_VENDOR "XXXXXX". Returning HW_VENDOR_NVIDIA.
fixme:d3d_caps:select_card_nvidia_mesa Card selection not handled for Mesa Nouveau driver
fixme:win:EnumDisplayDevicesW ((null),0,0x32dd14,0x00000000), stub!
err:d3d:WineD3D_ChoosePixelFormat Can't find a suitable iPixelFormat
fixme:d3d:swapchain_init Add OpenGL context recreation support to context_validate_onscreen_formats
fixme:d3d9:Direct3DShaderValidatorCreate9 stub
err:d3d_surface:surface_load_ds_location >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glGenRenderbuffersEXT @ surface.c / 4039
Could someone point me the way to go to continue solving this? thank you!

Details
  • OS: Ubuntu 10.10
    wine ver: 1.2.2
    winetricks: visual C++ 2005 package installed for mfc80.dll
    glxinfo: OpenGL version 2.1 Mesa 7.9-devel
Amazon details
  • AMI: ami-66ff8134
    type: micro (613MB RAM, up to 2 ECUs (cores))
[/list]
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Amazon AWS EC2, Ubuntu, Wine and a 3D App on remote desk

Post by vitamin »

cgltower wrote:I have an industry app which I wont name yet, but is a relatively standard CAD-like 3D windows application. Im using x2go based on Nomachine/NX libraries for remote X desktop to Ubuntu.
This won't work. 3D acceleration does not work on "remote desktop".
cgltower
Level 1
Level 1
Posts: 6
Joined: Wed Jul 13, 2011 11:02 pm

Post by cgltower »

Thanks for reply vitamin.

I have glxgears running over the remote desktop, isnt that 3D accelerated?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

cgltower wrote:I have glxgears running over the remote desktop, isnt that 3D accelerated?
glxgears can perfectly run without any hardware 3D acceleration. It's not using anything but 2-3 basic 3D operations, which can be easily emulated by CPU.

On another hand, all games that require real GPU can't work with CPU emulated 3D.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

Yeah, the lack of 3d hardware on Amazon's cloud is probably going to be the killer.
cgltower
Level 1
Level 1
Posts: 6
Joined: Wed Jul 13, 2011 11:02 pm

Post by cgltower »

vitamin - true. glxgears does not use any extensions as far as im aware, just the core LIBGL library on the OS. They are basic operations, but still 3D functions nonetheless? And therefore some functions that wine's DLLs map to?

DanKegel - definitely for performance! Hopefully something later down the track will be able available. Im happy to have it completely software rendered, im trying to prove a concept, dont care if its slow.

But, back to my problem - Ive managed to remove the bottom GL_INVALID_OPERATION error by installing the package libgl1-mesa-swx11 which in Ubuntu auto removes libgl1-mesa-glx. Theoretically all previously direct calls to graphics are now indirect to software. A good result is the sourceforge program 'glmark' runs quite well considering.

For wine to run my original program it leaves

Code: Select all

err:winediag:X11DRV_WineGL_InitOpenglInfo The Mesa OpenGL driver is using software rendering, most likely your OpenGL drivers haven't been installed correctlyerr:winediag:X11DRV_WineGL_InitOpenglInfo The Mesa OpenGL driver is using software rendering, most likely your OpenGL drivers haven't been installed correctly 
and

Code: Select all

err:d3d:WineD3D_ChoosePixelFormat Can't find a suitable iPixelFormat 
Can anyone help with these specific errors?
Locked