project-navigation
Personal tools

Author Topic: Trouble with the installer.nsi script  (Read 19315 times)

Afterthought_btw

  • Guest
Trouble with the installer.nsi script
« on: September 08, 2008, 03:36:20 pm »
Hi, I used TortoiseSVN to download the latest 2.3 hoping to be able to help beta test, but when I try to compile the nsis script (/srcports/windows/installer.nsi), I get an error in script on line 93 error message. What have I done wrong/not done? (oh, and I'm running Vista) This is the log:

Code: [Select]
MakeNSIS v2.39 - Copyright 1995-2008 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.

Processing config:
Processing plugin dlls: "C:\Program Files\NSIS\Plugins\*.dll"
 - AdvSplash::show
 - Banner::destroy
 - Banner::getWindow
 - Banner::show
 - BgImage::AddImage
 - BgImage::AddText
 - BgImage::Clear
 - BgImage::Destroy
 - BgImage::Redraw
 - BgImage::SetBg
 - BgImage::SetReturn
 - BgImage::Sound
 - Dialer::AttemptConnect
 - Dialer::AutodialHangup
 - Dialer::AutodialOnline
 - Dialer::AutodialUnattended
 - Dialer::GetConnectedState
 - InstallOptions::dialog
 - InstallOptions::initDialog
 - InstallOptions::show
 - LangDLL::LangDialog
 - Math::Script
 - NSISdl::download
 - NSISdl::download_quiet
 - Splash::show
 - StartMenu::Init
 - StartMenu::Select
 - StartMenu::Show
 - System::Alloc
 - System::Call
 - System::Copy
 - System::Free
 - System::Get
 - System::Int64Op
 - System::Store
 - TypeLib::GetLibVersion
 - TypeLib::Register
 - TypeLib::UnRegister
 - UserInfo::GetAccountType
 - UserInfo::GetName
 - UserInfo::GetOriginalAccountType
 - VPatch::GetFileCRC32
 - VPatch::GetFileMD5
 - VPatch::vpatchfile
 - nsDialogs::Create
 - nsDialogs::CreateControl
 - nsDialogs::CreateItem
 - nsDialogs::GetUserData
 - nsDialogs::OnBack
 - nsDialogs::OnChange
 - nsDialogs::OnClick
 - nsDialogs::OnNotify
 - nsDialogs::SelectFileDialog
 - nsDialogs::SelectFolderDialog
 - nsDialogs::SetRTL
 - nsDialogs::SetUserData
 - nsDialogs::Show
 - nsExec::Exec
 - nsExec::ExecToLog
 - nsExec::ExecToStack

!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "C:\Users\Greg\Desktop\Ufo AI\src\ports\windows"

Processing script file: "C:\Users\Greg\Desktop\Ufo AI\src\ports\windows\installer.nsi"
!define: "PRODUCT_NAME"="UFO:Alien Invasion"
!define: "SHORT_PRODUCT_NAME"="UFO:AI"
!define: "PRODUCT_NAME_DEDICATED"="UFO:Alien Invasion Dedicated Server"
!define: "PRODUCT_VERSION"="2.3-dev"
!define: "PRODUCT_PUBLISHER"="UFO:AI Team"
!define: "PRODUCT_WEB_SITE"="http://ufoai.sf.net"
!define: "PRODUCT_DIR_REGKEY"="Software\UFOAI\ufo.exe"
!define: "PRODUCT_UNINST_KEY"="Software\Microsoft\Windows\CurrentVersion\Uninstall\UFO:Alien Invasion"
!define: "PRODUCT_UNINST_ROOT_KEY"="HKLM"
SetCompressor: lzma
!include: "C:\Program Files\NSIS\Include\MUI.nsh"
!include: "C:\Program Files\NSIS\Contrib\Modern UI\System.nsh"
NSIS Modern User Interface version 1.8 - © 2002-2008 Joost Verburg (C:\Program Files\NSIS\Contrib\Modern UI\System.nsh:8)
!define: "MUI_INCLUDED"=""
!define: "MUI_SYSVERSION"="1.8"
!define: "MUI_VERBOSE"="3"
!include: closed: "C:\Program Files\NSIS\Contrib\Modern UI\System.nsh"
!include: closed: "C:\Program Files\NSIS\Include\MUI.nsh"
!include: "C:\Program Files\NSIS\Include\LogicLib.nsh"
!include: closed: "C:\Program Files\NSIS\Include\LogicLib.nsh"
ShowInstDetails: nevershow
ShowUninstDetails: nevershow
!define: "MUI_ABORTWARNING"=""
!define: "MUI_ICON"="..\..\..\build\projects\ufo.ico"
!define: "MUI_UNICON"="..\..\..\build\projects\ufo.ico"
!define: "MUI_LANGDLL_REGISTRY_ROOT"="HKLM"
!define: "MUI_LANGDLL_REGISTRY_KEY"="Software\Microsoft\Windows\CurrentVersion\Uninstall\UFO:Alien Invasion"
!define: "MUI_LANGDLL_REGISTRY_VALUENAME"="NSIS:Language"
!define: "MUI_WELCOMEFINISHPAGE_BITMAP"="..\..\..\build\installer.bmp"
Var: "GAMEFLAGS"
Var: "MAPFLAGS"
Var: "GAMETEST"
Var: "MAPTEST"
Var: "GAMEICONFLAGS"
Var: "MAPICONFLAGS"
!insertmacro: MUI_PAGE_WELCOME
!insertmacro: end of MUI_PAGE_WELCOME
!define: "MUI_LICENSEPAGE_CHECKBOX"=""
!insertmacro: MUI_PAGE_LICENSE
!insertmacro: end of MUI_PAGE_LICENSE
!define: "MUI_COMPONENTSPAGE_SMALLDESC"=""
!insertmacro: MUI_PAGE_COMPONENTS
!insertmacro: end of MUI_PAGE_COMPONENTS
!define: "MUI_DIRECTORYPAGE_VERIFYONLEAVE"=""
!define: "MUI_PAGE_CUSTOMFUNCTION_LEAVE"="dirLeave"
!insertmacro: MUI_PAGE_DIRECTORY
!insertmacro: end of MUI_PAGE_DIRECTORY
!insertmacro: MUI_PAGE_INSTFILES
!insertmacro: end of MUI_PAGE_INSTFILES
!insertmacro: MUI_PAGE_FINISH
!insertmacro: end of MUI_PAGE_FINISH
!insertmacro: MUI_UNPAGE_INSTFILES
!insertmacro: end of MUI_UNPAGE_INSTFILES
!insertmacro: MUI_LANGUAGE
!insertmacro: end of MUI_LANGUAGE
!insertmacro: MUI_LANGUAGE
!insertmacro: end of MUI_LANGUAGE
!insertmacro: MUI_RESERVEFILE_INSTALLOPTIONS
!insertmacro: end of MUI_RESERVEFILE_INSTALLOPTIONS
Name: "UFO:AI 2.3-dev"
OutFile: "ufoai-2.3-dev-win32.exe"
InstallDir: "$PROGRAMFILES\UFOAI-2.3-dev"
InstallRegKey: "HKLM\Software\UFOAI\ufo.exe\"
ShowInstDetails: show
ShowUnInstDetails: show
Function: ".onInit"
!insertmacro: MUI_LANGDLL_DISPLAY
!insertmacro: end of MUI_LANGDLL_DISPLAY
FunctionEnd
Function: ".onInstSuccess"
MessageBox: 0: "If you want to play multiplayer games, open the TCP port 27910 in your firewall."
FunctionEnd
SectionGroup Game ->(SECGROUP01)
Section: "Game Files" ->(SEC01)
SetOverwrite: ifnewer
SetOutPath: "$INSTDIR"
warning: File: "..\..\..\src\docs\tex\*.pdf" -> no files found. (C:\Users\Greg\Desktop\Ufo AI\src\ports\windows\installer.nsi:88)
File: "SDL.dll" [compress] 124814/320512 bytes
File: "SDL_mixer.dll" [compress] 92347/312320 bytes
File: "SDL_ttf.dll" [compress] 157693/331776 bytes
File: "iconv.dll" [compress] 469668/892928 bytes
File: "intl.dll" [compress] 16656/45056 bytes
File: "jpeg62.dll" [compress] 62034/153966 bytes
File: "libcurl-4.dll" [compress] 93365/182272 bytes
File: "libogg-0.dll" [compress] 7610/15872 bytes
File: "libpng13.dll" [compress] 80281/203264 bytes
File: "libvorbis-0.dll" [compress] 76817/157696 bytes
File: "libvorbisfile-3.dll" [compress] 13983/28672 bytes
File: "smpeg.dll" [compress] 69969/235520 bytes
File: "zlib1.dll" [compress] 30599/59904 bytes
File: "ufo2map.exe" [compress] 61015/188416 bytes
SetOutPath: "$INSTDIR\base"
File: "game.dll" [compress] 53112/157184 bytes
File: "..\..\..\base\*.pk3" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
   /oname=outfile one_file_only)
Error in script "C:\Users\Greg\Desktop\Ufo AI\src\ports\windows\installer.nsi" on line 93 -- aborting creation process

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #1 on: September 08, 2008, 04:35:49 pm »
You must build the pk3 archives first. You can do this by running base\archives.bat. Note that you will need the 7-zip command line utility for this; see the bat file itself for more info.
« Last Edit: September 08, 2008, 10:09:30 pm by BTAxis »

Afterthought_btw

  • Guest
Re: Trouble with the installer.nsi script
« Reply #2 on: September 08, 2008, 06:33:35 pm »
Thanks.
I got the impression from the way things were set up on the wiki instructions that the pk3 files had to be created after the nsis installer, because the link to the windows compiling the source page is above where it says to create the pk3 files!

I guess I'm just thick, if I had been thinking straight it would have been obvious, but there we go.

Anyway! I've done that, and now I'm getting an error on line 96, which looks like it is to do with the .mo files. Does this mean I have to compile all the languages as opposed to just english?

Code: [Select]
SetOutPath: "$INSTDIR\base\i18n"
SetOutPath: "$INSTDIR\base\i18n\cs\LC_MESSAGES"
File: "..\..\..\base\i18n\cs\LC_MESSAGES\*.mo" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
   /oname=outfile one_file_only)
Error in script "C:\Users\Greg\Desktop\Ufo AI\src\ports\windows\installer.nsi" on line 96 -- aborting creation process

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #3 on: September 08, 2008, 07:06:29 pm »
Yeah, that's right. You can also put a /nonfatal for that line in the nsis script, if your aim is to only package English.

Afterthought_btw

  • Guest
Re: Trouble with the installer.nsi script
« Reply #4 on: September 08, 2008, 08:11:46 pm »
Right - I imagine I'm going to start to irritate you soon... :P I'm now getting errors about no files being found in radiant/radiant.exe. I had a quick search on wiki, and found a page which tells you what to do with GTKRadiant through SVN on Debian/Ubuntu, but not Windows.

http://ufoai.ninex.info/wiki/index.php/Mapping/GTKRadiant_1.5_Installation

Do I need Radiant, and if not, how do I alter the installer script so it doesn't complain? (I'd probably rather have it, I've enjoyed trying my hand at mapmaking in the past. Whether I'll have time or not now, I don't know, but I'd like the option if possible)

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #5 on: September 08, 2008, 08:26:39 pm »
Radiant is part of the SVN trunk these days. If you checked out trunk, you should have the sources for it. They can be compiled with Code::Blocks (actually MinGW, C::B is just an IDE), same as the game.

You could edit the NSI script to exclude radiant, but it's probably a good idea to include it.

Afterthought_btw

  • Guest
Re: Trouble with the installer.nsi script
« Reply #6 on: September 08, 2008, 08:42:30 pm »
Yup - already tried that actually and it compiled fine, but I still get the same error.

Code: [Select]
SetOutPath: "$INSTDIR\radiant"
File: "jpeg62.dll" [compress] 0/153966 bytes
File: "..\..\..\radiant\radiant.exe" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
   /oname=outfile one_file_only)
Error in script "C:\Users\Greg\Desktop\Ufo AI\src\ports\windows\installer.nsi" on line 202 -- aborting creation process


Offline TimMayle

  • Rookie
  • ***
  • Posts: 16
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #7 on: September 08, 2008, 09:07:47 pm »
Hi guys,

Hum ...and any advice about this error  while running the nsi script ? :
Code: [Select]
File: "zlib1.dll" [compress] 30599/59904 bytes
File: "..\..\..\*.exe" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
   /oname=outfile one_file_only)
Error in script "O:\Eclipse-WS\UFOAI\src\ports\windows\installer.nsi" on line 90 -- aborting creation process

I've a fresh SVN update, and ran archives.bat already, but I can't figure yet how to have this exe files.

Thanks.

Tim

Afterthought_btw

  • Guest
Re: Trouble with the installer.nsi script
« Reply #8 on: September 08, 2008, 09:27:47 pm »
Are you sure you've run archives.bat? I was fooled by Vistas habit of closing windows originally, and just assumed it had worked fine, but actually it just kept giving errors I couldn't see! :) I hadn't got 7-zip installed, and if you don't, then Archives hasn't run properly.

Go to http://ufoai.ninex.info/wiki/index.php/Code::Blocks, and do what it tells you to do there. This will mean you can compile the game (and I think will solve that error)
You have to compile the maps. C:\...\Ufo AI\contrib\scripts\compile_maps.bat
and compile the language files. Go here: http://ufoai.ninex.info/wiki/index.php/Po
And then run archives.bat.

And I think that's about as far as I have got... =/

But if this doesn't work, ignore me... ;) I've been trying to get through this myself without bothering anyone, and can't remember everything I have done, or haven't! :)

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #9 on: September 08, 2008, 09:43:32 pm »
Yup - already tried that actually and it compiled fine, but I still get the same error.

Are you sure? Do you have that radiant.exe file? If not, chances are compilation wasn't successful. Are you (re)building the radiant project in C::B? If so, check the output - maybe there's a problem linking the binary. You tend not to see that in the error log.

Afterthought_btw

  • Guest
Re: Trouble with the installer.nsi script
« Reply #10 on: September 08, 2008, 09:55:23 pm »
Right - I can't find the radiant.exe file - I ran a search for it in case it was somewhere I didn't expect, and it didn't show up.

This is the build log

Code: [Select]

-------------- Build: windows in game ---------------

Compiling: ..\..\src\game\g_ai.c
Compiling: ..\..\src\game\g_client.c
Compiling: ..\..\src\game\g_cmds.c
Compiling: ..\..\src\game\g_combat.c
Compiling: ..\..\src\game\g_func.c
Compiling: ..\..\src\game\g_main.c
Compiling: ..\..\src\game\g_phys.c
Compiling: ..\..\src\game\g_reaction.c
Compiling: ..\..\src\game\g_spawn.c
Compiling: ..\..\src\game\g_svcmds.c
Compiling: ..\..\src\game\g_trigger.c
Compiling: ..\..\src\game\g_utils.c
Compiling: ..\..\src\game\inv_shared.c
Compiling: ..\..\src\game\q_shared.c
Compiling: ..\..\src\shared\infostring.c
Compiling: ..\..\src\shared\mathlib.c
Compiling: ..\..\src\shared\shared.c
Linking dynamic library: ..\..\base\game.dll
Output size is 154.00 KB
Process terminated with status 0 (0 minutes, 4 seconds)
0 errors, 0 warnings

Build messages gave 0 errors, 0 warnings, none of the other logs windows show anything.

is there an output file which is written to? If so, where is it, what is it called? Nothing immediately shouts out at me in the directories either in the Codeblocks folder, or the UFO AI project folder.

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #11 on: September 08, 2008, 10:05:36 pm »
-------------- Build: windows in game ---------------

This is output from the game project only. You won't compile radiant with this - the game project is for game.dll. You should compile all projects. You can do this by selecting "build workspace" from the build menu.

Afterthought_btw

  • Guest
Re: Trouble with the installer.nsi script
« Reply #12 on: September 08, 2008, 10:18:33 pm »
Ah! I see where I went wrong - I thought if I selected the workspace and clicked compile it would compile the workspace. Either I didn't do that properly, or it doesn't work like that! :) When I couldn't find radiant I just tried to compile it or its own.

Whoa! Did that, and Windows was forced to shut it down. (DEP) I saw a number of errors, including a missed semi-colon or two. I think you might want to have a look at that code!  :-\ Are there any logs I can find to help? Re-updated the folder and tried again, and it didn't crash this time but came up with tonnes of errors. Well, 50 errors and 26 warnings and it said there were more errors not being shown.

Here's the build log:

Code: [Select]

-------------- Build: windows in game ---------------

Target is up to date.

-------------- Build: windows in ufo2map ---------------

Target is up to date.

-------------- Build: windows in ufo_ded ---------------

Target is up to date.

-------------- Build: windows in ufo ---------------

Compiling: ..\..\src\client\cl_actor.c
Compiling: ..\..\src\client\cl_aircraft.c
Compiling: ..\..\src\client\cl_airfight.c
In file included from C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:32,
                 from C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:25:
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:33:17: SDL.h: No such file or directory
In file included from C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:32,
                 from C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:25:
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:187: error: syntax error before "SDL_Thread"
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:187: warning: no semicolon at end of struct or union
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:189: error: syntax error before '}' token
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:189: warning: type defaults to `int' in declaration of `renderer_threadstate_t'
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:189: warning: data definition has no type or storage class
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:191: error: syntax error before "r_threadstate"
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:191: warning: type defaults to `int' in declaration of `r_threadstate'
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:191: warning: data definition has no type or storage class
In file included from C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:35,
                 from C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:25:
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:32:23: SDL_mixer.h: No such file or directory
In file included from C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:35,
                 from C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:25:
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:58: error: syntax error before "Mix_Chunk"
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:58: warning: no semicolon at end of struct or union
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:62: error: syntax error before '}' token
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:62: warning: type defaults to `int' in declaration of `sfx_t'
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:62: warning: data definition has no type or storage class
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:66: error: syntax error before "Mix_Music"
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:66: warning: no semicolon at end of struct or union
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:67: warning: type defaults to `int' in declaration of `musicSrc'
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:67: warning: data definition has no type or storage class
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:69: error: syntax error before '}' token
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:69: warning: type defaults to `int' in declaration of `music_t'
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:69: warning: data definition has no type or storage class
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:74: error: syntax error before '*' token
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:76: error: syntax error before "sfx_t"
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:78: error: syntax error before '*' token
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:78: warning: type defaults to `int' in declaration of `S_RegisterSound'
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:78: warning: data definition has no type or storage class
In file included from C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:25:
C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:201: error: syntax error before "sfx_t"
C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:201: warning: no semicolon at end of struct or union
C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:202: warning: type defaults to `int' in declaration of `client_static_t'
C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:202: warning: data definition has no type or storage class
C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:204: error: syntax error before "cls"
C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:204: warning: type defaults to `int' in declaration of `cls'
C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:204: warning: data definition has no type or storage class
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `MSG_Write_PA':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:136: error: request for member `netStream' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_GetActorChr':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:534: error: request for member `missionaircraft' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_SetReactionFiremode':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:903: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_DisplayFiremodes_f':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:1529: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_ActorUpdateCVars':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:2130: error: request for member `state' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_AddActorToTeamList':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:2478: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_ActorSelect':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:2553: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_CheckAction':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:2832: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_ActorDoShoot':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:3665: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_ActorDoThrow':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:3747: error: `sfx' undeclared (first use in this function)
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:3747: error: (Each undeclared identifier is reported only once
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:3747: error: for each function it appears in.)
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_ActorStartShoot':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:3783: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:3819: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_ActorDie':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:3883: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:3898: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_NextRound_f':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4097: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4103: error: request for member `netStream' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_DoEndRound':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4120: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4131: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_AddActor':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4363: error: request for member `model_weapons' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4378: error: request for member `model_weapons' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4394: error: request for member `realtime' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4430: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_AddUGV':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4456: error: request for member `model_weapons' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4469: error: request for member `model_weapons' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4498: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_AddTargetingBox':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:4918: error: request for member `team' in something not a structure or union
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c: In function `CL_PlayActorSound':
C:\Users\Greg\Desktop\Ufo AI\src\client\cl_actor.c:5187: error: `sfx' undeclared (first use in this function)
Process terminated with status 1 (0 minutes, 3 seconds)
43 errors, 20 warnings
 
In file included from C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:32,
                 from C:\Users\Greg\Desktop\Ufo AI\src\client\cl_aircraft.c:30:
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:33:17: SDL.h: No such file or directory
In file included from C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:32,
                 from C:\Users\Greg\Desktop\Ufo AI\src\client\cl_aircraft.c:30:
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:187: error: syntax error before "SDL_Thread"
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:187: warning: no semicolon at end of struct or union
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:189: error: syntax error before '}' token
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:189: warning: type defaults to `int' in declaration of `renderer_threadstate_t'
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:189: warning: data definition has no type or storage class
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:191: error: syntax error before "r_threadstate"
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:191: warning: type defaults to `int' in declaration of `r_threadstate'
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_renderer.h:191: warning: data definition has no type or storage class
In file included from C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:35,
                 from C:\Users\Greg\Desktop\Ufo AI\src\client\cl_aircraft.c:30:
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:32:23: SDL_mixer.h: No such file or directory
In file included from C:\Users\Greg\Desktop\Ufo AI\src\client\/client.h:35,
                 from C:\Users\Greg\Desktop\Ufo AI\src\client\cl_aircraft.c:30:
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:58: error: syntax error before "Mix_Chunk"
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:58: warning: no semicolon at end of struct or union
C:\Users\Greg\Desktop\Ufo AI\src\client\/cl_sound.h:62: error: syntax error before '}' token
Process terminated with status 1 (0 minutes, 4 seconds)
50 errors, 26 warnings
 
Process terminated with status 1 (0 minutes, 5 seconds)
50 errors, 26 warnings

(edit) although it looks to me that the problem might be because the SDL.h file doesn't seem to be there. Not knowing what's in it, I dunno if it would fix it or not! :)
« Last Edit: September 08, 2008, 10:32:06 pm by Afterthought_btw »

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #13 on: September 08, 2008, 10:30:12 pm »
The errors you are getting stem from missing header files. This usually means you don't have all the required libraries. Did you download the prepackaged C::B? Our version includes the libraries you need for UFO:AI. If you got it elsewhere, update your C::B with this one:
http://szklo.eu.org/~mattn/Codeblocks.zip
If that is indeed the version you are using, re-check your compiler settings and paths. You may have forgotten to point to a directory somewhere.

Offline TimMayle

  • Rookie
  • ***
  • Posts: 16
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #14 on: September 08, 2008, 10:53:46 pm »
Are you sure you've run archives.bat? I was fooled by Vistas habit of closing windows originally, and just assumed it had worked fine, but actually it just kept giving errors I couldn't see! :) I hadn't got 7-zip installed, and if you don't, then Archives hasn't run properly.

Go to http://ufoai.ninex.info/wiki/index.php/Code::Blocks, and do what it tells you to do there. This will mean you can compile the game (and I think will solve that error)
You have to compile the maps. C:\...\Ufo AI\contrib\scripts\compile_maps.bat
and compile the language files. Go here: http://ufoai.ninex.info/wiki/index.php/Po
And then run archives.bat.

And I think that's about as far as I have got... =/

But if this doesn't work, ignore me... ;) I've been trying to get through this myself without bothering anyone, and can't remember everything I have done, or haven't! :)

Thanks for your help,

I was sure archives.bat was running fine as I did not double-click on the file. I ran it trough a command window.
I had to copy and rename the 7z.exe file to 7za.exe, but then "archives.bat" was working well.

I then followed your C::B link and ran into the error described here http://ufoai.ninex.info/forum/index.php?topic=2874.0.

Then I'm not sure about what to exactly do with it. I copied the content of the updated Codeblocks directory into where I installed the original installer from the C::B web site. But nothing changed. The compiler still stop on the glist.h include.

I'm also not sure what to do with the MinGw files.

I'm a bit lost about the way information about how to compile are spread into the web site.

Thanks for your "light" on this :)

Tim