[LINUX] Problem compiling samples (GLFW)

Monkey Forums/Monkey Bug Reports/[LINUX] Problem compiling samples (GLFW)

Plain(Posted 2013) [#1]
Anyone else having problems compiling samples (or own code) using the GLFW-target on a Linux-box? (Linux Mint (Ubuntu derivative w/ Cinnamon Window Manager in my case)

Thought I had it fixed, but looks like it was a one-timer. Not exactly sure.. Did a fresh install of Monkey68, but also tested it on older versions that were able to run on Linux.

I'm getting the return code "65280". Tried both compiling either as Release or Debug.. Also tested multiple samples, same result every time.

It's just the GLFW target tho'. Android/HTML5 works perfectly!

Will try a VM install of Ubuntu when the download is done, just to be sure. :)


marksibly(Posted 2013) [#2]
> I'm getting the return code "65280".

When? When it compiles? Can you dump compiler output here?

glfw bouncyaliens is working fine here (using vmware).


slenkar(Posted 2013) [#3]
delete build folder
then
try this?
http://www.monkeycoder.co.nz/Community/posts.php?topic=4244


Plain(Posted 2013) [#4]
Sorry for the misunderstanding..

It looks like compiling is working, just running it isn't..

@marksibly:

Right after it seems to compile, when it should run the executable.
Debug build log:

TRANS monkey compiler V1.46
Parsing...
Semanting...
Translating...
Building...
FOPEN 'wb' for CopyFile(/home/plain/MonkeyPro68/bananas/skn3/monkenstein/monkenstein.data/textures.png,/home/plain/MonkeyPro68/bananas/skn3/monkenstein/monkenstein.build/glfw/gcc_linux/Debug/data/textures.png) failed
FOPEN 'wb' for CopyFile(/home/plain/MonkeyPro68/modules/mojo/data/mojo_font.png,/home/plain/MonkeyPro68/bananas/skn3/monkenstein/monkenstein.build/glfw/gcc_linux/Debug/data/mojo_font.png) failed
g++   -I../glfw/include -I../glfw/lib -I../glfw/lib/x11 -I../openal/include -I../stb  -c -o ../main.o ../main.cpp
g++  -o Debug/MonkeyGame ../glfw/lib/enable.o ../glfw/lib/fullscreen.o ../glfw/lib/glext.o ../glfw/lib/image.o ../glfw/lib/init.o ../glfw/lib/input.o ../glfw/lib/joystick.o ../glfw/lib/stream.o ../glfw/lib/tga.o ../glfw/lib/thread.o ../glfw/lib/time.o ../glfw/lib/window.o ../glfw/lib/x11/x11_enable.o ../glfw/lib/x11/x11_fullscreen.o ../glfw/lib/x11/x11_glext.o ../glfw/lib/x11/x11_init.o ../glfw/lib/x11/x11_joystick.o ../glfw/lib/x11/x11_thread.o ../glfw/lib/x11/x11_time.o ../glfw/lib/x11/x11_window.o ../glfw/lib/x11/x11_keysym2unicode.o ../stb/stb_image.o ../stb/stb_vorbis.o ../main.o -lGL -lopenal
glfwOpenWindow failed
TRANS FAILED: Error executing './MonkeyGame', return code=65280


Release build log:

TRANS monkey compiler V1.46
Parsing...
Semanting...
Translating...
Building...
g++  -O3 -DNDEBUG -I../glfw/include -I../glfw/lib -I../glfw/lib/x11 -I../openal/include -I../stb  -c -o ../main.o ../main.cpp
../main.cpp: In member function ‘virtual void BBGlfwGame::OpenUrl(String)’:
../main.cpp:2143:16: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
../main.cpp: In function ‘void skipBytes(int, FILE*)’:
../main.cpp:1904:18: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
../main.cpp: In member function ‘virtual FILE* BBGame::OpenFile(String, String)’:
../main.cpp:1026:16: warning: attempt to free a non-heap object ‘String::nullRep’ [-Wfree-nonheap-object]
g++  -o Release/MonkeyGame ../glfw/lib/enable.o ../glfw/lib/fullscreen.o ../glfw/lib/glext.o ../glfw/lib/image.o ../glfw/lib/init.o ../glfw/lib/input.o ../glfw/lib/joystick.o ../glfw/lib/stream.o ../glfw/lib/tga.o ../glfw/lib/thread.o ../glfw/lib/time.o ../glfw/lib/window.o ../glfw/lib/x11/x11_enable.o ../glfw/lib/x11/x11_fullscreen.o ../glfw/lib/x11/x11_glext.o ../glfw/lib/x11/x11_init.o ../glfw/lib/x11/x11_joystick.o ../glfw/lib/x11/x11_thread.o ../glfw/lib/x11/x11_time.o ../glfw/lib/x11/x11_window.o ../glfw/lib/x11/x11_keysym2unicode.o ../stb/stb_image.o ../stb/stb_vorbis.o ../main.o -lGL -lopenal
glfwOpenWindow failed
TRANS FAILED: Error executing './MonkeyGame', return code=65280


But it gets even weirder: tried it both in Ubuntu 12.10 x86 + x64 in a VM.. It's working perfect there.

Guessing it's an issue with Linux Mint.. :(


Plain(Posted 2013) [#5]
@slenkar:

Deleted the build folder, issue persists. Will try your solution right now and report back ASAP.


marksibly(Posted 2013) [#6]
Since glfwOpenWindow is failing, I suspect it could be an opengl config issue.

What sort of opengl drivers do you have installed?

Does glxgears work from the terminal?

What is glxinfo output?


Plain(Posted 2013) [#7]
glxgears + glxspheres both work as expected.

glxinfo output:

name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_multisample, GLX_EXT_create_context_es2_profile,
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_swap_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_get_proc_address,
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_EXT_framebuffer_sRGB,
GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer,
GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control,
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_INTEL_swap_event
GLX version: 1.4
GLX extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer,
GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control,
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_INTEL_swap_event
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL version string: 3.0 Mesa 9.0.2
OpenGL shading language version string: 1.30
OpenGL extensions:
GL_ARB_multisample, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_copy_texture,
GL_EXT_polygon_offset, GL_EXT_subtexture, GL_EXT_texture_object,
GL_EXT_vertex_array, GL_EXT_compiled_vertex_array, GL_EXT_texture,
GL_EXT_texture3D, GL_IBM_rasterpos_clip, GL_ARB_point_parameters,
GL_EXT_draw_range_elements, GL_EXT_packed_pixels, GL_EXT_point_parameters,
GL_EXT_rescale_normal, GL_EXT_separate_specular_color,
GL_EXT_texture_edge_clamp, GL_SGIS_generate_mipmap,
GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
GL_SGIS_texture_lod, GL_ARB_framebuffer_sRGB, GL_ARB_multitexture,
GL_EXT_framebuffer_sRGB, GL_IBM_multimode_draw_arrays,
GL_IBM_texture_mirrored_repeat, GL_3DFX_texture_compression_FXT1,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add, GL_ARB_transpose_matrix,
GL_EXT_blend_func_separate, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
GL_EXT_secondary_color, GL_EXT_texture_env_add,
GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,
GL_INGR_blend_func_separate, GL_NV_blend_square, GL_NV_light_max_exponent,
GL_NV_texgen_reflection, GL_NV_texture_env_combine4, GL_S3_s3tc,
GL_SUN_multi_draw_arrays, GL_ARB_texture_border_clamp,
GL_ARB_texture_compression, GL_EXT_framebuffer_object,
GL_EXT_texture_compression_s3tc, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_MESA_window_pos, GL_NV_packed_depth_stencil,
GL_NV_texture_rectangle, GL_NV_vertex_program, GL_ARB_depth_texture,
GL_ARB_occlusion_query, GL_ARB_shadow, GL_ARB_texture_env_combine,
GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_window_pos, GL_ATI_envmap_bumpmap,
GL_EXT_stencil_two_side, GL_EXT_texture_cube_map, GL_NV_depth_clamp,
GL_NV_vertex_program1_1, GL_APPLE_packed_pixels,
GL_APPLE_vertex_array_object, GL_ARB_draw_buffers,
GL_ARB_fragment_program, GL_ARB_fragment_shader, GL_ARB_shader_objects,
GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ATI_draw_buffers,
GL_ATI_texture_env_combine3, GL_ATI_texture_float, GL_EXT_shadow_funcs,
GL_EXT_stencil_wrap, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,
GL_NV_primitive_restart, GL_ARB_depth_clamp,
GL_ARB_fragment_program_shadow, GL_ARB_half_float_pixel,
GL_ARB_occlusion_query2, GL_ARB_point_sprite, GL_ARB_shading_language_100,
GL_ARB_sync, GL_ARB_texture_non_power_of_two, GL_ARB_vertex_buffer_object,
GL_ATI_blend_equation_separate, GL_EXT_blend_equation_separate,
GL_OES_read_format, GL_ARB_color_buffer_float, GL_ARB_pixel_buffer_object,
GL_ARB_texture_compression_rgtc, GL_ARB_texture_float,
GL_ARB_texture_rectangle, GL_EXT_packed_float, GL_EXT_pixel_buffer_object,
GL_EXT_texture_compression_dxt1, GL_EXT_texture_compression_rgtc,
GL_EXT_texture_rectangle, GL_EXT_texture_sRGB,
GL_EXT_texture_shared_exponent, GL_ARB_framebuffer_object,
GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample,
GL_EXT_packed_depth_stencil, GL_APPLE_object_purgeable,
GL_ARB_vertex_array_object, GL_ATI_separate_stencil, GL_EXT_draw_buffers2,
GL_EXT_draw_instanced, GL_EXT_gpu_program_parameters,
GL_EXT_texture_array, GL_EXT_texture_integer, GL_EXT_texture_sRGB_decode,
GL_EXT_timer_query, GL_OES_EGL_image, GL_MESA_texture_array,
GL_ARB_copy_buffer, GL_ARB_depth_buffer_float, GL_ARB_draw_instanced,
GL_ARB_half_float_vertex, GL_ARB_instanced_arrays,
GL_ARB_map_buffer_range, GL_ARB_texture_rg, GL_ARB_texture_swizzle,
GL_ARB_vertex_array_bgra, GL_EXT_separate_shader_objects,
GL_EXT_texture_swizzle, GL_EXT_vertex_array_bgra,
GL_NV_conditional_render, GL_AMD_draw_buffers_blend,
GL_ARB_ES2_compatibility, GL_ARB_blend_func_extended, GL_ARB_debug_output,
GL_ARB_draw_buffers_blend, GL_ARB_draw_elements_base_vertex,
GL_ARB_explicit_attrib_location, GL_ARB_fragment_coord_conventions,
GL_ARB_provoking_vertex, GL_ARB_sampler_objects, GL_ARB_seamless_cube_map,
GL_ARB_shader_texture_lod, GL_ARB_texture_rgb10_a2ui,
GL_ARB_uniform_buffer_object, GL_EXT_provoking_vertex,
GL_EXT_texture_snorm, GL_MESA_texture_signed_rgba, GL_ARB_robustness,
GL_ARB_shader_bit_encoding, GL_ARB_texture_storage,
GL_EXT_transform_feedback, GL_ARB_invalidate_subdata

40 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 . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x022 24 dc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x09d 24 tc 0 24 0 r . . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x09e 24 tc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x09f 24 tc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x0a0 24 tc 0 24 0 r . . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x0a1 24 tc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x0a2 24 tc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x0a3 24 tc 0 32 0 r . . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x0a4 24 tc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x0a5 24 tc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x0a6 24 tc 0 32 0 r . . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x0a7 24 tc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x0a8 24 tc 0 24 0 r y . 8 8 8 0 . . 0 24 8 16 16 16 0 0 0 Slow
0x0a9 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x0aa 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 16 16 16 16 0 0 Slow
0x0ab 24 tc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 4 1 None
0x0ac 24 tc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 4 1 None
0x0ad 24 tc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 4 1 None
0x0ae 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 4 1 None
0x0af 24 dc 0 24 0 r . . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x0b0 24 dc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x0b1 24 dc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x0b2 24 dc 0 24 0 r . . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x0b3 24 dc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x0b4 24 dc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x0b5 24 dc 0 32 0 r . . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x0b6 24 dc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x0b7 24 dc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x0b8 24 dc 0 32 0 r . . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x0b9 24 dc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x0ba 24 dc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x0bb 24 dc 0 24 0 r y . 8 8 8 0 . . 0 24 8 16 16 16 0 0 0 Slow
0x0bc 24 dc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x0bd 24 dc 0 32 0 r y . 8 8 8 8 . . 0 24 8 16 16 16 16 0 0 Slow
0x0be 24 dc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 4 1 None
0x0bf 24 dc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 4 1 None
0x0c0 24 dc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 4 1 None
0x0c1 24 dc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 4 1 None
0x060 32 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None

60 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
----------------------------------------------------------------------------
0x061 0 tc 0 16 0 r . . 5 6 5 0 . . 0 0 0 0 0 0 0 0 0 None
0x062 0 tc 0 16 0 r y . 5 6 5 0 . . 0 0 0 0 0 0 0 0 0 None
0x063 0 tc 0 16 0 r y . 5 6 5 0 . . 0 0 0 0 0 0 0 0 0 None
0x064 0 tc 0 16 0 r . . 5 6 5 0 . . 0 16 0 0 0 0 0 0 0 None
0x065 0 tc 0 16 0 r y . 5 6 5 0 . . 0 16 0 0 0 0 0 0 0 None
0x066 0 tc 0 16 0 r y . 5 6 5 0 . . 0 16 0 0 0 0 0 0 0 None
0x067 24 tc 0 24 0 r . . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x068 24 tc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x069 24 tc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x06a 24 tc 0 24 0 r . . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x06b 24 tc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x06c 24 tc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x06d 24 tc 0 32 0 r . . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x06e 24 tc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x06f 24 tc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x070 24 tc 0 32 0 r . . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x071 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x072 32 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x073 0 tc 0 16 0 r y . 5 6 5 0 . . 0 16 0 0 0 0 0 0 0 None
0x074 0 tc 0 16 0 r y . 5 6 5 0 . . 0 16 0 16 16 16 0 0 0 Slow
0x075 24 tc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x076 24 tc 0 24 0 r y . 8 8 8 0 . . 0 24 8 16 16 16 0 0 0 Slow
0x077 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x078 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 16 16 16 16 0 0 Slow
0x079 0 tc 0 16 0 r y . 5 6 5 0 . . 0 0 0 0 0 0 0 4 1 None
0x07a 0 tc 0 16 0 r y . 5 6 5 0 . . 0 16 0 0 0 0 0 4 1 None
0x07b 24 tc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 4 1 None
0x07c 24 tc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 4 1 None
0x07d 24 tc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 4 1 None
0x07e 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 4 1 None
0x07f 0 dc 0 16 0 r . . 5 6 5 0 . . 0 0 0 0 0 0 0 0 0 None
0x080 0 dc 0 16 0 r y . 5 6 5 0 . . 0 0 0 0 0 0 0 0 0 None
0x081 0 dc 0 16 0 r y . 5 6 5 0 . . 0 0 0 0 0 0 0 0 0 None
0x082 0 dc 0 16 0 r . . 5 6 5 0 . . 0 16 0 0 0 0 0 0 0 None
0x083 0 dc 0 16 0 r y . 5 6 5 0 . . 0 16 0 0 0 0 0 0 0 None
0x084 0 dc 0 16 0 r y . 5 6 5 0 . . 0 16 0 0 0 0 0 0 0 None
0x085 24 dc 0 24 0 r . . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x086 24 dc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x087 24 dc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None
0x088 24 dc 0 24 0 r . . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x089 24 dc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x08a 24 dc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x08b 24 dc 0 32 0 r . . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x08c 24 dc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x08d 24 dc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None
0x08e 24 dc 0 32 0 r . . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x08f 24 dc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x090 24 dc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x091 0 dc 0 16 0 r y . 5 6 5 0 . . 0 16 0 0 0 0 0 0 0 None
0x092 0 dc 0 16 0 r y . 5 6 5 0 . . 0 16 0 16 16 16 0 0 0 Slow
0x093 24 dc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 0 0 None
0x094 24 dc 0 24 0 r y . 8 8 8 0 . . 0 24 8 16 16 16 0 0 0 Slow
0x095 24 dc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None
0x096 24 dc 0 32 0 r y . 8 8 8 8 . . 0 24 8 16 16 16 16 0 0 Slow
0x097 0 dc 0 16 0 r y . 5 6 5 0 . . 0 0 0 0 0 0 0 4 1 None
0x098 0 dc 0 16 0 r y . 5 6 5 0 . . 0 16 0 0 0 0 0 4 1 None
0x099 24 dc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 4 1 None
0x09a 24 dc 0 24 0 r y . 8 8 8 0 . . 0 24 8 0 0 0 0 4 1 None
0x09b 24 dc 0 32 0 r y . 8 8 8 8 . . 0 0 0 0 0 0 0 4 1 None
0x09c 24 dc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 4 1 None



This is under my Intel GMA card, but shouldn't be notable.


slenkar(Posted 2013) [#8]
I use monkey on puppy precise linux
its lightweight but has access to the same library of packages as ubuntu


Perturbatio(Posted 2013) [#9]
I've just started getting this since updating to the latest ATI Catalyst drivers (13.3 Beta). I'm using 64bit Mint 13 with Cinnamon.


dawlane(Posted 2013) [#10]
Well it's been a while since I last played with monkey and I had this same problem. In the end I had to roll back the driver to ubuntu's nvidia v173 to get GLFW to work which is a pain as that particular driver causes problems with Ubuntu on any of my computers.


dawlane(Posted 2013) [#11]
Ok got a solution if your still having problems. I had a suspicion that the problem was down to the GLFW lib that you get from the repositories and a problem with the template. It has been note here and there that there has been some issues with GLFW development files and the distribution supplied files.

Make sure that the Linux distribution libgl-dev/libglu-dev and libglfw files are installed.

Now rename/delete the glfw folder found in targets/glfw/template

Download the GLFW development files from www.glfw.org and extract them to targets/glfw/template and then rename the extracted folder to glfw.

You may have to modify the PREFIX to /usr in Make.x11.in file found in the lib/x11 folder if you intend to replace the current version of glfw, but this would depend on your distribution.

Open a terminal and change the directory to point to {monkey-directory}/targets/glfw/template/glfw.

And then run the command "make x11" or "make x11-dist-install" as root if you plan to replace the the current version, but remove libglfw-dev and libglfw2 from your system.

If all goes well you should be able to run GLFW programs. But as whether they will work on other Linux distributions I don't know.

EDIT:
Another possible solution is to install the distributions glfw-dev files and modify the makefile in glfw/template/gcc_linux by removing anything glfw related in the OBJS section and adding -lgfw to LDLIBS.
It should be noted that I don't know if Mark is using glfw 2.7.7 or a previous version. Currently Ubuntu/Mint are using 2.7.2 (more than likely a variation of it). so there could be unexpected problems.


dawlane(Posted 2013) [#12]
Since glfwOpenWindow is failing, I suspect it could be an opengl config issue.
Thought I'd have another look at this as the above wasn't a very good solution. As it turns out the issue is a glfw configuration issue. If I add -D_GLFW_HAS_GLXGETPROCADDRESS to the compiler flags in the makefile template it will compile without having to do anything in the above post. Apparently there are four ways of getting address for GL/GLX extension functions glXGetProcAddress, glXGetProcAddressARB, glXGetProcAddressEXT, and dlsym. See x11_glext.c in glfw template.

Some additional compiler flags that you would find in the GLFW makefile.
-D_GLFW_USE_LINUX_JOYSTICKS
-D_GLFW_HAS_XF86VIDMODE
-D_GLFW_HAS_SCHED_YIELD
-D_GLFW_HAS_SYSCONF
-pthread

Some library flags
-lXxf86vm
-lXext
-lrt
-lX11
-lGL
-pthread
-lm

EDIT: I've add the other flags that get generated when I run make x11 in the glfw 2.7.2 directory.


marksibly(Posted 2013) [#13]
Would you mind posting what you consider to be a 'fixed' gcc_linux/Makefile?

I'm not having this problem so if it doesn't break anything for me and it fixes something for you I'll use it.


dawlane(Posted 2013) [#14]
This is currently my make file for the GLFW Libs that come with monkey.

-D_GLFW_HAS_GLXGETPROCADDRESS -D_GLFW_USE_LINUX_JOYSTICKS. Should be all that's needed to get the samples to run.

Ideally the best way would be not to use the glfw source code that comes with monkey, but to link to the default glfw development files that you can get with the current distribution of the OS, as what may work for me may not work for any body else. But the down side here maybe if monkey relies on the latest version of GLFW and the current files in the repository for said OS's use an earlier version, then they maybe problems building the code or unexpected bugs.

EDIT:I should point out here that the driver I'm using at the moment is the distribution suplied nvidia 304.51 driver.


dawlane(Posted 2013) [#15]
Hi Mark.
Did an upgrade today from Linux Mint 14 to Mint 15 and came across a possible problem with the linker having a problem with undefined references. Not sure if this was something to do with the way I upgraded. Normally I would do a clean install, but this time I just changed the source repositories to the new version and did a dist-upgrade.
The solution was simple enough. Just add -pthread to CPPFLAGS and -lX11 -lpthread to LDLIBS and all should work as planed.
Just a side note if you didn't already know that GLFW_HAS_SYSCONF and GLFW_HAS SCHED_YIELD deal with process sheduling and the number of processors available during a build.

Did a clean install of Mint 15 and confirmed that a new make file is needed