Jump to content
Eternal Lands Official Forums
Choris

Linux CVS compilation error

Recommended Posts

When i try to compile, all .o files can be created but after it the compiler says:

cc -march=i686  -O -ggdb -pipe -DLINUX -DELC  -I/usr/local/include/SDL -D_REENTRANT -I/usr/local/include/libxml2 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -L/usr/local/lib -lxml2 -lpthread -lm -lSDL_net -lopenal -L/usr/X11R6/lib -lGL -L/usr/X11R6/lib  -lvorbis -lvorbisfile -o
el.x86.linux.bin 2d_objects.o 3d_objects.o actor_scripts.o actors.o alphamap.o asc.o books.o buddy.o bags.o cache.o chat.o colors.o console.o consolewin.o cursors.o dialogues.o draw_scene.o elconfig.o elwindows.o encyclopedia.o errors.o events.o filter.o font.o frustum.o gamewin.o gl_init.o hud.o help.o highlight.o ignore.o init.o interface.o items.o keys.o knowledge.o lights.o loginwin.o main.o manufacture.o map_io.o mapwin.o md2loader.o md5.o misc.o multiplayer.o new_actors.o new_character.o notepad.o openingwin.o options.o particles.o paste.o pathfinder.o pm_log.o questlog.o reflection.o     rules.o sector.o shadows.o sound.o spells.o stats.o storage.o tabs.o text.o textures.o tile_map.o timers.o translate.o trade.o weather.o widgets.o

/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [el.x86.linux.bin] Error 1

 

So, whats wrong with it? I think i have all needed libraries...

Share this post


Link to post
Share on other sites

Hmm, apparently you do not have opengl development libraries installed with your xfree/xorg installation.

Share this post


Link to post
Share on other sites
Hmm, apparently you do not have opengl development libraries installed with your xfree/xorg installation.

171724[/snapback]

Or its in a directory called gl instead of GL, symlink or making a copy is your friend if that is the case.

Share this post


Link to post
Share on other sites

Where the GL and X11/Xlib.h should be then? The compiler doesn't find them...

 

[EDIT] Found it... But still it doesn't find lGL :)

Edited by Choris

Share this post


Link to post
Share on other sites

Ok... I got it compiled, but another problem:

When i try ./el.x86.linux.bin, it does nothing, says no warnings, the game just doesn't run. :unsure:

So what's problem? I have the latest GL libraries now...

Share this post


Link to post
Share on other sites
Ok... I got it compiled, but another problem:

When i try ./el.x86.linux.bin, it does nothing, says no warnings, the game just doesn't run.  :unsure:

So what's problem? I have the latest GL libraries now...

173488[/snapback]

Are trying to run it from where you compiled it, or the installation directory? It can't run unless it can find all the other files.

Share this post


Link to post
Share on other sites

That's only true if you don't set the #data_dir var in el.ini

Share this post


Link to post
Share on other sites

I make no assumptions if it found his el.ini or if el.ini is setup correctly. Many people will NOT have that set in their el.ini.

Share this post


Link to post
Share on other sites
But people on *nix should have it there :blink:

173601[/snapback]

Most people that installed under unix before the path option was added wont have it unless they took they time to put it in.

Share this post


Link to post
Share on other sites

He joined in 05. And in any case it is relevant that people can put it in el.ini. EOD - now I wish to hear if it helped Choris at all :blink:

 

You should also check your el.ini - it should give you some info on what happened.

Edited by Wytter

Share this post


Link to post
Share on other sites
He joined in 05. And in any case it is relevant that people can put it in el.ini. EOD - now I wish to hear if it helped Choris at all :)

 

You should also check your el.ini - it should give you some info on what happened.

173611[/snapback]

Plus, is there anything in your error log?

Share this post


Link to post
Share on other sites

lol, yes, error log - I think I need more coffee :)

Share this post


Link to post
Share on other sites
Plus, is there anything in your error log?

173612[/snapback]

No error log file created... So i think there was no errors.

I have tried it in directory where i compiled it and in directory with normal EL installed and

I even changed the #data_dir... Didn't help at all.

Edited by Choris

Share this post


Link to post
Share on other sites

Try creating the ~/.elc dir

 

The error log should always be created. And it will always have some errors with missing particles, which leads to the crash must occur before line 564 in init.c

Edited by Wytter

Share this post


Link to post
Share on other sites
Try creating the ~/.elc dir

 

The error log should always be created. And it will always have some errors with missing particles, which leads to the crash must occur before line 564 in init.c

173620[/snapback]

There is error log file now in that ~/.elc directory...

Error: Problems loading texture: ./textures/fontv.bmp
Error: Problems loading texture: ./textures/particle5.bmp
Error: Problems loading texture: ./textures/particle6.bmp
Error: Problems loading texture: ./textures/particle7.bmp
Error: Can't open file "/root/.elc//el.ini"
Error: Could not read titles.xml
Error: Couldn't initialize SDL: No available video device
Error: Can't open file "/root/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device
Error: Can't open file "/root/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device
Error: Can't open file "/root/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device
Error: Can't open file "/root/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device
Error: Can't open file "/root/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device
Error: Can't open file "/root/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device
Error: Can't open file "/root/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device
Error: Can't open file "/root/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device

Why's that /root/.elc//el.ini?

Edited by Choris

Share this post


Link to post
Share on other sites

err, like u still need to have an el.ini from the linux EL you downloaded, copyed to ~/.elc

You did just copy the el.x86.linux.bin you compiled to a full extracted directory you have EL installed in?

 

And i wouldnt suggest running this kind of thing as the root user, Create a normal user account and use that instead.

Share this post


Link to post
Share on other sites
err, like u still need to have an el.ini from the linux EL you downloaded, copyed to ~/.elc

You did just copy the el.x86.linux.bin you compiled to a full extracted directory you have EL installed in?

 

And i wouldnt suggest running this kind of thing as the root user, Create a normal user account and use that instead.

173642[/snapback]

I have el.ini in both directories...

Yes, i copyed the file to directory where i have used normal EL.

With normal user i get these errors:

Error: Problems loading texture: ./textures/fontv.bmp
Error: Problems loading texture: ./textures/particle5.bmp
Error: Problems loading texture: ./textures/particle6.bmp
Error: Problems loading texture: ./textures/particle7.bmp
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Can't open file ./particles/moon_bubbles1.part
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Couldn't find frame: outsit09
Error: Can't open file "/home/user/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device
Error: Can't open file "/home/user/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device
Error: Can't open file "/home/user/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device
Error: Can't open file "/home/user/.elc//el.ini"
Error: Couldn't initialize SDL: No available video device
Error: Couldn't initialize SDL: No available video device
Error: Couldn't initialize SDL: No available video device
Error: Couldn't initialize SDL: No available video device

Edited by Choris

Share this post


Link to post
Share on other sites

"Couldn't initialize SDL: No available video device" Worries me a little, Like the opengl issue.

 

You have played EL in linux previously? Or is this a first attempt?

Share this post


Link to post
Share on other sites
"Couldn't initialize SDL: No available video device" Worries me a little, Like the opengl issue.

 

You have played EL in linux previously? Or is this a first attempt?

173658[/snapback]

I have used the normal EL client many times... This is just first attempt to compile CVS client. Also, I can start normal EL client even now without those errors... They're just in CVS version

Share this post


Link to post
Share on other sites
I have used the normal EL client many times... This is just first attempt to compile CVS client. Also, I can start normal EL client even now without those errors... They're just in CVS version

173660[/snapback]

 

hmm, So you are attempting to run it from an xterm i assume? DISPLAY is set correctly?

 

check with

echo $DISPLAY

Should show up somthing like :0.0

 

Might also want to try posting the results from a

glxinfo

Edited by Zep

Share this post


Link to post
Share on other sites
hmm, So you are attempting to run it from an xterm i assume? DISPLAY is set correctly?

 

check with

echo $DISPLAY

Should show up somthing like :0.0

 

Might also want to try posting the results from a

glxinfo

173664[/snapback]

They show up this:

root@Athlon:/home/user/Eternal # echo $DISPLAY
:0.0
root@Athlon:/home/user/Eternal # glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: No
server glx vendor string: Brian Paul
server glx version string: 1.4 Mesa 6.2.1
server glx extensions:
   GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
   GLX_MESA_release_buffers, GLX_ARB_get_proc_address, GLX_EXT_visual_info,
   GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
   GLX_SGIX_pbuffer
client glx vendor string: Brian Paul
client glx version string: 1.4 Mesa 6.2.1
client glx extensions:
   GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
   GLX_MESA_release_buffers, GLX_ARB_get_proc_address, GLX_EXT_visual_info,
   GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
   GLX_SGIX_pbuffer
GLX extensions:
   GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
   GLX_MESA_release_buffers, GLX_ARB_get_proc_address, GLX_EXT_visual_info,
   GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
   GLX_SGIX_pbuffer
OpenGL vendor string: Brian Paul
OpenGL renderer string: Mesa X11
OpenGL version string: 1.5 Mesa 6.2.1
OpenGL extensions:
   GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_imaging,
   GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_occlusion_query,
   GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
   GL_ARB_shadow_ambient, 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_buffer_object, GL_ARB_vertex_program, 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_clip_volume_hint, GL_EXT_compiled_vertex_array, GL_EXT_convolution,
   GL_EXT_copy_texture, GL_EXT_depth_bounds_test, GL_EXT_draw_range_elements,
   GL_EXT_fog_coord, GL_EXT_histogram, GL_EXT_multi_draw_arrays,
   GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_pixel_buffer_object,
   GL_EXT_point_parameters, GL_EXT_polygon_offset, GL_EXT_rescale_normal,
   GL_EXT_secondary_color, GL_EXT_separate_specular_color,
   GL_EXT_shadow_funcs, GL_EXT_shared_texture_palette,
   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_lod_bias,
   GL_EXT_texture_mirror_clamp, GL_EXT_texture_object,
   GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
   GL_ATI_blend_equation_separate, GL_ATI_texture_env_combine3,
   GL_ATI_texture_mirror_once, GL_HP_occlusion_test,
   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_program_debug, GL_MESA_resize_buffers,
   GL_MESA_ycbcr_texture, GL_MESA_window_pos, GL_NV_blend_square,
   GL_NV_fragment_program, GL_NV_light_max_exponent, GL_NV_point_sprite,
   GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program,
   GL_NV_vertex_program1_1, GL_SGI_color_matrix, GL_SGI_color_table,
   GL_SGI_texture_color_table, GL_SGIS_generate_mipmap,
   GL_SGIS_pixel_texture, GL_SGIS_texture_border_clamp,
   GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
   GL_SGIX_pixel_texture, GL_SGIX_shadow, GL_SGIX_shadow_ambient,
   GL_SUN_multi_draw_arrays
glu version: 1.3
glu extensions:
   GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

  visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x21 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16  0  0 0 None
0x22 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x23 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x24 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x25 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x26 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x27 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x28 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x29 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x2a 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x2b 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x2c 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x2d 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x2e 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x2f 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x30 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x31 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x32 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x33 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x34 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x35 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x36 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x37 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x38 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x39 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x3a 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x3b 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x3c 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x3d 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x3e 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x3f 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x40 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x41 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x42 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x43 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x44 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x45 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x46 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x47 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x48 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x49 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x4a 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x4b 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x4c 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x4d 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x4e 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x4f 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x50 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x51 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x52 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x53 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x54 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x55 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x56 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x57 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x58 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None

Because of that, I don't think i have set $DISPLAY correctly... How do I do that?

Edited by Choris

Share this post


Link to post
Share on other sites

it apears to be set fine....

Did you make any changes to the cvs before you did a make?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×