project-navigation
Personal tools

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

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #15 on: September 08, 2008, 11:01:09 pm »
Possibly the installer installs MinGW to a different directory than the one used in the prepackaged version. If it's a different location, replace your previously installed MinGW with the one from the prepackaged version.

Afterthought_btw

  • Guest
Re: Trouble with the installer.nsi script
« Reply #16 on: September 08, 2008, 11:06:13 pm »
Found the problem! I had downloaded the right one, and put in the settings described on the page. BUT[/i] The zip file I downloaded (the one you linked to) had MinGW inside the Codeblocks folder. The paths in the instructions needed MinGW in the development folder. i.e. a level up. So either the zip file needs fixing, with both the MinGW folder and the Codeblocks folder side by side in a folder called development and just extract it to c:, or else the paths need to be fixed in the instructions at

http://ufoai.ninex.info/wiki/index.php/Code::Blocks.

If I'd been a bit cleverer I would have noticed the discrepancy.

Many many thanks for all of your help.

Can I suggest on the wiki page for the compiling of the sourse that you have a 'checklist' of what has to be done, in what order. All the information is there alright, but it isn't obvious which order it is meant to be in. At least for idiots like me! :)

One more thing... LOL I thought that was all, but nope... I've obviously done something else wrong.

Code: [Select]
warning: File: "..\..\..\radiant\*.dll" -> no files found. (C:\Users\Greg\Desktop\Ufo AI\src\ports\windows\installer.nsi:203)
File: "..\..\..\radiant\*.xlink" -> 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 204 -- aborting creation process

Offline TimMayle

  • Rookie
  • ***
  • Posts: 16
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #17 on: September 08, 2008, 11:17:37 pm »
Possibly the installer installs MinGW to a different directory than the one used in the prepackaged version. If it's a different location, replace your previously installed MinGW with the one from the prepackaged version.

You're right. I installed minGW from the installer of the MinGw official web site. I shouldn't.
The C::B packages contains all that is needed.

I moved the MinGW up a level and corrected my C::B paths. Now it's compiling much better.

Hope this thread will help others.

Thanks.

Tim

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #18 on: September 08, 2008, 11:34:58 pm »
Found the problem! I had downloaded the right one, and put in the settings described on the page. BUT[/i] The zip file I downloaded (the one you linked to) had MinGW inside the Codeblocks folder. The paths in the instructions needed MinGW in the development folder. i.e. a level up. So either the zip file needs fixing, with both the MinGW folder and the Codeblocks folder side by side in a folder called development and just extract it to c:, or else the paths need to be fixed in the instructions at

You're right. I'll take care of this.

Quote
One more thing... LOL I thought that was all, but nope... I've obviously done something else wrong.

Code: [Select]
warning: File: "..\..\..\radiant\*.dll" -> no files found. (C:\Users\Greg\Desktop\Ufo AI\src\ports\windows\installer.nsi:203)
File: "..\..\..\radiant\*.xlink" -> 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 204 -- aborting creation process

This was actually an error in the script. I've fixed it. Update it from SVN and try again.

Afterthought_btw

  • Guest
Re: Trouble with the installer.nsi script
« Reply #19 on: September 08, 2008, 11:54:54 pm »
Still got an error:

Code: [Select]
SetOutPath: "$INSTDIR\radiant\docs"
File: "..\..\..\radiant\docs\*.html" -> 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 207 -- aborting creation process

And thanks again for your patience :)

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #20 on: September 09, 2008, 12:12:42 am »
This is sort-of pending. The plan is to extract the mapping instructions from the wiki to html for the manual, but as far as I know there is no established process for this.

For the time being, I have disabled this in the script. Please try again.

Afterthought_btw

  • Guest
Re: Trouble with the installer.nsi script
« Reply #21 on: September 09, 2008, 12:37:45 am »
Still going I'm afraid :(

Code: [Select]
SetOutPath: "$INSTDIR\src\tools\radiant\libs\md5lib"
File: "..\..\tools\radiant\libs\md5lib\*.c" -> 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 333 -- aborting creation process

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #22 on: September 09, 2008, 01:28:49 am »
This is probably because mattn changed stuff around in the radiant source and didn't update the installer. I was afraid that might be the case.

It SHOULD work again now. Does here, at least. It'll complain about the pdf, but that's a /nonfatal, so just ignore it.

Afterthought_btw

  • Guest
Re: Trouble with the installer.nsi script
« Reply #23 on: September 09, 2008, 12:41:38 pm »
Worked fine! :)

Again, thanks!  ;D

Offline TimMayle

  • Rookie
  • ***
  • Posts: 16
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #24 on: September 30, 2008, 09:34:04 pm »
Hi guys,

I finally sorted all my compilation tools and I was able to compile almost entirely the game.

here's the last errors I have
Code: [Select]
2 warnings:
  File: "..\..\..\src\docs\tex\*.pdf" -> no files found. (O:\Eclipse-WS\UFOAI\src\ports\windows\installer.nsi:88)
  File: "..\..\..\radiant\*.dll" -> no files found. (O:\Eclipse-WS\UFOAI\src\ports\windows\installer.nsi:203)
The first is non-fatal, I know. But I'm not sure about the second one.
I compiled all the workspace through CB, compiled the maps (~2hours) the po files and the pk3.

Should I update the CB ? I tried downloading a more recent version, but my downloads gets interrupted.

Thanks for your input about this.

Tim

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Trouble with the installer.nsi script
« Reply #25 on: October 01, 2008, 07:52:28 am »
looks like you just didn't compile radiant

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #26 on: October 01, 2008, 11:10:48 am »
Then it'd error on radiant.exe though.

Offline TimMayle

  • Rookie
  • ***
  • Posts: 16
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #27 on: October 01, 2008, 09:29:53 pm »
Then it'd error on radiant.exe though.

Right, The "radiant.exe" file is there, ~2Mb.

Any idea left ?

Tim

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #28 on: October 01, 2008, 09:44:44 pm »
Does radiant run properly? If it does, then you have nothing to worry about. I'm not sure, but maybe that line can be taken out of the installer script.

Offline TimMayle

  • Rookie
  • ***
  • Posts: 16
    • View Profile
Re: Trouble with the installer.nsi script
« Reply #29 on: October 01, 2008, 10:34:21 pm »
I suppose it works, but I'm not sure.
It tells me that the application can't start because it can't find libgdk_pixbuf.dll.
My opinion is that this error comes from the PATH not containing my GTK installation.
So I suppose my installation works.

Thanks for your support guys.

edit: I installed my version. And it works. Saved games are still compatibles ;D
edit2: Well in fact, I can't enter the crash sites :( I'll wait for a more stable version like Destructavator also said.
« Last Edit: October 01, 2008, 11:17:44 pm by TimMayle »