PDA

View Full Version : problems compiling the C++ version on linux


GuntherDW
November 12th, 2004, 12:09 PM
this is my last resort so don't tell me that i have to use google or any search engine...
make[1]: Leaving directory `/GuntherDW/src/cvs/doomlegacy_c++/interface/sdl'
g++ -Wall objs/g_game.o objs/g_state.o objs/g_demo.o objs/g_input.o objs/g_type.o objs/g_level.o objs/g_mapinfo.o objs/g_map.o objs/g_player.ctor.o objs/g_pawn.o objs/p_tick.o objs/p_setup.o objs/p_saveg.o objs/p_spec.o objs/p_events.o objs/p_floor.o objs/p_plats.o objs/p_ceilng.o hings.o objs/p_lights.o objs/p_anim.o objs/p_switch.o objs/p_poly.o objs/p_acs.o objs/a_action.o objs/p_pspr.o objs/p_hpspr.o objs/p_xpspr.o enemy.o objs/info_s.o objs/info_m.o objs/t_oper.o objs/t_parse.o objs/t_prepro.o objs/t_spec.o objs/t_vari.o objs/t_script.o objs/t_func.o ob.o objs/p_hsight.o objs/p_telept.o objs/p_heretic.o objs/p_camera.o objs/p_user.o objs/p_inter.o objs/am_map.o objs/m_menu.o objs/f_finale.o ib.o objs/st_stuff.o objs/hu_stuff.o objs/m_cheat.o objs/p_fab.o objs/p_hacks.o objs/d_items.o objs/d_main.o objs/dstrings.o objs/acbot.o objobjs/console.o objs/dehacked.o objs/m_argv.o objs/m_archive.o objs/m_bbox.o objs/m_dll.o objs/m_fixed.o objs/m_misc.o objs/m_random.o objs/m_bles.o objs/vfile.o objs/wad.o objs/w_wad.o objs/z_cache.o objs/z_zone.o objs/qmus2mid.o objs/s_sound.o objs/s_sndseq.o objs/sounds.o objs/mdeo.o objs/r_render.o objs/r_bsp.o objs/r_data.o objs/r_draw.o objs/r_draw8.o objs/r_draw16.o objs/r_main.o objs/r_plane.o objs/r_segs.o objs/ objs/hw_trick.o objs/hwr_render.o objs/hwr_bsp.o objs/hwr_geometry.o objs/hwr_states.o objs/n_interface.o objs/n_connection.o objs/sv_main.otxt.o objs/i_cdmus.o objs/i_main.o objs/i_net.o objs/i_sound.o objs/i_system.o objs/i_video.o objs/ogl_sdl.o objs/searchp.o -L/usr/X11/lib -l -ltnl -ltomcrypt -lGL -lGLU -rdynamic -o Legacy
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: cannot find -ltnl
collect2: ld returned 1 exit status
make: *** [Legacy] Error 1

now, i compiled opentnl, but i don't know how to install it so legacy can find it? :(
is there any howto on this?

Pate
November 12th, 2004, 12:34 PM
I think you need to copy libtomcrypt.a and libtnl.a to the compilation directory. (I think you also needed to change the visibility of one variable in TNL's sources, but we'll get to that only if you have problems)

Hurdler
November 12th, 2004, 04:24 PM
The modified headers for TNL are already in the CVS, so you shouldn't modify them.

GuntherDW
December 11th, 2004, 06:42 PM
i'm still unable to compile it... :(

Hurdler
December 12th, 2004, 05:29 AM
same error?

Pate
December 12th, 2004, 05:30 AM
Did you compile TNL and place the above mentioned .a -files to your Legacy build directory?

GuntherDW
December 12th, 2004, 08:09 AM
it works now (when i copied the .a files, i first didn't know where to look....
thanks :)