boost-build with msvc90 on Cygwin problems

View: New views
4 Messages — Rating Filter:   Alert me  

boost-build with msvc90 on Cygwin problems

by kokot-san :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

I build my program using a nightly build of boost-build with msvc90 on Cygwin. When I run my executable on a computer without Visual Studio installed, I get the following error:

Activation context generation failed for "U:\Filetemp\cap2net.exe". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.

Now it seems that it is looking for some VisualStudio DLL or something. Is there any way I can get rid of this problem, for example by statically compiling against the VS DLLs? How can I configure boost-build to do so?

Also, DebugCRT sounds like a debug version, even though I build a release version. Or maybe I am wrong?

Thank you,
Andrej



     
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: boost-build with msvc90 on Cygwin problems

by Vladimir Prus-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Andrej van der Zee wrote:

>
> Hi,
>
> I build my program using a nightly build of boost-build with msvc90 on Cygwin. When I run my
> executable on a computer without Visual Studio installed, I get the following error:
>
> Activation context generation failed for "U:\Filetemp\cap2net.exe". Dependent Assembly
>
Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"
> could not be found. Please use sxstrace.exe for detailed diagnosis.
>
> Now it seems that it is looking for some VisualStudio DLL or something. Is there any way I can get
> rid of this problem, for example by statically compiling against the VS DLLs? How can I configure
> boost-build to do so?

You should either:
1. Redistribute necessary libraries. However, I don't think debug runtime can be redistributed, so
you'd have to build with variant=release

2. Link statically. link=static runtime-link=static will probably work.

- Volodya


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Parent Message unknown Re: boost-build with msvc90 on Cygwin problems

by kokot-san :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

Thanks for your reply.

>
> 2. Link statically. link=static runtime-link=static will
> probably work.
>

Unfortunately this is the only option for me, because the resulting executable will be executed on production machines maintained by sysads who do not like to install stuff on their production machines.

So I tried to compile with link=static and runtime-link=static, but still it does not run. Below the output of the linker. It looks okay to me, but maybe I overlooked something easy (hopefully). As I understood from Google, in libboost_regex-vc90-mt-s-1_38.lib lib stands for static linking and the -s- for runtime static linking. What am I doing wrong?

Thank you,
Andrej

$ bjam release -d2
...patience...
...patience...
...found 1353 targets...
...updating 1 target...

file bin\msvc-9.0\release\link-static\runtime-link-static\cap2ping.exe.rsp

"bin/msvc-9.0/release/link-static/runtime-link-static/main.obj"
   
"libboost_regex-vc90-mt-s-1_38.lib"
 
"libboost_serialization-vc90-mt-s-1_38.lib"
 
"libboost_date_time-vc90-mt-s-1_38.lib"
 
msvc.link bin/msvc-9.0/release/link-static/runtime-link-static/cap2ping.exe

        cmd.exe /S /C call "c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 ">nul" "&&" link /NOLOGO /INCREMENTAL:NO /subsystem:console /out:"bin\msvc-9.0\release\link-static\runtime-link-static\cap2ping.exe" /LIBPATH:"C:\cygwin\usr\local\lib"  @"bin\msvc-9.0\release\link-static\runtime-link-static\cap2ping.exe.rsp"
   
msvc.manifest bin/msvc-9.0/release/link-static/runtime-link-static/cap2ping.exe
       
        if test -e "bin/msvc-9.0/release/link-static/runtime-link-static/cap2ping.exe.manifest"; then
            cmd.exe /S /C call "c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 ">nul" "&&" mt -nologo -manifest "bin\msvc-9.0\release\link-static\runtime-link-static\cap2ping.exe.manifest" "-outputresource:bin\msvc-9.0\release\link-static\runtime-link-static\cap2ping.exe;1"
        fi
   
...updated 1 target...


     
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Parent Message unknown Re: boost-build with msvc90 on Cygwin problems

by kokot-san :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

>
> 2. Link statically. link=static runtime-link=static will
> probably work.
>

Forget my last email, I got it working just fine. Probably I was testing the wrong executable or something...

Thank you,
Andrej



     
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build