UFO:Alien Invasion

Technical support => FAQ => Topic started by: Level on April 20, 2006, 09:30:01 am

Title: Building UFO:AI in Win XP
Post by: Level 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?
Title: Building UFO:AI in Win XP
Post by: Mattn 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.
Title: Building UFO:AI in Win XP
Post by: Mattn 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.
Title: Building UFO:AI in Win XP
Post by: Virtul 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?
Title: Building UFO:AI in Win XP
Post by: BTAxis 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.
Title: Building UFO:AI in Win XP
Post by: Virtul on April 29, 2006, 12:57:50 am
nope, i got this errors with previous revisions too
Title: Building UFO:AI in Win XP
Post by: Mattn on April 29, 2006, 06:09:29 am
maybe the newest rev fixes the shader stuff for visual c (rev 764) - please give feedback
Title: Building UFO:AI in Win XP
Post by: Virtul on April 29, 2006, 08:32:02 am
same errors with rev 768, something wrong with my compiler for sure...
Title: Building UFO:AI in Win XP
Post by: BeBu 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.
Title: Building UFO:AI in Win XP
Post by: Mattn on July 23, 2006, 10:52:18 am
please do this - but in our wiki
http://ufo.myexp.de/wiki/index.php/Compile_for_Windows
Title: Building UFO:AI in Win XP
Post by: TerminatorII 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....
Title: Building UFO:AI in Win XP
Post by: noob 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?
Title: Building UFO:AI in Win XP
Post by: noob 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
Title: Building UFO:AI in Win XP
Post by: BeBu 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.
Title: Building UFO:AI in Win XP
Post by: noob 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
Title: Building UFO:AI in Win XP
Post by: BeBu on July 28, 2006, 11:49:45 am
well dont misunderstand me, but when you dont know c you should probably stick to the binary releases.

well i only have visual studio. take a look at the wiki i wrote an article how to compile with the freee vc express.  when you enouter errors there i can help you
Title: Building UFO:AI in Win XP
Post by: noob on July 28, 2006, 06:42:40 pm
bug f***en errors log... oohh)) tried to compile ref_gl.vcproj
kill me plz))))
with visual expr2005
i have xp sp2
log is there:
http://www.yousendit.com/transfer.php?action=download&ufid=F60A2748701E475B
Title: Building UFO:AI in Win XP
Post by: BeBu on July 29, 2006, 11:42:14 pm
remove the line with ia64 from lib, in fact remove every subfolder you have.
you only need platformsdk\lib and directxsdk\lib not the amd64 and ia64. well forgot to mention dont do debug build as in the platform sdk there is no msvcrtd for x86, but for the 64bit machines
Title: Building UFO:AI in Win XP
Post by: noob on July 30, 2006, 01:36:17 am
done, subfolders deleted...
i didnt use debug at that time, only "release"
next errors  :?

Code: [Select]

1>------ Build started: Project: game, Configuration: Release Win32 ------
1>Compiling...
1>q_shwin.c
1>q_shared.c
1>g_utils.c
1>g_svcmds.c
1>g_spawn.c
1>g_main.c
1>g_cmds.c
1>g_client.c
1>g_ai.c
1>Linking...
1>   Creating library D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\game32.lib and object D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\game32.exp
1>Generating code
1>Finished generating code
1>Embedding manifest...
1>Performing Post-Build Event...
1>D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\game32.lib
1>D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\game32.exp
1>D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\game32.pdb
1>D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\game32.map
1>D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\game32.dll
1>        5 file(s) copied.
1>Build log was saved at "file://D:\Games\UFOAIRC3\trunk\src\Release\obj\Win32\BuildLog.htm"
1>game - 0 error(s), 0 warning(s)
2>------ Build started: Project: ref_gl, Configuration: Release Win32 ------
2>Compiling...
2>qgl_win.c
2>glw_imp.c
2>gl_warp.c
2>gl_shadows.c
2>gl_rsurf.c
2>gl_rmisc.c
2>gl_rmain.c
2>gl_particle.c
2>gl_model.c
2>gl_mesh.c
2>gl_light.c
2>gl_image.c
2>gl_font.c
2>gl_draw.c
2>gl_arb_shader.c
2>gl_anim.c
2>Linking...
2>   Creating library D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\ref_gl32.lib and object D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\ref_gl32.exp
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__RegisterClassA@4
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__ChangeDisplaySettingsA@8
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__SetPixelFormat@12
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__LoadCursorA@8
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__AdjustWindowRect@12
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__UpdateWindow@4
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__ChoosePixelFormat@8
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__ShowWindow@8
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__GetDesktopWindow@0
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__ReleaseDC@8
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__CreateWindowExA@48
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__UnregisterClassA@8
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__GetDC@4
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__SetFocus@4
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__GetDeviceCaps@8
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__SetForegroundWindow@4
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__DescribePixelFormat@16
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__SetDeviceGammaRamp@8
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__GetDeviceGammaRamp@8
2>glw_imp.obj : error LNK2001: unresolved external symbol __imp__DestroyWindow@4
2>D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\ref_gl32.dll : fatal error LNK1120: 20 unresolved externals
2>Build log was saved at "file://D:\Games\UFOAIRC3\trunk\src\Release\obj\Win32\BuildLog.htm"
2>ref_gl - 21 error(s), 0 warning(s)
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Title: Building UFO:AI in Win XP
Post by: BeBu on July 30, 2006, 08:38:48 am
you need to add some libs to the linker:

gdi32, user32 and kernel32.

to do this right click on ref_gl and choose properties. in the new windsoe linker, then input, then additional dependencies and add those to the end:

gdi32 user32 kernel32
Title: Building UFO:AI in Win XP
Post by: noob on July 30, 2006, 03:24:23 pm
ok it helps with ref_gl
now i tried the same with ufo.exe...

log:
3>Compiling resources...
3>Linking...
3>cl_campaign.obj : error LNK2001: unresolved external symbol _CL_PopupInit
3>cl_campaign.obj : error LNK2001: unresolved external symbol _CL_PopupNotifyMIssionRemoved
3>cl_map.obj : error LNK2001: unresolved external symbol _CL_DisplayPopupAircraft
3>cl_ufo.obj : error LNK2001: unresolved external symbol _CL_PopupNotifyUfoRemoved
3>sys_win.obj : error LNK2001: unresolved external symbol __imp__GetUserNameA@8

and the second question: have you got a problem inlast revisions like you cant create base and change speed time?
Title: Building UFO:AI in Win XP
Post by: Mattn on July 30, 2006, 05:28:34 pm
Popup stuff is in the new file clients/cl_popup.c which is currently not in the vc project file (nor in the dev-cpp)
Title: Building UFO:AI in Win XP
Post by: noob on July 30, 2006, 07:15:42 pm
ok, i added it now only one error:

Code: [Select]
3>Compiling resources...
3>Linking...
3>sys_win.obj : error LNK2001: unresolved external symbol __imp__GetUserNameA@8
3>D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\ufo32.exe : fatal error LNK1120: 1 unresolved externals
3>Build log was saved at "file://D:\Games\UFOAIRC3\trunk\src\Release\obj\Win32\BuildLog.htm"
3>ufo - 2 error(s), 0 warning(s)
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========




and some warnings:
Code: [Select]
>Finished generating code
2>libjpeg.lib(jcapimin.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jcapistd.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jcparam.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jcinit.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jcmaster.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jcmarker.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jcmainct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jcprepct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jccoefct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jccolor.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jcsample.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jchuff.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jcphuff.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jcdctmgr.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jfdctfst.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jfdctflt.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jfdctint.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdapimin.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdapistd.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdmaster.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdinput.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdmarker.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdhuff.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdphuff.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdmainct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdcoefct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdpostct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jddctmgr.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jidctfst.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jidctflt.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jidctint.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jidctred.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdsample.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdcolor.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jquant1.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jquant2.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jdmerge.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jcomapi.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jutils.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jerror.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jmemmgr.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>libjpeg.lib(jmemnobs.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '..\ports\win32\libjpeg.lib' or at 'D:\Games\UFOAIRC3\trunk\src\Release\bin\Win32\vc80.pdb'; linking object as if no debug info
2>Embedding manifest...
Title: Building UFO:AI in Win XP
Post by: BeBu on July 31, 2006, 08:55:49 am
GetUserName is defined in advapi32.lib just add to the linker
Title: Building UFO:AI in Win XP
Post by: noob on July 31, 2006, 04:04:31 pm
yey!, its done! thank you very much man...
now its all can be added to wiki  :D
and..... umuhahahahahahaha uhahahah)))) muhahaha))) we done it)))))))
Title: Building UFO:AI in Win XP
Post by: noob on August 04, 2006, 08:31:10 pm
how to add gettext support in VisualStudio?
can you help plz  :)
Title: Building UFO:AI in Win XP
Post by: BeBu on August 05, 2006, 01:15:11 pm
when you use vc8 to compile with gettext it breaks the programm. at least for me. i even tried the original libintl but it didnt solved the problem nevertheless, if you wanna give it a try:

right click ufo in the projects and choose properties.
then c/c++->preprocessor and add to the line preprocessor definitions:

;HAVE_GETTEXT

do this for all other also.

edit: if you have read it before my edit, ignore it. must have been the beer from yesterday
Title: Building UFO:AI in Win XP
Post by: noob on August 06, 2006, 05:36:05 am
Quote
edit: if you have read it before my edit, ignore it. must have been the beer from yesterday

no i dont =)

yeah... the same..
do you know how to compile in dev c++ with warnings? not errors
because it dont want to compile if any warning was found
Title: Building UFO:AI in Win XP
Post by: BeBu on August 06, 2006, 05:25:19 pm
well actually i just treid the dev cpp build, and if i recall right i had not to do anything.

i will try building libintl myself, to see if its some incompatibility, as the error crashes just after loading libiconv.

ill report the results here again
Title: Building UFO:AI in Win XP
Post by: noob on August 07, 2006, 06:10:37 am
wtf after choosing debug dev c++ compils with size 2.6 and no icon and exe is unstable, how to turn off debug in dev c++?
Title: Building UFO:AI in Win XP
Post by: noob on September 19, 2006, 07:59:16 pm
so was bug fixed in visual c++ with gettext?
Title: Building UFO:AI in Win XP
Post by: Mattn on January 20, 2007, 10:29:48 am
i don't think that someone of the active developers own visual studio - if you do please give it a shot and fix it

thanks

best regards
martin
Title: Building UFO:AI in Win XP
Post by: BeBu on January 30, 2007, 10:05:31 am
sry guys had some private problems
am kicking in again, finally have some spare time.
i own the "full" studio 2005 and will try to get gettext running
expect sth at the weekend
Title: Building UFO:AI in Win XP
Post by: Mattn on January 30, 2007, 11:25:46 am
thank you BeBu
Title: Building UFO:AI in Win XP
Post by: BeBu on January 30, 2007, 09:26:58 pm
okay results from today:

i compiled libiconv and gnu gettext with vs 2005, as it is not compatible with older linked versions, and linked against those. Also i had to modify the project settings a bit
result is :

(http://www.solvir.org/startscreen.jpg)

but no reason to celebrate yet. the language is only correct on first start, or when deleting the s_language entry in config.cfg (btw it detects German_Germany.1252, shouldnt that be de_DE?) for the next run.
AND! it crashes when entering tactical mode, so not playable.
i grabbed latest trunk from svn (5958), perhaps that two  bugs are known.
I am to tired to investigate firther now. if someone needs i can post modified sln and vcproj files as well as the two modified lib and dlls.
Title: Building UFO:AI in Win XP
Post by: Mattn on January 31, 2007, 09:35:57 am
yes, please submit a patch - thanks for your work
Title: Building UFO:AI in Win XP
Post by: BeBu on January 31, 2007, 09:57:30 am
i do later that day,

do you want a diff file for the sln file or just all new files.

also as i this libraries are linked against the new runtime i propose setting up extra dirs for these dlls and libs. They will need msvcr8, which ppl with old studio or free toolkit dont have. i simply create vc8 subfolders in the appropiate folders where the current ones lie
Title: Building UFO:AI in Win XP
Post by: Mattn on January 31, 2007, 10:02:24 am
no diff needed - just copy the changed files - that's ok

and yes, subfolder in src/ports/win32/vc8
Title: Building UFO:AI in Win XP
Post by: Mattn on January 31, 2007, 10:03:41 am
if you changed code itself - then of course a diff please
Title: Building UFO:AI in Win XP
Post by: BeBu on January 31, 2007, 12:16:29 pm
btw
if you want me to build the windows release versions of the binaries to distribute next version gimme a shout
Title: Building UFO:AI in Win XP
Post by: BeBu on January 31, 2007, 09:44:50 pm
here is my patch

http://www.solvir.org/ufoai-patch.zip

didnt need to actually modify any sources, but changed folders and stuff in the projects file, so check em with an older studio version.
Title: Building UFO:AI in Win XP
Post by: Mattn on February 01, 2007, 01:08:48 pm
thank you very much - applied to trunk