project-navigation
Personal tools

Author Topic: [solved] Compile errors: Files missing in current SVN?  (Read 5653 times)

v29a

  • Guest
[solved] Compile errors: Files missing in current SVN?
« on: July 23, 2006, 10:19:22 pm »
Hi there.

i tried to compile ufo ai but only got missing file errors during the process. (q_shared.h, q_platform.h, cl_cin.c, snd_local.h)
maybe i need to download the q2 source first (where?).
if this should not be the case it would be nice if someone updated the svn to a compilable version.

thanks for every reply.

edit:
i tried to compile both svn branches: trunk and ufoai_2
trunk produces even more errors

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
[solved] Compile errors: Files missing in current SVN?
« Reply #1 on: July 23, 2006, 10:36:43 pm »
which compiler? which os?

v29a

  • Guest
[solved] Compile errors: Files missing in current SVN?
« Reply #2 on: July 23, 2006, 10:45:27 pm »
ms vc 7
win32

update:
i tried compiling following the steps in the wiki using devc++.
this produces
 <mypath>\ufoai\src\client\cl_campaign.c In function `CL_GameSave':
1586 <mypath>\ufoai\src\client\cl_campaign.c [Warning] unused variable `message'

when i try to build ufo.dev

Galsiah

  • Guest
[solved] Compile errors: Files missing in current SVN?
« Reply #3 on: July 24, 2006, 01:01:15 am »
Sure, but that's only a warning, not an error. You can build successfully with that warning.

I just looked for the cause. "message" is unused at present because the section of code using it is preprocessed out, like this:
#if 1
;temporary stuff
#else
;message variable used here
#endif

Therefore, it's to be expected that the compiler complains about the unused variable. There's no real sense in fixing it until that function is changed again.

You could always "preprocess out" the declaration to avoid the warning, like this:
#if 0
   message_t *message;
#endif

It's not going to make any difference either way though.

v29a

  • Guest
[solved] Compile errors: Files missing in current SVN?
« Reply #4 on: July 24, 2006, 09:40:14 am »
ok sorry ...

in the meanwhile i found a path error in src/ufo.dev:
line 10 should be:
Code: [Select]
Linker=-lvorbisfile_@@_-lvorbis_@@_-logg_@@_-lwinmm _@@_-lwsock32 _@@_-lkernel32 _@@_-luser32 _@@_-lgdi32 _@@_-lgmon_@@_ports/win32/intl.lib _@@_-lSDL_@@_-lSDL_ttf_@@_ports/win32/libjpeg.lib_@@_

the current svn revision misses the "ports" directory

next error:
Code: [Select]
client/cl_basemanagement.o(.text+0x2e9e):cl_basemanagement.c: undefined reference to `CL_AircraftSelect'
client/cl_campaign.o(.text+0xa39):cl_campaign.c: undefined reference to `CL_NewAircraft'
client/cl_campaign.o(.text+0x154e):cl_campaign.c: undefined reference to `CL_AircraftSelect'
client/cl_campaign.o(.text+0x17ee):cl_campaign.c: undefined reference to `CL_AircraftSelect'
client/cl_campaign.o(.text+0x18a1):cl_campaign.c: undefined reference to `CL_AircraftStatusToName'
client/cl_campaign.o(.text+0x19c9):cl_campaign.c: undefined reference to `numAircraft'
client/cl_campaign.o(.text+0x19e8):cl_campaign.c: undefined reference to `aircraft'
client/cl_campaign.o(.text+0x1aba):cl_campaign.c: undefined reference to `aircraft'

client/cl_campaign.o(.text+0x2230):cl_campaign.c: undefined reference to `CL_CampaignRunAircraft'
client/cl_campaign.o(.text+0x25d4):cl_campaign.c: undefined reference to `numAircraft'
client/cl_campaign.o(.text+0x25f3):cl_campaign.c: undefined reference to `aircraft'

client/cl_campaign.o(.text+0x260d):cl_campaign.c: undefined reference to `aircraft'
client/cl_campaign.o(.text+0x3b36):cl_campaign.c: undefined reference to `CL_CheckAircraft'
client/cl_campaign.o(.text+0x4cad):cl_campaign.c: undefined reference to `CL_AircraftReturnToBase_f'
client/cl_campaign.o(.text+0x5863):cl_campaign.c: undefined reference to `numAircraft'

client/cl_campaign.o(.text+0x5886):cl_campaign.c: undefined reference to `numAircraft'
client/cl_campaign.o(.text+0x5891):cl_campaign.c: undefined reference to `aircraft'
client/cl_campaign.o(.text+0x589a):cl_campaign.c: undefined reference to `numAircraft'
client/cl_campaign.o(.text+0x58d0):cl_campaign.c: undefined reference to `numAircraft'
client/cl_campaign.o(.text+0x5e4d):cl_campaign.c: undefined reference to `CL_AircraftInit'
client/cl_campaign.o(.data+0x484):cl_campaign.c: undefined reference to `CL_AircraftStart_f'
client/cl_campaign.o(.data+0x48c):cl_campaign.c: undefined reference to `CL_ListAircraft_f'
client/cl_campaign.o(.data+0x494):cl_campaign.c: undefined reference to `CL_AircraftSelect'
client/cl_campaign.o(.data+0x49c):cl_campaign.c: undefined reference to `CL_AircraftInit'
client/cl_campaign.o(.data+0x4a4):cl_campaign.c: undefined reference to `CL_AircraftEquipmenuMenuInit_f'
client/cl_campaign.o(.data+0x4ac):cl_campaign.c: undefined reference to `CL_AircraftEquipmenuMenuWeaponsClick_f'
client/cl_campaign.o(.data+0x4b4):cl_campaign.c: undefined reference to `CL_AircraftEquipmenuMenuShieldsClick_f'
client/cl_campaign.o(.data+0x4bc):cl_campaign.c: undefined reference to `MN_NextAircraft_f'
client/cl_campaign.o(.data+0x4c4):cl_campaign.c: undefined reference to `MN_PrevAircraft_f'
client/cl_campaign.o(.data+0x4cc):cl_campaign.c: undefined reference to `CL_NewAircraft_f'

client/cl_campaign.o(.data+0x4d4):cl_campaign.c: undefined reference to `CL_AircraftReturnToBase_f'
client/cl_research.o(.text+0x873):cl_research.c: undefined reference to `numAircraft'
client/cl_research.o(.text+0x887):cl_research.c: undefined reference to `aircraft'

client/cl_team.o(.text+0x237d):cl_team.c: undefined reference to `CL_NewAircraft'
client/cl_ufopedia.o(.text+0xa89):cl_ufopedia.c: undefined reference to `CL_GetAircraft'
client/cl_market.o(.text+0x4a3):cl_market.c: undefined reference to `aircraft'
client/cl_market.o(.text+0x4ac):cl_market.c: undefined reference to `numAircraft'

client/cl_market.o(.text+0xb1a):cl_market.c: undefined reference to `numAircraft'
client/cl_market.o(.text+0xb84):cl_market.c: undefined reference to `aircraft'
collect2: ld returned 1 exit status

make.exe: *** [../ufo.exe] Error 1

Execution terminated


thanks for your help ...

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
[solved] Compile errors: Files missing in current SVN?
« Reply #5 on: July 24, 2006, 09:44:46 am »
sorry, but the current svn don't miss the ports directory.

and i've fixed the dev-cpp files a few minutes ago - please give it a try and report back.

v29a

  • Guest
[solved] Compile errors: Files missing in current SVN?
« Reply #6 on: July 24, 2006, 09:48:29 am »
sorry, i didnt mean the ports dir misses in svn but "ports" misses twice in the line posted above

currently it is
Code: [Select]
Linker=-lvorbisfile_@@_-lvorbis_@@_-logg_@@_-lwinmm _@@_-lwsock32 _@@_-lkernel32 _@@_-luser32 _@@_-lgdi32 _@@_-lgmon_@@_win32/intl.lib _@@_-lSDL_@@_-lSDL_ttf_@@_win32/libjpeg.lib_@@_

and it probably should be
Code: [Select]
Linker=-lvorbisfile_@@_-lvorbis_@@_-logg_@@_-lwinmm _@@_-lwsock32 _@@_-lkernel32 _@@_-luser32 _@@_-lgdi32 _@@_-lgmon_@@_ports/win32/intl.lib _@@_-lSDL_@@_-lSDL_ttf_@@_ports/win32/libjpeg.lib_@@_


compiling seems to work now :)