project-navigation
Personal tools

Author Topic: Building UFO:AI in Win XP  (Read 24430 times)

Offline Level

  • Rookie
  • ***
  • Posts: 15
    • View Profile
Building UFO:AI in Win XP
« on: April 20, 2006, 09:30:01 am »
What do I need to do to build in visual C++ 2005 and Win XP?
When I try to build I get lots of errors like this:
d:\program files\ufoai\src\ref_gl\gl_local.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
and one like this:
LINK : fatal error LNK1181: cannot open input file 'winmm.lib'

I downloaded the TD2 Beta and put in the files from the SVN, is there any thing else I need to do?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Building UFO:AI in Win XP
« Reply #1 on: April 20, 2006, 10:15:05 am »
i can't really answer this question because i'm on linux - but you can join the irc-channel and ask _Bnu for help. he is the one doing the windows-builds right now.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Building UFO:AI in Win XP
« Reply #2 on: April 20, 2006, 10:22:46 am »
Quote
_Bnu: Looks to me like he downloaded Visual C++ 2005 express and didn't download the platform SDK. Which means that it's basically useless, since it doesn't have any libraries or include files.

Virtul

  • Guest
Building UFO:AI in Win XP
« Reply #3 on: April 28, 2006, 10:27:52 pm »
with MSVS 2003 i always get this error:
Code: [Select]
Linking...
cl_main.obj : error LNK2019: unresolved external symbol _CL_ParseShaders referenced in function _CL_ParseScriptSecond
cl_view.obj : error LNK2001: unresolved external symbol _r_shaders
cl_view.obj : error LNK2001: unresolved external symbol _r_numshaders
cl_view.obj : error LNK2019: unresolved external symbol _CL_ShaderList_f referenced in function _V_Init
.\../ufo.exe : fatal error LNK1120: 4 unresolved externals

with every version, i guess wrong settings or something...
or maybe i miss some files?

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Building UFO:AI in Win XP
« Reply #4 on: April 28, 2006, 11:30:09 pm »
It's possible the current SVN codebase is broken so it doesn't compile in MSVS. If that's the case, you can only wait until someone fixes it.

Virtul

  • Guest
Building UFO:AI in Win XP
« Reply #5 on: April 29, 2006, 12:57:50 am »
nope, i got this errors with previous revisions too

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Building UFO:AI in Win XP
« Reply #6 on: April 29, 2006, 06:09:29 am »
maybe the newest rev fixes the shader stuff for visual c (rev 764) - please give feedback

Virtul

  • Guest
Building UFO:AI in Win XP
« Reply #7 on: April 29, 2006, 08:32:02 am »
same errors with rev 768, something wrong with my compiler for sure...

BeBu

  • Guest
Building UFO:AI in Win XP
« Reply #8 on: July 23, 2006, 10:32:01 am »
thread is abit older but nevertheless:

could it be us use the epxress version of vc? then you have to donwload the platform sdk seperately and sintall it.

then you have to set the pathes for include an dlib files in vc.

when needed it can make some screenshots to show what you have to add to which interface.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Building UFO:AI in Win XP
« Reply #9 on: July 23, 2006, 10:52:18 am »

TerminatorII

  • Guest
Building UFO:AI in Win XP
« Reply #10 on: July 26, 2006, 09:48:06 am »
okaymy problem rises from Ref_GL.dev


I go to compile it (to get the Ref_GL.DLL) And It has sever problems.

   
  [Linker error] undefined reference to `Q_strncpyz'
  [Linker error] undefined reference to `Q_strncpyz'
  [Linker error] undefined reference to `Q_strncpyz'
  [Linker error] undefined reference to `Q_strncpyz'
  [Linker error] undefined reference to `Q_strncpyz'
  more undefined references to `Q_strncpyz' follow
  ld returned 1 exit status
 C:\Documents and Settings\Joe\My Documents\space\src\ref_gl\Makefile.win [Build Error]  [../../ref_gl.dll] Error 1



Other than that, Id be able to run the game :( everything else worked fine....

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Building UFO:AI in Win XP
« Reply #11 on: July 27, 2006, 08:01:58 pm »
the same thing
all addons for dev C++ installed
maybe its because i use dev 5 beta, not dev4?

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Building UFO:AI in Win XP
« Reply #12 on: July 27, 2006, 09:36:09 pm »
this problem is on all releases
i tried to compile rc 3.0 and the same happened
maybe you forgot to add something in wiki faq, some kind of library?

[Linker error] undefined reference to `Q_strncpyz'
[Linker error] undefined reference to `Q_strncpyz'
[Linker error] undefined reference to `Q_strncpyz'
[Linker error] undefined reference to `Q_strncpyz'
[Linker error] undefined reference to `Q_strncpyz'
more undefined references to `Q_strncpyz' follow
ld returned 1 exit status
C:\Documents and Settings\Joe\My Documents\space\src\ref_gl\Makefile.win [Build Error] [../../ref_gl.dll] Error 1

BeBu

  • Guest
Building UFO:AI in Win XP
« Reply #13 on: July 27, 2006, 10:18:41 pm »
well i dont have it. which compiler/ide are u using?

and Q_strncpyz() is defined in game\q_sahred.c adding the object file to linker should solve your problem.

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Building UFO:AI in Win XP
« Reply #14 on: July 28, 2006, 03:32:05 am »
i am using dev c++ 4.4.9.2
standart compiler
iam not a programmist so i dont know c++ to fix something =(
now i have other errors with new revision wtf =(   (revision 2153)
revision RC3 compils with no problems only problem with ref_gl.dll which i wrote  in previous post...

log:
Building Makefile: "D:\Games\UFOAIRC3\trunk\src\ref_gl\Makefile.win"
Выполнение  make...
make.exe -f "D:\Games\UFOAIRC3\trunk\src\ref_gl\Makefile.win" all
gcc.exe -c gl_anim.c -o gl_anim.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_draw.c -o gl_draw.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_light.c -o gl_light.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_mesh.c -o gl_mesh.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_model.c -o gl_model.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_particle.c -o gl_particle.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_rmain.c -o gl_rmain.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_rmisc.c -o gl_rmisc.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_rsurf.c -o gl_rsurf.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_warp.c -o gl_warp.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_image.c -o gl_image.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_shadows.c -o gl_shadows.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_font.c -o gl_font.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

gcc.exe -c gl_arb_shader.c -o gl_arb_shader.o -I"C:/Dev-Cpp/include"  -D__GNUWIN32__  -D_M_IX86=500  -Wall  -DDEVCPP  -DC_ONLY  -DUSE_SDL -DSHADERS -DHAVE_GETTEXT -DUSE_SDL_SOUND  

dllwrap.exe --output-def ../../libref_gl.def --driver-name c++ --implib ../../libref_gl.a gl_anim.o gl_draw.o gl_light.o gl_mesh.o gl_model.o gl_particle.o gl_rmain.o gl_rmisc.o gl_rsurf.o gl_warp.o ../ports/win32/glw_imp.o ../game/q_shared.o ../ports/win32/q_shwin.o ../ports/win32/qgl_win.o gl_image.o gl_shadows.o gl_font.o gl_arb_shader.o  -L"C:/Dev-Cpp/lib" -lkernel32  -luser32  -lgdi32  -lwinmm  -llibjpeg -lSDL_ttf -lSDL ../ports/win32/intl.lib -def ref_gl.def   -o ../../ref_gl.dll

../ports/win32/q_shwin.o(.text+0xc): In function `Hunk_Begin':
D:/Games/UFOAIRC3/trunk/src/ports/win32/q_shwin.c:42: undefined reference to `mcount'
../ports/win32/q_shwin.o(.text+0x75): In function `Hunk_Alloc':

D:/Games/UFOAIRC3/trunk/src/ports/win32/q_shwin.c:58: undefined reference to `mcount'
../ports/win32/q_shwin.o(.text+0x148): In function `Hunk_End':
D:/Games/UFOAIRC3/trunk/src/ports/win32/q_shwin.c:82: undefined reference to `mcount'
../ports/win32/q_shwin.o(.text+0x165): In function `Hunk_Free':
D:/Games/UFOAIRC3/trunk/src/ports/win32/q_shwin.c:100: undefined reference to `mcount'
../ports/win32/q_shwin.o(.text+0x1a1): In function `Sys_Milliseconds':
D:/Games/UFOAIRC3/trunk/src/ports/win32/q_shwin.c:121: undefined reference to `mcount'
../ports/win32/q_shwin.o(.text+0x1ec):D:/Games/UFOAIRC3/trunk/src/ports/win32/q_shwin.c:136: more undefined references to `mcount' follow
collect2: ld returned 1 exit status

dllwrap.exe: c++ exited with status 1

make.exe: *** [../../ref_gl.dll] Error 1