project-navigation
Personal tools

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

BeBu

  • Guest
Building UFO:AI in Win XP
« Reply #15 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

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Building UFO:AI in Win XP
« Reply #16 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

BeBu

  • Guest
Building UFO:AI in Win XP
« Reply #17 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

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Building UFO:AI in Win XP
« Reply #18 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 ==========

BeBu

  • Guest
Building UFO:AI in Win XP
« Reply #19 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

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Building UFO:AI in Win XP
« Reply #20 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?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Building UFO:AI in Win XP
« Reply #21 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)

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Building UFO:AI in Win XP
« Reply #22 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...

BeBu

  • Guest
Building UFO:AI in Win XP
« Reply #23 on: July 31, 2006, 08:55:49 am »
GetUserName is defined in advapi32.lib just add to the linker

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Building UFO:AI in Win XP
« Reply #24 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)))))))

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Building UFO:AI in Win XP
« Reply #25 on: August 04, 2006, 08:31:10 pm »
how to add gettext support in VisualStudio?
can you help plz  :)

BeBu

  • Guest
Building UFO:AI in Win XP
« Reply #26 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

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Building UFO:AI in Win XP
« Reply #27 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

BeBu

  • Guest
Building UFO:AI in Win XP
« Reply #28 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

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Building UFO:AI in Win XP
« Reply #29 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++?