Results 1 to 7 of 7

Thread: ClanLib 2.1.1 - Alpha Test Release (Linux)

  1. #1
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default ClanLib 2.1.1 - Alpha Test Release (Linux)

    Please can ClanLib Linux users try:

    *REMOVED - See ClanLib 2.1.1 release http://www.rtsoft.com/forums/showthread.php?t=3021

    It is a test release of the next ClanLib release. Due to the nature of the change, I would like to ensure that it works, on all computers.

    (From upgrade.txt)

    2.1.1: Not released yet
    - Display: CL_DisplayWindowMode is now considered obsolute.
    On linux, this function does not do anything.
    It used to use the libxxf86vm library, but this caused various problems:
    it would only report the current mode on most system, and xf86vidmode is
    considered sort of deprecated by upstream xorg.
    So for now, the ClanLib developers have removed it, until a solution is found.
    (Note, since clanlib v2.x no longer changes the video resolution,
    CL_DisplayWindowMode has no use ).

    - GL and GL1: Linux does not link with libxi
    There was no requirement to link with this library

    - GL and GL1: Linux does not link with libgl
    Instead internally, ClanLib uses dlopen(). Your application now can use
    the libgl.so local on the machine it runs on (so it uses the configured
    driver on the machine, not the driver that the application was compiled with)

    - General: The Microsoft windows themes have been removed from the Linux package.
    Instead, a free GUI theme (GUIThemeBasic) is included for use with the ClanLib
    examples (or your application).

    - Core: CL_Mat2 had an incorrect typedef -
    "CL_Mat2<float> CL_Mat2d;" was changed to "CL_Mat2<double> CL_Mat2d;"
    Last edited by rombust; 12-10-2009 at 11:55 AM. Reason: ClanLib 2.1.1 released

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    (Updated the package to include the new example and the clanGL1/clanDisplay "texture units < 5" fix)

  3. #3

    Unhappy

    I ran into the same Basic2d build issue reported prior. It makes just fine with GL, but cannot run (my experimental RadeonHD 3870 Mesa driver only supports OpenGL 1.4.7).

    I downloaded and built this 2.1.1 preview, but alas, same issue when attempting to build using GL1:
    Code:
    $ env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig make
    g++ `pkg-config --cflags clanApp-2.1 clanDisplay-2.1 clanCore-2.1 clanGL1-2.1` -pthread -c basic2d.cpp -o basic2d.o
    g++ `pkg-config --cflags clanApp-2.1 clanDisplay-2.1 clanCore-2.1 clanGL1-2.1` -pthread basic2d.o -o basic2d `pkg-config --libs clanApp-2.1 clanDisplay-2.1 clanCore-2.1 clanGL1-2.1` 
    basic2d.o: In function `Program::main(std::vector<CL_StringContainer<char, CL_StringReference<char, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<CL_StringContainer<char, CL_StringReference<char, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)':
    basic2d.cpp:(.text._ZN7Program4mainERKSt6vectorI18CL_StringContainerIc18CL_StringReferenceIcSsESsESaIS4_EE[Program::main(std::vector<CL_StringContainer<char, CL_StringReference<char, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<CL_StringContainer<char, CL_StringReference<char, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)]+0x2f): undefined reference to `CL_SetupGL::CL_SetupGL()'
    basic2d.cpp:(.text._ZN7Program4mainERKSt6vectorI18CL_StringContainerIc18CL_StringReferenceIcSsESsESaIS4_EE[Program::main(std::vector<CL_StringContainer<char, CL_StringReference<char, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<CL_StringContainer<char, CL_StringReference<char, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)]+0x54): undefined reference to `CL_SetupGL::~CL_SetupGL()'
    basic2d.cpp:(.text._ZN7Program4mainERKSt6vectorI18CL_StringContainerIc18CL_StringReferenceIcSsESsESaIS4_EE[Program::main(std::vector<CL_StringContainer<char, CL_StringReference<char, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<CL_StringContainer<char, CL_StringReference<char, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)]+0x67): undefined reference to `CL_SetupGL::~CL_SetupGL()'
    $ cat /etc/redhat-release
    Fedora release 12 (Constantine)

    $ uname -a
    Linux SuperMICRO-8 2.6.31.5-127.fc12.x86_64 #1 SMP Sat Nov 7 21:11:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

  4. #4

    Default

    I am an idiot ... I neglected to reflect the appropriate #define within its source file, too. That's what I get for rushing.

    Compiles and runs fine, thanks!

  5. #5

    Default

    The SQL test fails, because it has a hard-coded pathname with a '\' in it. Of course, cp Database/clanlib.db Database\\clanlib.db

    Perhaps that can be fixed for non-Windows platforms?

    All other tests ran fantastic using a Lenovo Thinkpad T400 with Intel Integrated Graphics Chipset GM45 using 32-bit Fedora 12, except the very last one:
    Code:
    $ ./vertexbuffer 
    Exception caught: Unable to compile vertex shader object: Error: Preprocessor error
    Error: failed to preprocess the source.
    
    #0 CL_System::capture_stack_trace(int, int, void**, unsigned int*) (/usr/local/lib/libclan21Core-2.1.so.1)
    #1 CL_Exception::CL_Exception(CL_StringContainer<char, CL_StringReference<char, std::string>, std::string> const&) (/usr/local/lib/libclan21Core-2.1.so.1)
    #2  (./vertexbuffer)
    #3  (./vertexbuffer)
    #4  (./vertexbuffer)
    #5 main (/usr/local/lib/libclan21App-2.1.so.1)
    #6 __libc_start_main (/lib/libc.so.6)
    #7  (./vertexbuffer)
    ... and if it helps any:
    Code:
    $ glxinfo 
    name of display: :0.0
    display: :0  screen: 0
    direct rendering: Yes
    server glx vendor string: SGI
    server glx version string: 1.4
    server glx extensions:
        GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
        GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
        GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control, 
        GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
        GLX_SGIX_visual_select_group
    client glx vendor string: SGI
    client glx version string: 1.4
    client glx extensions:
        GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
        GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, 
        GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control, 
        GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control, 
        GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, 
        GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
        GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
    GLX version: 1.4
    GLX extensions:
        GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
        GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
        GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_make_current_read, 
        GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
        GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, 
        GLX_EXT_texture_from_pixmap
    OpenGL vendor string: Tungsten Graphics, Inc
    OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset GEM 20090712 2009Q2 RC3 
    OpenGL version string: 2.1 Mesa 7.7-devel
    OpenGL shading language version string: 1.20
    OpenGL extensions:
        GL_ARB_copy_buffer, GL_ARB_depth_texture, GL_ARB_depth_clamp, 
        GL_ARB_draw_buffers, GL_ARB_draw_elements_base_vertex, 
        GL_ARB_fragment_program, GL_ARB_fragment_program_shadow, 
        GL_ARB_fragment_shader, GL_ARB_framebuffer_object, 
        GL_ARB_half_float_pixel, GL_ARB_map_buffer_range, GL_ARB_multisample, 
        GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_pixel_buffer_object, 
        GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_provoking_vertex, 
        GL_ARB_seamless_cube_map, GL_ARB_shader_objects, 
        GL_ARB_shading_language_100, GL_ARB_shading_language_120, GL_ARB_shadow, 
        GL_ARB_sync, 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_ARB_texture_env_crossbar, 
        GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat, 
        GL_ARB_texture_non_power_of_two, GL_ARB_texture_rectangle, 
        GL_ARB_transpose_matrix, GL_ARB_vertex_array_bgra, 
        GL_ARB_vertex_array_object, GL_ARB_vertex_buffer_object, 
        GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos, 
        GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, 
        GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate, 
        GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract, 
        GL_EXT_cull_vertex, GL_EXT_compiled_vertex_array, GL_EXT_copy_texture, 
        GL_EXT_draw_range_elements, GL_EXT_framebuffer_object, 
        GL_EXT_framebuffer_blit, GL_EXT_fog_coord, GL_EXT_gpu_program_parameters, 
        GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil, 
        GL_EXT_packed_pixels, GL_EXT_pixel_buffer_object, GL_EXT_point_parameters, 
        GL_EXT_polygon_offset, GL_EXT_provoking_vertex, GL_EXT_rescale_normal, 
        GL_EXT_secondary_color, GL_EXT_separate_specular_color, 
        GL_EXT_shadow_funcs, GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, 
        GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D, 
        GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add, 
        GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, 
        GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias, 
        GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_texture_sRGB, 
        GL_EXT_texture_swizzle, GL_EXT_vertex_array, GL_EXT_vertex_array_bgra, 
        GL_3DFX_texture_compression_FXT1, GL_APPLE_client_storage, 
        GL_APPLE_packed_pixels, GL_APPLE_vertex_array_object, 
        GL_ATI_blend_equation_separate, GL_ATI_envmap_bumpmap, 
        GL_ATI_texture_env_combine3, GL_ATI_separate_stencil, 
        GL_IBM_multimode_draw_arrays, GL_IBM_rasterpos_clip, 
        GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate, 
        GL_MESA_pack_invert, GL_MESA_texture_signed_rgba, GL_MESA_ycbcr_texture, 
        GL_MESA_window_pos, GL_NV_blend_square, GL_NV_depth_clamp, 
        GL_NV_light_max_exponent, GL_NV_point_sprite, GL_NV_texture_env_combine4, 
        GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program, 
        GL_NV_vertex_program1_1, GL_OES_read_format, GL_SGIS_generate_mipmap, 
        GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp, 
        GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays

  6. #6
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Excellent

    The bug in SQL example is easy to fix.

    I'm not sure about the vertexbuffer example though

    Unless it does not like comments in the shader.

    Can you try changing (in Examples/VertexBuffer/Sources/shader.cpp :
    Shader::vertex[] and Shader::fragment[]

    "#version 120 // GLSL V1.20\n"
    to
    "#version 120\n"

    I can't see anything wrong with the vertex shader.

  7. #7

    Default

    There are two lines (vertex[] and fragment[]) with a comment tag embedded -- only after removing both comments did it work. Who would've thunk?

    Nice demo, ran ~19fps with buffer, and dropped to 14fps with it off.

Similar Threads

  1. clanlib crashes debian linux
    By 93interactive in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 08-27-2009, 06:40 PM
  2. clanlib removed from linux binary release?
    By dracoroot7 in forum Novashell Game Creation System
    Replies: 3
    Last Post: 05-02-2009, 01:14 PM
  3. Software Renderer for Linux ClanLib 0.9
    By rombust in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 03-26-2009, 04:55 PM
  4. Using GTK for ClanLib 0.9 Linux
    By rombust in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 09-23-2008, 04:03 PM
  5. Installing ClanLib 0.8 and ClanLib 0.9 on linux
    By rombust in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 07-15-2008, 09:51 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •