From: "Denis V. Lunev" <den@virtuozzo.com>
To: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>,
Stefan Weil <sw@weilnetz.de>,
qemu-devel@nongnu.org
Cc: yur@openvz.org, marcandre.lureau@gmail.com, mike.maslenkin@gmail.com
Subject: Re: [PATCH v2 1/2] qga-win: add logging to Windows event log
Date: Mon, 23 Jan 2023 21:44:07 +0100 [thread overview]
Message-ID: <e8cf7c5c-776c-dee9-372e-bb8b1e9ff5a3@virtuozzo.com> (raw)
In-Reply-To: <1330af6e-ee4e-2e1f-f7ca-bcf0109de786@virtuozzo.com>
Hi Stefan!
On 1/23/23 20:38, Andrey Drobyshev wrote:
> Hi Stefan,
>
> On 1/23/23 19:28, Stefan Weil wrote:
>> Hi,
>>
>> cross builds fail with this code. Please see details below.
>>
>> Am 29.11.22 um 18:38 schrieb Andrey Drobyshev via:
>>> This commit allows QGA to write to Windows event log using Win32 API's
>>> ReportEvent() [1], much like syslog() under *nix guests.
>>>
>>> In order to generate log message definitions we use a very basic message
>>> text file [2], so that every QGA's message gets ID 1. The tools
>>> "windmc" and "windres" respectively are used to generate ".rc" file and
>>> COFF object file, and then the COFF file is linked into qemu-ga.exe.
>>>
>>> [1]
>>> https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-reporteventa
>>> [2]
>>> https://learn.microsoft.com/en-us/windows/win32/eventlog/message-text-files
>>>
>>> Originally-by: Yuri Pudgorodskiy <yur@virtuozzo.com>
>>> Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
>>> ---
>>> configure | 3 +++
>>> qga/installer/qemu-ga.wxs | 5 +++++
>>> qga/main.c | 16 +++++++++++++---
>>> qga/meson.build | 19 ++++++++++++++++++-
>>> qga/messages-win32.mc | 9 +++++++++
>>> 5 files changed, 48 insertions(+), 4 deletions(-)
>>> create mode 100644 qga/messages-win32.mc
>>>
>>> diff --git a/configure b/configure
>>> index 26c7bc5154..789a4f6cc9 100755
>>> --- a/configure
>>> +++ b/configure
>>> @@ -372,6 +372,7 @@ smbd="$SMBD"
>>> strip="${STRIP-${cross_prefix}strip}"
>>> widl="${WIDL-${cross_prefix}widl}"
>>> windres="${WINDRES-${cross_prefix}windres}"
>>> +windmc="${WINDMC-${cross_prefix}windmc}"
>> Here the needed cross prefix is added ...
>>
>>> pkg_config_exe="${PKG_CONFIG-${cross_prefix}pkg-config}"
>>> query_pkg_config() {
>>> "${pkg_config_exe}" ${QEMU_PKG_CONFIG_FLAGS} "$@"
>> [...]
>>> diff --git a/qga/meson.build b/qga/meson.build
>>> index 3cfb9166e5..1ff159edc1 100644
>>> --- a/qga/meson.build
>>> +++ b/qga/meson.build
>>> @@ -98,7 +98,24 @@ if targetos == 'windows'
>>> endif
>>> endif
>>> -qga = executable('qemu-ga', qga_ss.sources(),
>>> +qga_objs = []
>>> +if targetos == 'windows'
>>> + windmc = find_program('windmc', required: true)
>> ... but here the cross prefix is missing and the cross build aborts
>> because windmc does not exist.
> There's no need for the cross prefix here. After you've run ./configure
> with --cross-prefix, argument, you'll see the following in
> build/config-meson.cross file:
>
> [binaries]
> ....
> widl = ['x86_64-w64-mingw32-widl']
> windres = ['x86_64-w64-mingw32-windres']
> windmc = ['x86_64-w64-mingw32-windmc']
>
> And these are the actual values meson's find_program() is going to be
> looking for. So it doesn't seem like there's anything broken here, it's
> a matter of build requirements.
may be if you will provide Andrey with a configure command line
we will be able to make a fix. It seems that something is
definitely untold :)
Regards,
Den
next prev parent reply other threads:[~2023-01-23 20:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-29 17:38 [PATCH v2 0/2] qga: improve "syslog" domain logging Andrey Drobyshev via
2022-11-29 17:38 ` [PATCH v2 1/2] qga-win: add logging to Windows event log Andrey Drobyshev via
2022-11-30 7:00 ` Marc-André Lureau
2023-01-23 17:28 ` Stefan Weil via
2023-01-23 19:38 ` Andrey Drobyshev
2023-01-23 20:44 ` Denis V. Lunev [this message]
2023-01-23 20:52 ` Stefan Weil via
2023-01-26 17:50 ` Andrey Drobyshev
2022-11-29 17:38 ` [PATCH v2 2/2] qga: map GLib log levels to system levels Andrey Drobyshev via
2022-12-12 12:18 ` [PATCH v2 0/2] qga: improve "syslog" domain logging Andrey Drobyshev
2022-12-12 12:29 ` Konstantin Kostiuk
2022-12-16 10:01 ` Konstantin Kostiuk
2022-12-16 15:28 ` Andrey Drobyshev
2022-12-16 15:36 ` Konstantin Kostiuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e8cf7c5c-776c-dee9-372e-bb8b1e9ff5a3@virtuozzo.com \
--to=den@virtuozzo.com \
--cc=andrey.drobyshev@virtuozzo.com \
--cc=marcandre.lureau@gmail.com \
--cc=mike.maslenkin@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
--cc=yur@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).