[opensource-dev] [VWR] Compiled SG 1.4 not starting / .dll file issue

Nicky Perian nickyperian at yahoo.com
Tue May 4 11:04:38 PDT 2010


http://picpaste.com/Libray_files.JPG
http://picpaste.com/Include_Files.JPG
http://picpaste.com/Executable_files_2.JPG
http://picpaste.com/Executable_Files_1.JPG
With patches SNOW-584http://jira.secondlife.com/browse/SNOW-584
and  SNOW-578http://jira.secondlife.com/secure/attachment/37370/SNOW-578_find_vc_dir_express_2.diff
applied and the set up of VC++ Express 2005 Executable, Include, and Library Files set as in images above the SG2 Secondlife.sln built all the way into Setup.exe without errors. The first 3 entries of Executable Files address the finding of redist files.






________________________________
From: Robin Cornelius <robin.cornelius at gmail.com>
To: Jonathan Welch <jhwelch at gmail.com>
Cc: opensource-dev at lists.secondlife.com
Sent: Mon, May 3, 2010 9:27:57 AM
Subject: Re: [opensource-dev] [VWR] Compiled SG 1.4 not starting / .dll file issue

On Sun, May 2, 2010 at 4:41 PM, Jonathan Welch <jhwelch at gmail.com> wrote:
> I've compiled SG 1.4 on Windows XP SP2, first with VC 2005 Express
> Edition and then with SP1 installed.
>
> When I try to start the program, either from a link or from within VC,
> I get an error:
> This application has failed to start because the application
> configuration is incorrect.  Reinstalling the application may fix this problem.

Welcome to winSxS dll hell

>
> None of this has worked.  If anyone has some idea of how to fix this I
> would be very happy to hear of it.  Is there something wrong with a
> manifest file?

yes, quick and simple way, if you are running on your own PC only and
not distributing, delete any *local* copies of msvcrt.dll and its
friend, eg the ones in your build tree.

Delete the .config file too that does binding redirects

and ensure you have the latest version 8.0.50727.4053 of the CRT
installed on your PC, this is ONLY available as a security upgrade
from http://www.microsoft.com/downloads/details.aspx?familyid=766a6af7-ec73-40ff-b072-9112bab119c2&displaylang=en

That does work.

If you need to distribute to others in a setup.exe you really should
send them the redist.exe first and ship your installer without the
mscrt dlls, it is very very wrong to ship winSxS assemblies as private
dlls, and there is even a comment to this effect in the LL python
code. What should happen is the dlls should be registered with the
installer COM system and that worries about the stashing away of these
dlls in to windows\WinSxS\* but the story gets worse here, on XP the
API is not officially documented, the vista documentation appears to
work fine and i've even once crafted an Nullsoft installer to install
these dlls in to the SxS cache, (Windows Installer does this kind of
install with out fuss, as it can already talk to the trusted installer
service), and as of Visual Studio 2010 MS have gone back to the
standard windows\System32\ place to install the C runtimes. ;-/

Fun eh?

Robin
_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20100504/599d5a2a/attachment.htm 


More information about the opensource-dev mailing list