Menu

Can't compile under VS2010

Help
2016-04-09
2016-04-10
  • MilkeyWilkey

    MilkeyWilkey - 2016-04-09

    I installed visual studio 2010 and tryed to compile glh2, but here is what I recieved

    1>  zone.c
    1>  world.c
    1>  wad.c
    1>  view.c
    1>  sys_win.c
    1>  sv_user.c
    1>  sv_phys.c
    1>  sv_move.c
    1>  sv_main.c
    1>  sv_effect.c
    1>  strlcpy.c
    1>  strlcat.c
    1>  snd_win.c
    1>  snd_wave.c
    1>  snd_vorbis.c
    1>  snd_umx.c
    1>  snd_sys.c
    1>  snd_opus.c
    1>  snd_mp3.c
    1>  snd_modplug.c
    1>  Generating Code...
    1>  Compiling...
    1>  snd_mix.c
    1>  snd_mikmod.c
    1>  snd_mem.c
    1>  snd_flac.c
    1>  snd_dsound.c
    1>  snd_dma.c
    1>  snd_codec.c
    1>  sizebuf.c
    1>  sbar.c
    1>  r_part.c
    1>  quakefs.c
    1>  qsnprint.c
    1>  q_endian.c
    1>  host_string.c
    1>  pr_exec.c
    1>  pr_edict.c
    1>  pr_cmds.c
    1>  net_wipx.c
    1>  net_wins.c
    1>  net_win.c
    1>  Generating Code...
    1>  Compiling...
    1>  net_main.c
    1>  net_loop.c
    1>  net_dgrm.c
    1>  msg_io.c
    1>  midi_win.c
    1>  mid2strm.c
    1>  menu.c
    1>  mathlib.c
    1>  link_ops.c
    1>  keys.c
    1>  in_win.c
    1>  host_cmd.c
    1>  host.c
    1>  gl_warp.c
    1>  gl_vidnt.c
    1>  gl_screen.c
    1>  gl_rsurf.c
    1>  gl_rmisc.c
    1>  gl_rmain.c
    1>  gl_rlight.c
    1>  Generating Code...
    1>  Compiling...
    1>  gl_refrag.c
    1>  gl_model.c
    1>  gl_mesh.c
    1>  gl_draw.c
    1>  debuglog.c
    1>  cvar.c
    1>  crc.c
    1>  console.c
    1>  common.c
    1>  cmd.c
    1>  cl_tent.c
    1>  cl_string.c
    1>  cl_parse.c
    1>  cl_main.c
    1>  cl_input.c
    1>  cl_inlude.c
    1>  cl_effect.c
    1>  cl_demo.c
    1>  cl_cmd.c
    1>  chase.c
    1>  Generating Code...
    1>  Compiling...
    1>  cfgfile.c
    1>  cd_win.c
    1>  bgmusic.c
    1>  Generating Code...
    1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
    

    I'm also tried compile other projects, but had no luck with vsyasm, which I also installed

    1>  Assembling d_draw.asm
    1>  Assembling d_draw16.asm
    1>  Assembling d_draw16t.asm
    1>  Assembling d_parta.asm
    1>  Assembling d_partb.asm
    1>  Assembling d_polysa.asm
    1>  Assembling d_polysa2.asm
    1>  Assembling d_polysa3.asm
    1>  Assembling d_polysa4.asm
    1>  Assembling d_polysa5.asm
    1>  Assembling d_scana.asm
    1>  Assembling d_spr8.asm
    1>  Assembling d_spr8t.asm
    1>  Assembling d_spr8t2.asm
    1>  Assembling d_varsa.asm
    1>  Assembling math.asm
    1>  Assembling r_aclipa.asm
    1>  Assembling r_aliasa.asm
    1>  Assembling r_drawa.asm
    1>  Assembling r_edgea.asm
    1>  Assembling r_edgeb.asm
    1>  Assembling r_varsa.asm
    1>  Assembling snd_mixa.asm
    1>  Assembling surf16.asm
    1>  Assembling surf8.asm
    1>  Assembling sys_ia32.asm
    1>  Assembling worlda.asm
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\vsyasm.targets(45,5): error MSB3721: The command ""E:\work\Microsoft Visual Studio 10.0\VC\bin\"vsyasm.exe -Xvc -f Win32 -g cv8 -i ".\\" -i "..\h2shared\\" -o "Build-h2-x86-asm\x86\Debug\\" -rnasm -pnasm   ..\h2shared\d_draw.asm  ..\h2shared\d_draw16.asm  ..\h2shared\d_draw16t.asm  ..\h2shared\d_parta.asm  ..\h2shared\d_partb.asm  ..\h2shared\d_polysa.asm  ..\h2shared\d_polysa2.asm  ..\h2shared\d_polysa3.asm  ..\h2shared\d_polysa4.asm  ..\h2shared\d_polysa5.asm  ..\h2shared\d_scana.asm  ..\h2shared\d_spr8.asm  ..\h2shared\d_spr8t.asm  ..\h2shared\d_spr8t2.asm  ..\h2shared\d_varsa.asm  ..\h2shared\math.asm  ..\h2shared\r_aclipa.asm  ..\h2shared\r_aliasa.asm  ..\h2shared\r_drawa.asm  ..\h2shared\r_edgea.asm  ..\h2shared\r_edgeb.asm  ..\h2shared\r_varsa.asm  ..\h2shared\snd_mixa.asm  ..\h2shared\surf16.asm  ..\h2shared\surf8.asm  ..\h2shared\sys_ia32.asm  ..\h2shared\worlda.asm" exited with code 1.
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
    
     

    Last edit: MilkeyWilkey 2016-04-09
  • MilkeyWilkey

    MilkeyWilkey - 2016-04-10

    thanks, that worked. still can't get vsyasm to work though

     
  • Ozkan Sezer

    Ozkan Sezer - 2016-04-10

    You are possibly installing vsyasm wrongly for your vs2010.
    Look at vsyasm stuff at our oslibs/windows/yasm/vs2010
    directory for some documentation. I don't know which vsyasm
    version you are using, but if 1.3.0 is giving you trouble,
    also try the 1.2.0 version. Hope these help.

     
  • MilkeyWilkey

    MilkeyWilkey - 2016-04-10

    1.2.0 works, thanks

     

Log in to post a comment.