Compiling ARGoS With Qt Support

Requests regarding how to set up experiments in ARGoS.
mallwright
Posts: 35
Joined: Tue Apr 17, 2012 11:15 am

Compiling ARGoS With Qt Support

Postby mallwright » Thu May 10, 2012 10:30 am

I have compiled ARGoS with the QtOpenGL visualisation plugin. This required having the Qt4 (>4.5) and FreeGLUT packages installed on my system (both the libraries & development files)

During the compilation, everything seemed fine, with the exception that I didn't have SDL installed so I was given the message: SDL not found - Joystick support will be unavailable (I don't think this is a problem...). Furthermore I have the libargos2_simulator_qtopengl_renderer.so file compiled in my output directory from the build.

However, when I try run ARGoS with this visualisation plugin using the command: "./argos -c xml/diffusion_10.xml" the user interface flashes (opens / then instantly closes) and I get this response in the console.

Code: Select all

[INFO] Not using threads [INFO] Using random seed = 124 [INFO] Using simulation clock tick = 0.1 [INFO] Total experiment length in clock ticks = unlimited [INFO] Embodied entity space hash: 100000 buckets, cell size = <0.2,0.2,0.3>. [INFO] LED entity space hash: 100000 buckets, cell size = <0.2,0.2,0.3>. [INFO] RAB equipped entity space hash: 100000 buckets, cell size = <1,1,1>. [WARNING] No loop functions specified in the <loop_functions> section of the configuration file. [WARNING] Using standard (empty) loop functions. [WARNING] No floor entity specified, the floor will be blank Vertex shader for simpleShaderProg (MainVertexShader & PositionOnlyVertexShader) failed to compile Fragment shader for simpleShaderProg (MainFragmentShader & ShockingPinkSrcFragmentShader) failed to compile QGLShaderProgram: shader programs are not supported Segmentation fault
It seems that this component of OpenGL is unavailable. Browsing my package manager, I found one development package which could be what I need:

Package: libglm-dev (0.9.2.0) - C++ Library for OpenGL GLSL type-based mathematics
Abstract: OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) specification.

Is this package required for building ARGoS with QtOpenGL support?

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Compiling ARGoS With Qt Support

Postby pincy » Thu May 10, 2012 1:13 pm

This is a new problem to me.

Could you please be a little more precise on your system configuration? In particular, I'd need:

- Graphics card model
- Your Linux distribution and version
- Version of Qt installed

Thanks!
I made ARGoS.

mallwright
Posts: 35
Joined: Tue Apr 17, 2012 11:15 am

Re: Compiling ARGoS With Qt Support

Postby mallwright » Thu May 10, 2012 10:41 pm

Hi Pincy,

I'm running Ubuntu 11.10 (32 bit) inside an Oracle VirtualBox instance.
  • Linux Kernel version is 3.0.0-19-generic
  • Qt Version is = 4.7.4 (4:4.7.4-0ubuntu8.1)
This is the information on the graphics card outputted from the lshw command. The full output of the lshw is attached as a file.

Code: Select all

*-display UNCLAIMED description: VGA compatible controller product: VirtualBox Graphics Adapter vendor: InnoTek Systemberatung GmbH physical id: 2 bus info: pci@0000:00:02.0 version: 00 width: 32 bits clock: 33MHz capabilities: vga_controller bus_master configuration: latency=64 resources: memory:e0000000-e3ffffff
Attachments
lshw-vbox-output.txt
(8.87 KiB) Downloaded 3601 times

mallwright
Posts: 35
Joined: Tue Apr 17, 2012 11:15 am

Re: Compiling ARGoS With Qt Support

Postby mallwright » Fri May 11, 2012 9:09 am

Also, this is the configuration of the VirtualBox display on the host side.
vbox-display-config.png
vbox-display-config.png (48.94 KiB) Viewed 42117 times
The VirtualBox additions have been installed, i.e. I can resize the X server display area by resizing the window and the Gnome 3 shell loads in the '3D' Accelerated mode. Most of the OpenGL screen savers also appear to work. Although some fail with the following message:
gl-error-vbox.png
gl-error-vbox.png (21.71 KiB) Viewed 42117 times
Out of the screen savers that work and don't work, it does seem to me that the ones that are working, aren't doing any complex shading / lighting etc, and ones that are failing: GLPlanet, GLBlur are using these features of OpenGL. Although that is pure speculation...

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Compiling ARGoS With Qt Support

Postby pincy » Mon May 21, 2012 8:05 pm

I routinely use several Virtual Box installations to make and test ARGoS packages, and I have never encountered this problem. Anyway, the fact that some screen savers fail is pretty interesting, as it should not happen. What is the output of the command 'glxinfo', and of the command 'glxgears' ?

If you have errors in those commands, it is usually the sign of a scrambled installation of X and/or OpenGL-related libraries.
I made ARGoS.

mallwright
Posts: 35
Joined: Tue Apr 17, 2012 11:15 am

Re: Compiling ARGoS With Qt Support

Postby mallwright » Fri May 25, 2012 1:59 pm

Output of glxinfo

Code: Select all

developer@developer-vbox:/usr$ glxinfo name of display: :0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: Chromium server glx version string: 1.3 Chromium server glx extensions: GLX_ARB_multisample, GLX_EXT_texture_from_pixmap, GLX_SGIX_fbconfig, GLX_ARB_get_proc_address client glx vendor string: Chromium client glx version string: 1.3 Chromium client glx extensions: GLX_ARB_multisample, GLX_EXT_texture_from_pixmap, GLX_SGIX_fbconfig, GLX_ARB_get_proc_address GLX version: 1.3 GLX extensions: GLX_ARB_multisample, GLX_EXT_texture_from_pixmap, GLX_SGIX_fbconfig, GLX_ARB_get_proc_address OpenGL vendor string: Humper OpenGL renderer string: Chromium OpenGL version string: 2.1 Chromium 1.9 OpenGL shading language version string: 1.30 OpenGL extensions: 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_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_texgen_reflection, GL_NV_texture_rectangle, GL_EXT_texture_rectangle, GL_ARB_texture_rectangle, GL_NV_vertex_program, GL_NV_vertex_program1_1, GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp, 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 64 GLX Visuals visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat ---------------------------------------------------------------------------- 0x021 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0ca 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0cb 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0cc 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0cd 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0ce 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0cf 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0d0 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0d1 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0d2 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0d3 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0d4 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0d5 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0d6 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0d7 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0d8 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0d9 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0da 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0db 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0dc 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0dd 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0de 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0df 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0e0 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0e1 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0e2 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0e3 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0e4 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0e5 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0e6 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0e7 24 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0e8 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0e9 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0ea 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0eb 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0ec 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0ed 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0ee 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0ef 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0f0 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0f1 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0f2 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0f3 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0f4 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0f5 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0f6 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0f7 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0f8 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0f9 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0fa 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0fb 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0fc 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0fd 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0fe 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x0ff 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x100 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x101 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x102 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x103 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x104 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x105 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x106 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x107 24 dc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 0x049 32 tc 0 32 0 r y y 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None 64 GLXFBConfigs: visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat ---------------------------------------------------------------------------- 0x021 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0ca 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0cb 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0cc 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0cd 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0ce 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0cf 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0d0 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0d1 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0d2 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0d3 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0d4 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0d5 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0d6 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0d7 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0d8 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0d9 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0da 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0db 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0dc 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0dd 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0de 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0df 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0e0 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0e1 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0e2 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0e3 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0e4 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0e5 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0e6 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0e7 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0e8 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0e9 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0ea 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0eb 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0ec 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0ed 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0ee 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0ef 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0f0 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0f1 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0f2 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0f3 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0f4 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0f5 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0f6 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0f7 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0f8 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0f9 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0fa 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0fb 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0fc 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0fd 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0fe 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x0ff 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x100 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x101 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x102 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x103 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x104 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x105 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x106 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x107 24 tc 0 24 0 r y . 8 8 8 0 . . 0 16 8 0 0 0 0 1 1 None 0x049 32 tc 0 32 0 r y . 8 8 8 8 . . 0 16 8 0 0 0 0 1 1 None developer@developer-vbox:/usr$
Output of glxgears (is it just me or are those gears rendering in an odd colour)?
vm.png
vm.png (357.51 KiB) Viewed 42103 times

mallwright
Posts: 35
Joined: Tue Apr 17, 2012 11:15 am

Re: Compiling ARGoS With Qt Support

Postby mallwright » Fri May 25, 2012 2:05 pm

Hey Pinci,

While this is a little strange, I wouldn't spend too much time on this... after all, Oracle releases a new version of it's virtualisation software every fortnight. It is possible that it is just a small bug in the way the VM handles 3D graphics.

Perhaps someone should just send an article to the developers over at Oracle, explaining what the meaning of a stable release is...

EDIT: I also just ran glxgears on my desktop. Those colours in VM are definitely looking a bit weird...

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Compiling ARGoS With Qt Support

Postby pincy » Wed May 30, 2012 4:54 pm

The colors are indeed weird. Maybe something is wrong with the driver?
I made ARGoS.

ahue
Posts: 1
Joined: Tue May 22, 2012 12:27 pm

Re: Compiling ARGoS With Qt Support

Postby ahue » Wed Jun 06, 2012 10:36 am

Hi there,

i get exactly the same errors.

I installed Argos 20120521-1cp and the "ARGoS Extras for INFO-H-414 Swarm Intelligence Course" 20120521-1cp in a Ubuntu (10.04) Guest on a Windows 7 x64 Host using VirtualBox 4.1.16_78094. The guest extension is installed.

When I enable 3D-acceleration in the VirtualBox settings for the machine an try starting up Argos, the behavior is the same as described by mallwright:

Code: Select all

andreas@andreas-laptop:~/Dropbox/Studium/2012 SS/Swarm Intelligence/Project$ launch_argos -nc constructionsingle.xml [INFO] Not using threads [INFO] Using random seed = 55878 [INFO] Using simulation clock tick = 0.1 [INFO] Total experiment length in clock ticks = unlimited [INFO] Registering QTOpenGL user function <CEPuckAsebaQTOpenGLUserFunctions, epuck_aseba_qtopengl_user_functions> [INFO] Registering loop function <CEPuckAsebaLoopFunction, epuck_aseba_loop_functions> [INFO] Embodied entity space hash: 100000 buckets, cell size = <0.2,0.2,0.3>. [INFO] LED entity space hash: 100000 buckets, cell size = <0.2,0.2,0.3>. [INFO] RAB equipped entity space hash: 100000 buckets, cell size = <1,1,1>. [INFO] Connection port: 33333 Vertex shader for simpleShaderProg (MainVertexShader & PositionOnlyVertexShader) failed to compile Fragment shader for simpleShaderProg (MainFragmentShader & ShockingPinkSrcFragmentShader) failed to compile QGLShaderProgram: shader programs are not supported Segmentation fault
When I disable 3D-acceleration, Argos starts up, and gives this output on the terminal:

Code: Select all

andreas@andreas-laptop:~/Dropbox/Studium/2012 SS/Swarm Intelligence/Project$ launch_argos -nc constructionsingle.xml [INFO] Not using threads [INFO] Using random seed = 55878 [INFO] Using simulation clock tick = 0.1 [INFO] Total experiment length in clock ticks = unlimited [INFO] Registering QTOpenGL user function <CEPuckAsebaQTOpenGLUserFunctions, epuck_aseba_qtopengl_user_functions> [INFO] Registering loop function <CEPuckAsebaLoopFunction, epuck_aseba_loop_functions> [INFO] Embodied entity space hash: 100000 buckets, cell size = <0.2,0.2,0.3>. [INFO] LED entity space hash: 100000 buckets, cell size = <0.2,0.2,0.3>. [INFO] RAB equipped entity space hash: 100000 buckets, cell size = <1,1,1>. [INFO] Connection port: 33333 OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.
Argos then runs, but isn't smooth at all.

Any suggestions? For now I'll use it without the acceleration, but it really sucks using it then...

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Compiling ARGoS With Qt Support

Postby pincy » Thu Jun 07, 2012 2:28 pm

The error you guys mention is a bug in VirtualBox:

https://forums.virtualbox.org/viewtopic.php?f=3&t=42773
https://www.virtualbox.org/ticket/9198

In ARGoS, I use a QPainter to allow for overlay graphics to be added to the OpenGL widget. Qt internally implements this as a GL shader, and it seems that a bug prevents this implementation from working.

I can't offer a real solution because this bug is not due to ARGoS itself. The best workaround I can think of is to comment out the QPainter-related lines from the Qt-OpenGL visualization. More specifically, you could try commenting out lines 35 and 240-246 in file argos2/simulator/visualizations/qt-opengl/qtopengl_widget.cpp.

I will study the matter better and report.
I made ARGoS.


Return to “How to... ?”