Ĺadny brzuch
Chcialbym sie dowiedziec jak majac np. źródło gry DOOM
Skompilować je pod Linuksem oraz pod M$ Windows.
Pod Linuksem -> wchodzisz do katalogu linuxdoor-numerki (ten się pokazuje po rozpakowaniu dwóch archiwów). Następnie wpisujesz polecenie make, może także make install, nie doczytałem w pliku readme :)
Pod Linuksem -> wchodzisz do katalogu linuxdoor-numerki (ten się pokazuje po rozpakowaniu dwóch archiwów). Następnie wpisujesz polecenie make, może także make install, nie doczytałem w pliku readme :)
a pod wina bo pod linem to jest tak ze wyskakuje mi undeclared
a masz odpowiednią wersję kompilatora/binutils itd + msys/mingw czy cygwin? :D
a masz odpowiednią wersję kompilatora/binutils itd + msys/mingw czy cygwin? :D
Tak sie sklada ze siedze an Linuxie wklepuje sie do katalogu wklepuje make i sa bledy
gcc -g -Wall -DNORMALUNIX -DLINUX -c i_video.c -o linux/i_video.o i_video.c:32:22: error: X11/Xlib.h: No such file or directory i_video.c:33:23: error: X11/Xutil.h: No such file or directory i_video.c:34:24: error: X11/keysym.h: No such file or directory i_video.c:36:33: error: X11/extensions/XShm.h: No such file or directory
tam jest tego wiecej ale mysle ze wystarczy to dla przykladu
EDIT:
Z tym sobie poradzilem, sciagnalem potrzebna biblioteke, ale brakowalo pliku errnos.h wiec poszukalem i musialem go utworzyc i wkleic tam zawartosc ze strony http://minnie.tuhs.o...e/errnos.h.html ale teraz mam cos takiego:
gcc -g -Wall -DNORMALUNIX -DLINUX -c i_video.c -o linux/i_video.o gcc -g -Wall -DNORMALUNIX -DLINUX -c i_net.c -o linux/i_net.o i_net.c: In function ‘PacketGet’: i_net.c:171: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness gcc -g -Wall -DNORMALUNIX -DLINUX -c tables.c -o linux/tables.o gcc -g -Wall -DNORMALUNIX -DLINUX -c f_finale.c -o linux/f_finale.o gcc -g -Wall -DNORMALUNIX -DLINUX -c f_wipe.c -o linux/f_wipe.o gcc -g -Wall -DNORMALUNIX -DLINUX -c d_main.c -o linux/d_main.o d_main.c: In function ‘D_PostEvent’: d_main.c:153: warning: operation on ‘eventhead’ may be undefined d_main.c: In function ‘D_ProcessEvents’: d_main.c:170: warning: operation on ‘eventtail’ may be undefined gcc -g -Wall -DNORMALUNIX -DLINUX -c d_net.c -o linux/d_net.o d_net.c: In function ‘CheckAbort’: d_net.c:464: warning: operation on ‘eventtail’ may be undefined gcc -g -Wall -DNORMALUNIX -DLINUX -c d_items.c -o linux/d_items.o gcc -g -Wall -DNORMALUNIX -DLINUX -c g_game.c -o linux/g_game.o g_game.c: In function ‘G_DoLoadGame’: g_game.c:1216: warning: pointer targets in passing argument 1 of ‘strcmp’ differ in signedness gcc -g -Wall -DNORMALUNIX -DLINUX -c m_menu.c -o linux/m_menu.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_misc.c -o linux/m_misc.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_argv.c -o linux/m_argv.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_bbox.c -o linux/m_bbox.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_fixed.c -o linux/m_fixed.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_swap.c -o linux/m_swap.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_cheat.c -o linux/m_cheat.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_random.c -o linux/m_random.o gcc -g -Wall -DNORMALUNIX -DLINUX -c am_map.c -o linux/am_map.o am_map.c: In function ‘AM_updateLightLev’: am_map.c:786: warning: type defaults to ‘int’ in declaration of ‘nexttic’ am_map.c: In function ‘AM_clipMline’: am_map.c:859: warning: type defaults to ‘int’ in declaration of ‘outcode1’ am_map.c:860: warning: type defaults to ‘int’ in declaration of ‘outcode2’ am_map.c:861: warning: type defaults to ‘int’ in declaration of ‘outside’ am_map.c: In function ‘AM_drawFline’: am_map.c:992: warning: type defaults to ‘int’ in declaration of ‘fuck’ gcc -g -Wall -DNORMALUNIX -DLINUX -c p_ceilng.c -o linux/p_ceilng.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_doors.c -o linux/p_doors.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_enemy.c -o linux/p_enemy.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_floor.c -o linux/p_floor.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_inter.c -o linux/p_inter.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_lights.c -o linux/p_lights.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_map.c -o linux/p_map.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_maputl.c -o linux/p_maputl.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_plats.c -o linux/p_plats.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_pspr.c -o linux/p_pspr.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_setup.c -o linux/p_setup.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_sight.c -o linux/p_sight.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_spec.c -o linux/p_spec.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_switch.c -o linux/p_switch.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_mobj.c -o linux/p_mobj.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_telept.c -o linux/p_telept.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_tick.c -o linux/p_tick.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_saveg.c -o linux/p_saveg.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_user.c -o linux/p_user.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_bsp.c -o linux/r_bsp.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_data.c -o linux/r_data.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_draw.c -o linux/r_draw.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_main.c -o linux/r_main.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_plane.c -o linux/r_plane.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_segs.c -o linux/r_segs.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_sky.c -o linux/r_sky.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_things.c -o linux/r_things.o gcc -g -Wall -DNORMALUNIX -DLINUX -c w_wad.c -o linux/w_wad.o gcc -g -Wall -DNORMALUNIX -DLINUX -c wi_stuff.c -o linux/wi_stuff.o gcc -g -Wall -DNORMALUNIX -DLINUX -c v_video.c -o linux/v_video.o gcc -g -Wall -DNORMALUNIX -DLINUX -c st_lib.c -o linux/st_lib.o gcc -g -Wall -DNORMALUNIX -DLINUX -c st_stuff.c -o linux/st_stuff.o gcc -g -Wall -DNORMALUNIX -DLINUX -c hu_stuff.c -o linux/hu_stuff.o gcc -g -Wall -DNORMALUNIX -DLINUX -c hu_lib.c -o linux/hu_lib.o gcc -g -Wall -DNORMALUNIX -DLINUX -c s_sound.c -o linux/s_sound.o gcc -g -Wall -DNORMALUNIX -DLINUX -c z_zone.c -o linux/z_zone.o gcc -g -Wall -DNORMALUNIX -DLINUX -c info.c -o linux/info.o gcc -g -Wall -DNORMALUNIX -DLINUX -c sounds.c -o linux/sounds.o gcc -g -Wall -DNORMALUNIX -DLINUX -c i_main.c -o linux/i_main.o gcc -g -Wall -DNORMALUNIX -DLINUX -L/usr/X11R6/lib linux/doomdef.o linux/doomstat.o linux/dstrings.o linux/i_system.o linux/i_sound.o linux/i_video.o linux/i_net.o linux/tables.o linux/f_finale.o linux/f_wipe.o linux/d_main.o linux/d_net.o linux/d_items.o linux/g_game.o linux/m_menu.o linux/m_misc.o linux/m_argv.o linux/m_bbox.o linux/m_fixed.o linux/m_swap.o linux/m_cheat.o linux/m_random.o linux/am_map.o linux/p_ceilng.o linux/p_doors.o linux/p_enemy.o linux/p_floor.o linux/p_inter.o linux/p_lights.o linux/p_map.o linux/p_maputl.o linux/p_plats.o linux/p_pspr.o linux/p_setup.o linux/p_sight.o linux/p_spec.o linux/p_switch.o linux/p_mobj.o linux/p_telept.o linux/p_tick.o linux/p_saveg.o linux/p_user.o linux/r_bsp.o linux/r_data.o linux/r_draw.o linux/r_main.o linux/r_plane.o linux/r_segs.o linux/r_sky.o linux/r_things.o linux/w_wad.o linux/wi_stuff.o linux/v_video.o linux/st_lib.o linux/st_stuff.o linux/hu_stuff.o linux/hu_lib.o linux/s_sound.o linux/z_zone.o linux/info.o linux/sounds.o linux/i_main.o \ -o linux/linuxxdoom -lXext -lX11 -lnsl -lm /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in linux/i_sound.o /lib/libc.so.6: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [linux/linuxxdoom] Błąd 1
Użytkownik Netrix edytował ten post 09 styczeń 2007, 16:27
a masz odpowiednią wersję kompilatora/binutils itd + msys/mingw czy cygwin? :D
cytat dla POWTÓRZENIA tej ważnej informacji: ta wersja kodu źródłowego jest to oryginalnie wydany kod z 1997 roku ! pod inna wersję kompilatora i libc! ROZUMIESZ TO? ;) :D
LUKE! UżYJ MOCY! LOL :-)
Dziekuje Obi-Wanie Kenobi bede teraz podazal jasna strona mocy
zanotowane.pl doc.pisz.pl pdf.pisz.pl zsf.htw.pl
Skompilować je pod Linuksem oraz pod M$ Windows.
Pod Linuksem -> wchodzisz do katalogu linuxdoor-numerki (ten się pokazuje po rozpakowaniu dwóch archiwów). Następnie wpisujesz polecenie make, może także make install, nie doczytałem w pliku readme :)
Pod Linuksem -> wchodzisz do katalogu linuxdoor-numerki (ten się pokazuje po rozpakowaniu dwóch archiwów). Następnie wpisujesz polecenie make, może także make install, nie doczytałem w pliku readme :)
a pod wina bo pod linem to jest tak ze wyskakuje mi undeclared
a masz odpowiednią wersję kompilatora/binutils itd + msys/mingw czy cygwin? :D
a masz odpowiednią wersję kompilatora/binutils itd + msys/mingw czy cygwin? :D
Tak sie sklada ze siedze an Linuxie wklepuje sie do katalogu wklepuje make i sa bledy
gcc -g -Wall -DNORMALUNIX -DLINUX -c i_video.c -o linux/i_video.o i_video.c:32:22: error: X11/Xlib.h: No such file or directory i_video.c:33:23: error: X11/Xutil.h: No such file or directory i_video.c:34:24: error: X11/keysym.h: No such file or directory i_video.c:36:33: error: X11/extensions/XShm.h: No such file or directory
tam jest tego wiecej ale mysle ze wystarczy to dla przykladu
EDIT:
Z tym sobie poradzilem, sciagnalem potrzebna biblioteke, ale brakowalo pliku errnos.h wiec poszukalem i musialem go utworzyc i wkleic tam zawartosc ze strony http://minnie.tuhs.o...e/errnos.h.html ale teraz mam cos takiego:
gcc -g -Wall -DNORMALUNIX -DLINUX -c i_video.c -o linux/i_video.o gcc -g -Wall -DNORMALUNIX -DLINUX -c i_net.c -o linux/i_net.o i_net.c: In function ‘PacketGet’: i_net.c:171: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness gcc -g -Wall -DNORMALUNIX -DLINUX -c tables.c -o linux/tables.o gcc -g -Wall -DNORMALUNIX -DLINUX -c f_finale.c -o linux/f_finale.o gcc -g -Wall -DNORMALUNIX -DLINUX -c f_wipe.c -o linux/f_wipe.o gcc -g -Wall -DNORMALUNIX -DLINUX -c d_main.c -o linux/d_main.o d_main.c: In function ‘D_PostEvent’: d_main.c:153: warning: operation on ‘eventhead’ may be undefined d_main.c: In function ‘D_ProcessEvents’: d_main.c:170: warning: operation on ‘eventtail’ may be undefined gcc -g -Wall -DNORMALUNIX -DLINUX -c d_net.c -o linux/d_net.o d_net.c: In function ‘CheckAbort’: d_net.c:464: warning: operation on ‘eventtail’ may be undefined gcc -g -Wall -DNORMALUNIX -DLINUX -c d_items.c -o linux/d_items.o gcc -g -Wall -DNORMALUNIX -DLINUX -c g_game.c -o linux/g_game.o g_game.c: In function ‘G_DoLoadGame’: g_game.c:1216: warning: pointer targets in passing argument 1 of ‘strcmp’ differ in signedness gcc -g -Wall -DNORMALUNIX -DLINUX -c m_menu.c -o linux/m_menu.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_misc.c -o linux/m_misc.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_argv.c -o linux/m_argv.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_bbox.c -o linux/m_bbox.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_fixed.c -o linux/m_fixed.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_swap.c -o linux/m_swap.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_cheat.c -o linux/m_cheat.o gcc -g -Wall -DNORMALUNIX -DLINUX -c m_random.c -o linux/m_random.o gcc -g -Wall -DNORMALUNIX -DLINUX -c am_map.c -o linux/am_map.o am_map.c: In function ‘AM_updateLightLev’: am_map.c:786: warning: type defaults to ‘int’ in declaration of ‘nexttic’ am_map.c: In function ‘AM_clipMline’: am_map.c:859: warning: type defaults to ‘int’ in declaration of ‘outcode1’ am_map.c:860: warning: type defaults to ‘int’ in declaration of ‘outcode2’ am_map.c:861: warning: type defaults to ‘int’ in declaration of ‘outside’ am_map.c: In function ‘AM_drawFline’: am_map.c:992: warning: type defaults to ‘int’ in declaration of ‘fuck’ gcc -g -Wall -DNORMALUNIX -DLINUX -c p_ceilng.c -o linux/p_ceilng.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_doors.c -o linux/p_doors.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_enemy.c -o linux/p_enemy.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_floor.c -o linux/p_floor.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_inter.c -o linux/p_inter.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_lights.c -o linux/p_lights.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_map.c -o linux/p_map.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_maputl.c -o linux/p_maputl.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_plats.c -o linux/p_plats.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_pspr.c -o linux/p_pspr.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_setup.c -o linux/p_setup.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_sight.c -o linux/p_sight.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_spec.c -o linux/p_spec.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_switch.c -o linux/p_switch.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_mobj.c -o linux/p_mobj.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_telept.c -o linux/p_telept.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_tick.c -o linux/p_tick.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_saveg.c -o linux/p_saveg.o gcc -g -Wall -DNORMALUNIX -DLINUX -c p_user.c -o linux/p_user.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_bsp.c -o linux/r_bsp.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_data.c -o linux/r_data.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_draw.c -o linux/r_draw.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_main.c -o linux/r_main.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_plane.c -o linux/r_plane.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_segs.c -o linux/r_segs.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_sky.c -o linux/r_sky.o gcc -g -Wall -DNORMALUNIX -DLINUX -c r_things.c -o linux/r_things.o gcc -g -Wall -DNORMALUNIX -DLINUX -c w_wad.c -o linux/w_wad.o gcc -g -Wall -DNORMALUNIX -DLINUX -c wi_stuff.c -o linux/wi_stuff.o gcc -g -Wall -DNORMALUNIX -DLINUX -c v_video.c -o linux/v_video.o gcc -g -Wall -DNORMALUNIX -DLINUX -c st_lib.c -o linux/st_lib.o gcc -g -Wall -DNORMALUNIX -DLINUX -c st_stuff.c -o linux/st_stuff.o gcc -g -Wall -DNORMALUNIX -DLINUX -c hu_stuff.c -o linux/hu_stuff.o gcc -g -Wall -DNORMALUNIX -DLINUX -c hu_lib.c -o linux/hu_lib.o gcc -g -Wall -DNORMALUNIX -DLINUX -c s_sound.c -o linux/s_sound.o gcc -g -Wall -DNORMALUNIX -DLINUX -c z_zone.c -o linux/z_zone.o gcc -g -Wall -DNORMALUNIX -DLINUX -c info.c -o linux/info.o gcc -g -Wall -DNORMALUNIX -DLINUX -c sounds.c -o linux/sounds.o gcc -g -Wall -DNORMALUNIX -DLINUX -c i_main.c -o linux/i_main.o gcc -g -Wall -DNORMALUNIX -DLINUX -L/usr/X11R6/lib linux/doomdef.o linux/doomstat.o linux/dstrings.o linux/i_system.o linux/i_sound.o linux/i_video.o linux/i_net.o linux/tables.o linux/f_finale.o linux/f_wipe.o linux/d_main.o linux/d_net.o linux/d_items.o linux/g_game.o linux/m_menu.o linux/m_misc.o linux/m_argv.o linux/m_bbox.o linux/m_fixed.o linux/m_swap.o linux/m_cheat.o linux/m_random.o linux/am_map.o linux/p_ceilng.o linux/p_doors.o linux/p_enemy.o linux/p_floor.o linux/p_inter.o linux/p_lights.o linux/p_map.o linux/p_maputl.o linux/p_plats.o linux/p_pspr.o linux/p_setup.o linux/p_sight.o linux/p_spec.o linux/p_switch.o linux/p_mobj.o linux/p_telept.o linux/p_tick.o linux/p_saveg.o linux/p_user.o linux/r_bsp.o linux/r_data.o linux/r_draw.o linux/r_main.o linux/r_plane.o linux/r_segs.o linux/r_sky.o linux/r_things.o linux/w_wad.o linux/wi_stuff.o linux/v_video.o linux/st_lib.o linux/st_stuff.o linux/hu_stuff.o linux/hu_lib.o linux/s_sound.o linux/z_zone.o linux/info.o linux/sounds.o linux/i_main.o \ -o linux/linuxxdoom -lXext -lX11 -lnsl -lm /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in linux/i_sound.o /lib/libc.so.6: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [linux/linuxxdoom] Błąd 1
Użytkownik Netrix edytował ten post 09 styczeń 2007, 16:27
a masz odpowiednią wersję kompilatora/binutils itd + msys/mingw czy cygwin? :D
cytat dla POWTÓRZENIA tej ważnej informacji: ta wersja kodu źródłowego jest to oryginalnie wydany kod z 1997 roku ! pod inna wersję kompilatora i libc! ROZUMIESZ TO? ;) :D
LUKE! UżYJ MOCY! LOL :-)
Dziekuje Obi-Wanie Kenobi bede teraz podazal jasna strona mocy