OGRE Applications on VirtualBox Ubuntu? (Important)

Problems building or running the engine, queries about how to use features etc.
Post Reply
Badspot
Gnoblar
Posts: 13
Joined: Sat Sep 24, 2011 3:13 pm

OGRE Applications on VirtualBox Ubuntu? (Important)

Post by Badspot »

So, first off. I'm running Linux, Ubuntu 14.04.2 64-bit on Windows 7 64-bit with VirtualBox 5.0.0. After a lot of struggle I finally got OGRE compiled and it also finally compiles applications successfully now. Well, I set up OGRE on CodeBlocks, followed all the instructions and downloaded the CMake Tutorial Framework for OGRE. It compiled fine, no errors, etc. But now following happens:

Once I start the OGRE Application, the render settings window comes up. Of course, on Ubuntu I can only select OpenGL. Fine. So, after pressing "Accept" I expect the program to be starting. But what happens? The program opens, but then immediately closes. I checked if there was something wrong with the code, but no, the code was all fine. Looking into the Ogre.log file also gives no help except that the program immediately closes when the GL renderer starts. I've discovered (on VirtualBox Support) that OpenGL does work on my system as glxinfo showed. However, now I'm asking myself whether this is an OGRE problem or it's really something to do with the VirtualBox. So, it would be really nice if someone has some experience on running OGRE on virtual machines, in my case Ubuntu.

Here's the Ogre.log:

Code: Select all

18:03:16: Creating resource group General
18:03:16: Creating resource group Internal
18:03:16: Creating resource group Autodetect
18:03:16: SceneManagerFactory for type 'DefaultSceneManager' registered.
18:03:16: Registering ResourceManager for type Material
18:03:16: Registering ResourceManager for type Mesh
18:03:16: Registering ResourceManager for type Skeleton
18:03:16: MovableObjectFactory for type 'ParticleSystem' registered.
18:03:16: ArchiveFactory for archive type FileSystem registered.
18:03:16: ArchiveFactory for archive type Zip registered.
18:03:16: ArchiveFactory for archive type EmbeddedZip registered.
18:03:16: DDS codec registering
18:03:16: FreeImage version: 3.15.4
18:03:16: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
18:03:16: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti
18:03:16: Registering ResourceManager for type HighLevelGpuProgram
18:03:16: Registering ResourceManager for type Compositor
18:03:16: MovableObjectFactory for type 'Entity' registered.
18:03:16: MovableObjectFactory for type 'Light' registered.
18:03:16: MovableObjectFactory for type 'BillboardSet' registered.
18:03:16: MovableObjectFactory for type 'ManualObject' registered.
18:03:16: MovableObjectFactory for type 'BillboardChain' registered.
18:03:16: MovableObjectFactory for type 'RibbonTrail' registered.
18:03:16: Loading library /usr/local/lib/OGRE/RenderSystem_GL
18:03:16: Installing plugin: GL RenderSystem
18:03:16: OpenGL Rendering Subsystem created.
18:03:16: Plugin successfully installed
18:03:16: Loading library /usr/local/lib/OGRE/Plugin_ParticleFX
18:03:16: Installing plugin: ParticleFX
18:03:16: Particle Emitter Type 'Point' registered
18:03:16: Particle Emitter Type 'Box' registered
18:03:16: Particle Emitter Type 'Ellipsoid' registered
18:03:16: Particle Emitter Type 'Cylinder' registered
18:03:16: Particle Emitter Type 'Ring' registered
18:03:16: Particle Emitter Type 'HollowEllipsoid' registered
18:03:16: Particle Affector Type 'LinearForce' registered
18:03:16: Particle Affector Type 'ColourFader' registered
18:03:16: Particle Affector Type 'ColourFader2' registered
18:03:16: Particle Affector Type 'ColourImage' registered
18:03:16: Particle Affector Type 'ColourInterpolator' registered
18:03:16: Particle Affector Type 'Scaler' registered
18:03:16: Particle Affector Type 'Rotator' registered
18:03:16: Particle Affector Type 'DirectionRandomiser' registered
18:03:16: Particle Affector Type 'DeflectorPlane' registered
18:03:16: Plugin successfully installed
18:03:16: Loading library /usr/local/lib/OGRE/Plugin_BSPSceneManager
18:03:16: Installing plugin: BSP Scene Manager
18:03:16: Plugin successfully installed
18:03:16: Loading library /usr/local/lib/OGRE/Plugin_CgProgramManager
18:03:16: Installing plugin: Cg Program Manager
18:03:16: Plugin successfully installed
18:03:16: Loading library /usr/local/lib/OGRE/Plugin_PCZSceneManager
18:03:16: Installing plugin: Portal Connected Zone Scene Manager
18:03:16: PCZone Factory Type 'ZoneType_Default' registered
18:03:16: Plugin successfully installed
18:03:16: Loading library /usr/local/lib/OGRE/Plugin_OctreeZone
18:03:16: Installing plugin: Octree Zone Factory
18:03:16: Plugin successfully installed
18:03:16: Loading library /usr/local/lib/OGRE/Plugin_OctreeSceneManager
18:03:16: Installing plugin: Octree Scene Manager
18:03:16: Plugin successfully installed
18:03:16: *-*-* OGRE Initialising
18:03:16: *-*-* Version 1.9.0 (Ghadamon)
18:03:16: Creating resource group Essential
18:03:16: Added resource location '../media/packs/SdkTrays.zip' of type 'Zip' to resource group 'Essential'
18:03:16: Added resource location '../media' of type 'FileSystem' to resource group 'General'
18:03:16: Added resource location '../media/materials/scripts' of type 'FileSystem' to resource group 'General'
18:03:16: Added resource location '../media/materials/textures' of type 'FileSystem' to resource group 'General'
18:03:16: Added resource location '../media/models' of type 'FileSystem' to resource group 'General'
18:04:23: CPU Identifier & Features
18:04:23: -------------------------
18:04:23:  *   CPU ID: GenuineIntel: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
18:04:23:  *      SSE: yes
18:04:23:  *     SSE2: yes
18:04:23:  *     SSE3: yes
18:04:23:  *      MMX: yes
18:04:23:  *   MMXEXT: yes
18:04:23:  *    3DNOW: no
18:04:23:  * 3DNOWEXT: no
18:04:23:  *     CMOV: yes
18:04:23:  *      TSC: yes
18:04:23:  *      FPU: yes
18:04:23:  *      PRO: yes
18:04:23:  *       HT: no
18:04:23: -------------------------
18:04:23: ******************************
*** Starting GLX Subsystem ***
******************************
18:04:23: Registering ResourceManager for type Texture
18:04:23: GLRenderSystem::_createRenderWindow "TutorialApplication Render Window", 1920x968 windowed  miscParams: FSAA=1 displayFrequency=60 Hz gamma= vsync= 
18:04:23: GLXWindow::create used FBConfigID = 33
18:04:23: GL_VERSION = 2.1 Chromium 1.9
18:04:23: GL_VENDOR = Humper
18:04:23: GL_RENDERER = Chromium
18:04:23: GL_EXTENSIONS = GL_EXT_texture_compression_s3tc GL_EXT_draw_range_elements GL_EXT_framebuffer_object GL_EXT_compiled_vertex_array GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_EXT_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_EXT_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_IBM_texture_mirrored_repeat GL_ATI_texture_mirror_once GL_ARB_texture_non_power_of_two GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_func_separate GL_EXT_blend_subtract GL_EXT_texture_env_add GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_texture3D GL_IBM_rasterpos_clip GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_rectangle GL_ARB_texture_rectangle GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_SGIS_generate_mipmap GL_ARB_shading_language_100 GL_ARB_shader_objects GL_ARB_vertex_shader GL_ARB_fragment_shader GL_EXT_texture_sRGB GL_EXT_framebuffer_blit GL_EXT_blend_equation_separate GL_EXT_stencil_two_side GL_CR_state_parameter GL_CR_cursor_position GL_CR_bounding_box GL_CR_print_string GL_CR_tilesort_info GL_CR_synchronization GL_CR_head_spu_name GL_CR_performance_info GL_CR_window_size GL_CR_tile_info GL_CR_saveframe GL_CR_readback_barrier_size GL_CR_server_id_sharing GL_CR_server_matrix  GL_EXT_stencil_two_side
18:04:23: Supported GLX extensions: GLX_ARB_multisample GLX_EXT_texture_from_pixmap GLX_SGIX_fbconfig GLX_ARB_get_proc_address
18:04:23: ***************************
18:04:23: *** GL Renderer Started ***
18:04:23: ***************************
Does anyone have experience with this? I really believe that it's something to do with VirtualBox. Did someone successfully run OGRE applications on Virtual Box 5.0.0 with Ubuntu 14.04.2? This is important, because well, everything works now but this one problem is now stopping me from testing and running my applications.
scrawl
OGRE Expert User
OGRE Expert User
Posts: 1119
Joined: Sat Jan 01, 2011 7:57 pm
x 216

Re: OGRE Applications on VirtualBox Ubuntu? (Important)

Post by scrawl »

Can you get a stack trace?

If I recall correctly, there was a bug in Ogre 1.9 release that crashed the GL renderer when run on older GL versions (in particular happens with Virtualbox). This was fixed in pull request https://bitbucket.org/sinbad/ogre/pull- ... roved/diff. Try using the latest v1-9 branch from the repository (not 1.9.0 release) and see if it's fixed.
User avatar
TheOnlyJoey
Halfling
Posts: 53
Joined: Sun Apr 10, 2011 12:05 pm
Location: The Netherlands
x 6
Contact:

Re: OGRE Applications on VirtualBox Ubuntu? (Important)

Post by TheOnlyJoey »

I am sorry if I am stating the obvious but you did install the VirtualBox Guest Tools on your Ubuntu guest I hope?

I am successfully running Ogre 1.8 on a Virtualbox VM (linux host/linux guest) and it is essential the guest tools are installed.
Post Reply