[log] Setup Windows event log backends
Hi,
I am trying setup a basic:
<http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/detailed/sink_ba
ckends.html#log.detailed.sink_backends.event_log> Windows event log, and I
copy and past code from log documentation. My app link with:
1> main.cpp
1> Linking to lib file: boost_filesystem-vc110-mt-gd-1_54.lib
1> Linking to lib file: boost_system-vc110-mt-gd-1_54.lib
1> Linking to lib file: boost_log-vc110-mt-gd-1_54.lib
1> Linking to lib file: boost_thread-vc110-mt-gd-1_54.lib
1> Linking to lib file: boost_log_setup-vc110-mt-gd-1_54.lib
1> Linking to lib file: boost_date_time-vc110-mt-gd-1_54.lib
1> Linking to lib file: boost_chrono-vc110-mt-gd-1_54.lib
But I have some link problems:
1>qt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
public: __thiscall
boost::log::v2_mt_nt5::sinks::basic_simple_event_log_backend<char>::basic_si
mple_event_log_backend<char>(void)"
(__imp_??0?$basic_simple_event_log_backend@D@sinks@v2_mt_nt5@log@boost@@QAE@
XZ) referenced in function "class boost::shared_ptr
On Thursday 04 July 2013 14:51:19 Renato Forti wrote:
Hi,
I am trying setup a basic: <http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/detailed/sink_ba ckends.html#log.detailed.sink_backends.event_log> Windows event log, and I copy and past code from log documentation. My app link with:
What is wrong?
You may have compiled the library without event log support. This happens when the build system doesn't find message compiler in your PATH. When you build Boost.Log, it should say: - message-compiler : yes
Well, this is true: - zlib : no (cached) - iconv (libc) : no (cached) - iconv (separate) : no (cached) - icu : no (cached) - icu (lib64) : no (cached) - message-compiler : no (cached) - compiler-supports-ssse3 : yes (cached) - compiler-supports-avx2 : yes (cached) - gcc visibility : no (cached) - long double support : yes (cached) But how to fix? Thanks? -----Mensagem original----- De: Boost [mailto:boost-bounces@lists.boost.org] Em nome de Andrey Semashev Enviada em: quinta-feira, 4 de julho de 2013 15:32 Para: boost@lists.boost.org Assunto: Re: [boost] [log] Setup Windows event log backends On Thursday 04 July 2013 14:51:19 Renato Forti wrote:
Hi,
I am trying setup a basic: <http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/detailed/s ink_ba ckends.html#log.detailed.sink_backends.event_log> Windows event log, and I copy and past code from log documentation. My app link with:
What is wrong?
You may have compiled the library without event log support. This happens when the build system doesn't find message compiler in your PATH. When you build Boost.Log, it should say: - message-compiler : yes _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
On Thursday 04 July 2013 16:15:49 Renato Forti wrote:
Well, this is true:
- zlib : no (cached) - iconv (libc) : no (cached) - iconv (separate) : no (cached) - icu : no (cached) - icu (lib64) : no (cached) - message-compiler : no (cached) - compiler-supports-ssse3 : yes (cached) - compiler-supports-avx2 : yes (cached) - gcc visibility : no (cached) - long double support : yes (cached)
But how to fix? Thanks?
Just make sure mc.exe is in the PATH env. variable. Usually it is sufficient to open MSVC command line prompt and start the build from there. Also make sure you delete bin.v2 before you start the build. Otherwise, I'm afraid, the cached check results will get used instead of running the detection again.
Hi, I did, but don't work! I have mc, and I remove bin.v2. But boost build don't find my mc :( - message-compiler : no - compiler-supports-ssse3 : yes - compiler-supports-avx2 : yes - gcc visibility : no - long double support : yes C:\boost_1_54_0>mc Microsoft (R) Message Compiler Version 1.12.9200 Copyright (c) Microsoft Corporation. All rights reserved. No cached! I am on Windows 8, and vc11! Thanks again! -----Mensagem original----- De: Boost [mailto:boost-bounces@lists.boost.org] Em nome de Andrey Semashev Enviada em: quinta-feira, 4 de julho de 2013 16:27 Para: boost@lists.boost.org Assunto: Re: [boost] RES: [log] Setup Windows event log backends On Thursday 04 July 2013 16:15:49 Renato Forti wrote:
Well, this is true:
- zlib : no (cached) - iconv (libc) : no (cached) - iconv (separate) : no (cached) - icu : no (cached) - icu (lib64) : no (cached) - message-compiler : no (cached) - compiler-supports-ssse3 : yes (cached) - compiler-supports-avx2 : yes (cached) - gcc visibility : no (cached) - long double support : yes (cached)
But how to fix? Thanks?
Just make sure mc.exe is in the PATH env. variable. Usually it is sufficient to open MSVC command line prompt and start the build from there. Also make sure you delete bin.v2 before you start the build. Otherwise, I'm afraid, the cached check results will get used instead of running the detection again. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
On Thu, Jul 4, 2013 at 11:38 PM, Renato Forti
Hi, I did, but don't work! I have mc, and I remove bin.v2. But boost build don't find my mc :(
- message-compiler : no - compiler-supports-ssse3 : yes - compiler-supports-avx2 : yes - gcc visibility : no - long double support : yes
C:\boost_1_54_0>mc Microsoft (R) Message Compiler Version 1.12.9200 Copyright (c) Microsoft Corporation. All rights reserved.
No cached! I am on Windows 8, and vc11! Thanks again!
Hm, that's strange. Perhaps, a Win 8 thing? What does bin.v2/config.log say?
config.log:
...found 8 targets...
...updating 7 targets...
common.mkdir bin.v2
common.mkdir bin.v2\libs
common.mkdir bin.v2\libs\context
common.mkdir bin.v2\libs\context\config
common.mkdir bin.v2\libs\context\config\msvc-11.0
common.mkdir bin.v2\libs\context\config\msvc-11.0\debug
compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\32.obj
32.cpp
...updated 7 targets...
...found 2 targets...
...updating 1 target...
compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\arm.obj
arm.cpp
C:\boost_1_54_0\libs\context\config\arm.cpp(12) : fatal error C1189: #error
: "Not ARM"
call "C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo
@"bin.v2\libs\context\config\msvc-11.0\debug\arm.obj.rsp"
...failed compile-c-c++
bin.v2\libs\context\config\msvc-11.0\debug\arm.obj...
...failed updating 1 target...
...found 2 targets...
...updating 1 target...
compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\mips1.obj
mips1.cpp
C:\boost_1_54_0\libs\context\config\mips1.cpp(10) : fatal error C1189:
#error : "Not MIPS1"
call "C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo
@"bin.v2\libs\context\config\msvc-11.0\debug\mips1.obj.rsp"
...failed compile-c-c++
bin.v2\libs\context\config\msvc-11.0\debug\mips1.obj...
...failed updating 1 target...
...found 2 targets...
...updating 1 target...
compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\power.obj
power.cpp
C:\boost_1_54_0\libs\context\config\power.cpp(13) : fatal error C1189:
#error : "Not PPC"
call "C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo
@"bin.v2\libs\context\config\msvc-11.0\debug\power.obj.rsp"
...failed compile-c-c++
bin.v2\libs\context\config\msvc-11.0\debug\power.obj...
...failed updating 1 target...
...found 2 targets...
...updating 1 target...
compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\sparc.obj
sparc.cpp
C:\boost_1_54_0\libs\context\config\sparc.cpp(10) : fatal error C1189:
#error : "Not SPARC"
call "C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo
@"bin.v2\libs\context\config\msvc-11.0\debug\sparc.obj.rsp"
...failed compile-c-c++
bin.v2\libs\context\config\msvc-11.0\debug\sparc.obj...
...failed updating 1 target...
...found 2 targets...
...updating 1 target...
compile-c-c++ bin.v2\libs\context\config\msvc-11.0\debug\x86.obj
x86.cpp
...updated 1 target...
...found 12 targets...
...updating 7 targets...
common.mkdir bin.v2\libs\regex
common.mkdir bin.v2\libs\regex\build
common.mkdir bin.v2\libs\regex\build\msvc-11.0 common.mkdir
bin.v2\libs\regex\build\msvc-11.0\debug
compile-c-c++ bin.v2\libs\regex\build\msvc-11.0\debug\has_icu_test.obj
has_icu_test.cpp
libs\regex\build\has_icu_test.cpp(12) : fatal error C1083: Cannot open
include file: 'unicode/uversion.h': No such file or directory
call "C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo
@"bin.v2\libs\regex\build\msvc-11.0\debug\has_icu_test.obj.rsp"
...failed compile-c-c++
bin.v2\libs\regex\build\msvc-11.0\debug\has_icu_test.obj...
...skipped
Hi, I did, but don't work! I have mc, and I remove bin.v2. But boost build don't find my mc :(
- message-compiler : no - compiler-supports-ssse3 : yes - compiler-supports-avx2 : yes - gcc visibility : no - long double support : yes
C:\boost_1_54_0>mc Microsoft (R) Message Compiler Version 1.12.9200 Copyright (c) Microsoft Corporation. All rights reserved.
No cached! I am on Windows 8, and vc11! Thanks again!
Hm, that's strange. Perhaps, a Win 8 thing? What does bin.v2/config.log say? _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
On Fri, Jul 5, 2013 at 12:21 AM, Renato Forti
config.log:
don't know how to make
simple_event_log.rc ...found 11 targets... ...updating 8 targets... ...can't find 1 target... ...can't make 1 target... common.mkdir bin.v2\libs\log common.mkdir bin.v2\libs\log\config common.mkdir bin.v2\libs\log\config\message-compiler common.mkdir bin.v2\libs\log\config\message-compiler\msvc-11.0 common.mkdir bin.v2\libs\log\config\message-compiler\msvc-11.0\debug common.mkdir bin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off msvc.compile.mc bin.v2\libs\log\config\message-compiler\msvc-11.0\debug\pch-off\simple_event _log.h MC: Compiling libs\log\src\simple_event_log.mc ...skipped simple_eve nt_log_res.obj for lack of simple_event_log.rc... ...skipped 1 target...
It seems like you have some problems with resource compiler (rc.exe). I just downloaded clean 1.54 release, ran bootstrap.bat and b2 and it compiled successfully (with event log support). So I don't think that something is fundamentally broken in Boost.Build. I'm on Windows 7 though, MSVC 11 x64. Please verify that your MSVC installation is not broken somehow and rc.exe is available. Also, if you have some custom user-config.jam in your build or home directory, you may want to try deleting it and building with the default settings.
Hi, just to inform: I tried to build on another machine, also with windows
8, and VC11 (no update), did not work! I will try on windows 7 and vc 11
update 3. I let you know the result.
Thanks
-----Mensagem original-----
De: Boost [mailto:boost-bounces@lists.boost.org] Em nome de Andrey Semashev
Enviada em: quinta-feira, 4 de julho de 2013 16:46
Para: boost@lists.boost.org
Assunto: Re: [boost] RES: RES: [log] Setup Windows event log backends
On Thu, Jul 4, 2013 at 11:38 PM, Renato Forti
Hi, I did, but don't work! I have mc, and I remove bin.v2. But boost build don't find my mc :(
- message-compiler : no - compiler-supports-ssse3 : yes - compiler-supports-avx2 : yes - gcc visibility : no - long double support : yes
C:\boost_1_54_0>mc Microsoft (R) Message Compiler Version 1.12.9200 Copyright (c) Microsoft Corporation. All rights reserved.
No cached! I am on Windows 8, and vc11! Thanks again!
Hm, that's strange. Perhaps, a Win 8 thing? What does bin.v2/config.log say? _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
On 7/5/2013 7:32 AM, Renato Forti wrote:
Hi, just to inform: I tried to build on another machine, also with windows 8, and VC11 (no update), did not work! I will try on windows 7 and vc 11 update 3. I let you know the result.
Please do not top post. That is basic mailing list etiquette.
Mc is on my path:
C:\boost_1_54_0>mc
Microsoft (R) Message Compiler Version 1.12.9200
Copyright (c) Microsoft Corporation. All rights reserved.
usage:
MC [-?aAbcdnouUv] [-m <length>] [-h <path>] [-e <extension>] [-r <path>]
[-x
<path>]
[-w <file>] [-W <file>] [-z <basename> ]
[-km | -um | -generateProjections | -cs <namespace>] [-mof] [-p
<prefix>]
[-P <prefix>]
[
Hi,
I am trying setup a basic: <http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/detailed/s ink_ba ckends.html#log.detailed.sink_backends.event_log> Windows event log, and I copy and past code from log documentation. My app link with:
What is wrong?
You may have compiled the library without event log support. This happens when the build system doesn't find message compiler in your PATH. When you build Boost.Log, it should say: - message-compiler : yes _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (3)
-
Andrey Semashev
-
Edward Diener
-
Renato Forti