Jump to content

Linux Code Won't Compile


Recommended Posts

Posted

when I try to compile https://github.com/linken233/OpenJK-SWGL/ , this happens:

cmake:

cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Architecture is x86_64
-- Git revision is GITDIR-NOTFOUND
-- No build type selected, default to RELEASE
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so   
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")  
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.34")  
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so    
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE   
-- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2
.so;-lpthread   
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/Downloads/OpenJK-SWGL-swgl-maste
r three/OpenJK-SWGL-swgl-master/build

make:

make                                                           
Scanning dependencies of target bundled_minizip
[  0%] Building C object lib/minizip/CMakeFiles/bundled_minizip.dir/ioapi.c.o
[  1%] Building C object lib/minizip/CMakeFiles/bundled_minizip.dir/unzip.c.o
[  1%] Linking C static library libbundled_minizip.a
[  1%] Built target bundled_minizip
Scanning dependencies of target SWGL_SP.x86_64
[  1%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/cl_cgame.cpp.o
[  1%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/cl_cin.cpp.o
[  2%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/cl_console.cpp.o
[  2%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/cl_input.cpp.o
[  2%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/cl_keys.cpp.o
[  2%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/cl_main.cpp.o
[  2%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/cl_mp3.cpp.o
[  2%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/cl_parse.cpp.o
[  2%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/cl_scrn.cpp.o
[  3%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/cl_ui.cpp.o
[  3%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/snd_ambient.cpp.o
[  3%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/snd_dma.cpp.o
[  3%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/snd_mem.cpp.o
[  3%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/snd_mix.cpp.o
[  3%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/snd_music.cpp.o
[  3%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/client/vmachine.cpp.o
[  3%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/cm_load.cpp.o
[  4%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/cm_patch.cpp.o
[  4%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/cm_polylib.cpp.o
[  4%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/cm_test.cpp.o
[  4%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/cm_trace.cpp.o
[  4%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/cmd.cpp.o
[  4%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/common.cpp.o
[  4%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/cvar.cpp.o
[  5%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/files.cpp.o
[  5%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/md4.cpp.o
[  5%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/msg.cpp.o
[  5%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/net_chan.cpp.o
[  5%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/q_shared.cpp.o
[  5%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/stringed_ingame.cp
p.o                                                                                      
[  5%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/stringed_interface
.cpp.o                                                                                   
[  5%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/strip.cpp.o
[  6%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/persistence.cpp.o
[  6%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/z_memman_pc.cpp.o
[  6%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/qcommon/ojk_saved_game.cpp
.o                                                                                       
[  6%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/qcommon/q_color.c.
o                                                                                        
[  6%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/qcommon/q_math.c.o
[  6%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/qcommon/q_string.c
.o                                                                                       
[  6%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/qcommon/safe/fil
es.cpp.o                                                                                 
[  7%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/qcommon/safe/str
ing.cpp.o                                                                                
[  7%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/server/exe_headers.cpp.o
[  7%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/server/sv_ccmds.cpp.o
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
server/sv_ccmds.cpp: In function ‘bool SV_Map_(ForceReload_e)’:
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
server/sv_ccmds.cpp:91:21: warning: comparison between signed and unsigned integer expre
ssions [-Wsign-compare]
  for (int i = 0; i < (sizeof(jk2maps)/sizeof(jk2maps[0])); i++)
                  ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
server/sv_ccmds.cpp:104:21: warning: comparison between signed and unsigned integer expr
essions [-Wsign-compare]
  for (int i = 0; i < (sizeof(jk2maps) / sizeof(jk2maps[0])); i++)
                  ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
server/sv_ccmds.cpp:124:20: warning: comparison between signed and unsigned integer expr
essions [-Wsign-compare]
 for (int i = 0; i < (sizeof(jk2maps) / sizeof(jk2maps[0])); i++)
                 ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
server/sv_ccmds.cpp:132:20: warning: comparison between signed and unsigned integer expr
essions [-Wsign-compare]
 for (int i = 0; i < (sizeof(jkamaps) / sizeof(jkamaps[0])); i++)
                 ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  7%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/server/sv_client.cpp.o
[  7%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/server/sv_game.cpp.o
[  7%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/server/sv_init.cpp.o
[  7%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/server/sv_main.cpp.o
[  8%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/server/sv_savegame.cpp.o
[  8%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/server/sv_snapshot.cpp.o
[  8%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/server/sv_world.cpp.o
[  8%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/game/genericparser2.cpp.o
[  8%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/cdct.c.o
[  8%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/csbt.c.o
[  8%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/csbtb.c.o
[  8%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/csbtl3.c.o
[  9%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/cup.c.o
[  9%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/cupini.c.o
[  9%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/cupl1.c.o
[  9%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/cupl3.c.o
[  9%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/cwin.c.o
[  9%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/cwinb.c.o
[  9%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/cwinm.c.o
[ 10%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/hwin.c.o
[ 10%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/l3dq.c.o
[ 10%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/l3init.c.o
[ 10%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/mdct.c.o
[ 10%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/mhead.c.o
[ 10%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/msis.c.o
[ 10%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/towave.c.o
[ 11%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/uph.c.o
[ 11%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/upsf.c.o
[ 11%] Building C object code/CMakeFiles/SWGL_SP.x86_64.dir/mp3code/wavep.c.o
[ 11%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/ui/ui_atoms.cpp.o
[ 11%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/ui/ui_connect.cpp.o
[ 11%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/ui/ui_main.cpp.o
[ 11%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/ui/ui_saber.cpp.o
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
ui/ui_saber.cpp: In function ‘void UI_DoSFXSaber(float*, float*, float, float, saber_col
ors_t, int)’:
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
ui/ui_saber.cpp:378:22: warning: variable ‘blade’ set but not used [-Wunused-but-set-var
iable]
 qhandle_t glow = 0, blade = 0;
                     ^~~~~
[ 11%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/ui/ui_shared.cpp.o
[ 12%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/ui/ui_syscalls.cpp.o
[ 12%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/sys/sys_main.cpp
.o                                                                                       
[ 12%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/sys/sys_event.cp
p.o                                                                                      
[ 12%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/sys/con_log.cpp.
o                                                                                        
[ 12%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/sdl/sdl_sound.cp
p.o                                                                                      
[ 12%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/sdl/sdl_input.cp
p.o                                                                                      
[ 12%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/sdl/sdl_window.c
pp.o                                                                                     
[ 13%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/sys/sys_unix.cpp
.o                                                                                       
[ 13%] Building CXX object code/CMakeFiles/SWGL_SP.x86_64.dir/__/shared/sys/con_tty.cpp.
o                                                                                        
[ 13%] Linking CXX executable ../SWGL_SP.x86_64
[ 13%] Built target SWGL_SP.x86_64
Scanning dependencies of target swglgamex86_64
[ 13%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Animal.cpp.o
[ 13%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_AssassinDroid.cpp.
o                                                                                        
[ 13%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Atst.cpp.o
[ 13%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_BobaFett.cpp.o
[ 13%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Civilian.cpp.o
[ 14%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Default.cpp.o
[ 14%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Droid.cpp.o
[ 14%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_GalakMech.cpp.o
[ 14%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Grenadier.cpp.o
[ 14%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_HazardTrooper.cpp.
o                                                                                        
[ 14%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Howler.cpp.o
[ 14%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_ImperialProbe.cpp.
o                                                                                        
[ 15%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Interrogator.cpp.o
[ 15%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Jedi.cpp.o
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/AI_Jedi.cpp: In function ‘void NPC_EvasionSaber()’:
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/AI_Jedi.cpp:4640:20: warning: enemy_dist’ may be used uninitialized in this functi
on [-Wmaybe-uninitialized]
  Jedi_EvasionSaber( enemy_movedir, enemy_dist, enemy_dir );
  ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 15%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Mark1.cpp.o
[ 15%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Mark2.cpp.o
[ 15%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_MineMonster.cpp.o
[ 15%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Rancor.cpp.o
[ 15%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Remote.cpp.o
[ 15%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_RocketTrooper.cpp.
o                                                                                        
[ 16%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_SaberDroid.cpp.o
[ 16%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_SandCreature.cpp.o
[ 16%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Seeker.cpp.o
[ 16%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Sentry.cpp.o
[ 16%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Sniper.cpp.o
[ 16%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Stormtrooper.cpp.o
[ 16%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Tusken.cpp.o
[ 17%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Utils.cpp.o
[ 17%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/AI_Wampa.cpp.o
[ 17%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_active.cpp.o
[ 17%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_breakable.cpp.o
[ 17%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_camera.cpp.o
[ 17%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_client.cpp.o
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/g_client.cpp: In function ‘void G_ChangePlayerModel(gentity_t*, const char*)’:
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/g_client.cpp:2055:16: warning: converting to non-pointer type ‘int’ from NULL [-Wco
nversion-null]
  ent->flags = NULL;
               ^~~~
[ 17%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_cmds.cpp.o
[ 17%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_combat.cpp.o
[ 18%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_emplaced.cpp.o
[ 18%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_functions.cpp.o
[ 18%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_fx.cpp.o
[ 18%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_inventory.cpp.o
[ 18%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_itemLoad.cpp.o
[ 18%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_items.cpp.o
[ 18%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_main.cpp.o
[ 19%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_mem.cpp.o
[ 19%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_misc.cpp.o
[ 19%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_misc_model.cpp.o
[ 19%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_missile.cpp.o
[ 19%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_mover.cpp.o
[ 19%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_nav.cpp.o
[ 19%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_navigator.cpp.o
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/g_navigator.cpp: In function ‘bool STEER::Reached(gentity_t*, const float (&)[3], f
loat, bool)’:
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/g_navigator.cpp:5493:17: warning: the compiler can assume that the address of ‘targ
et’ will never be NULL [-Waddress]
 if (!actor || !target)
                ^~~~~~
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/g_navigator.cpp:5493:16: warning: nonnull argument ‘target’ compared to NULL [-Wnon
null-compare]
 if (!actor || !target)
               ^~~~~~~
[ 20%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_navnew.cpp.o
[ 20%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_object.cpp.o
[ 20%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_objectives.cpp.o
[ 20%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_rail.cpp.o
[ 20%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_ref.cpp.o
[ 20%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_roff.cpp.o
[ 20%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_savegame.cpp.o
[ 20%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_session.cpp.o
[ 21%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_spawn.cpp.o
[ 21%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_svcmds.cpp.o
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/g_svcmds.cpp: In function ‘void Svcmd_Spawn_f()’:
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/g_svcmds.cpp:815:12: warning: unused variable ‘isVehicle’ [-Wunused-variable]
 qboolean  isVehicle = qfalse;
           ^~~~~~~~~
[ 21%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_target.cpp.o
[ 21%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/G_Timer.cpp.o
[ 21%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_trigger.cpp.o
[ 21%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_turret.cpp.o
[ 21%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_usable.cpp.o
[ 22%] Building CXX object code/game/CMakeFiles/swglgamex86_64.dir/g_utils.cpp.o
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/g_utils.cpp: In function ‘gentity_t* FindRemoveAbleGent()’:
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/g_utils.cpp:785:8: error: stricmp’ was not declared in this scope
  if (!stricmp(e->classname, "item_shield")
       ^~~~~~~
/home/user/Downloads/OpenJK-SWGL-swgl-master three/OpenJK-SWGL-swgl-master/code/
game/g_utils.cpp:785:8: note: suggested alternative: ‘strncmp
  if (!stricmp(e->classname, "item_shield")
       ^~~~~~~
       strncmp
code/game/CMakeFiles/swglgamex86_64.dir/build.make:1598: recipe for target 'code/game/CM
akeFiles/swglgamex86_64.dir/g_utils.cpp.o' failed
make[2]: *** [code/game/CMakeFiles/swglgamex86_64.dir/g_utils.cpp.o] Error 1
CMakeFiles/Makefile2:200: recipe for target 'code/game/CMakeFiles/swglgamex86_64.dir/all
' failed
make[1]: *** [code/game/CMakeFiles/swglgamex86_64.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

 

I have compiled previous veersions of this code with no problems whatsoever.  Additionally, others on my dev tea have compiled this version on their systems without any trouble whatsoever.  I am running Kubuntu 18.04 on an acer machine which I can't remember or access the specifics of.  Can anyone help me?

Posted

Resolved, mods please change title to reflect this.  (I'd recommend not deleting as this information may be useful to someone in the future)

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
×
×
  • Create New...