use_dbus

279 views
Skip to first unread message

Alexander Altshuler

unread,
Sep 12, 2016, 4:35:09 AM9/12/16
to Chromium-dev
Hi
I'm trying to build Chromium on Linux without dbus.
I specify use_dbus = false argument, but still have an errors like below:

In file included from ../../device/media_transfer_protocol/media_transfer_protocol_daemon_client.cc:12:0:
../../dbus/bus.h:8:23: fatal error: dbus/dbus.h: No such file or directory
 #include <dbus/dbus.h>

Is it possible to completely avoid dbus?

PS: I use 54.0.2825.1.tags.

Regards
Alexander Altshuler

Mostyn Bramley-Moore

unread,
Sep 12, 2016, 5:53:21 AM9/12/16
to alt...@gmail.com, Chromium-dev
On 09/12/2016 10:35 AM, Alexander Altshuler wrote:
> Hi
> I'm trying to build Chromium on Linux without dbus.
> I specify use_dbus = false argument, but still have an errors like below:
>
> In file included from
> ../../device/media_transfer_protocol/media_transfer_protocol_daemon_client.cc:12:0:
> ../../dbus/bus.h:8:23: fatal error: dbus/dbus.h: No such file or directory
> #include <dbus/dbus.h>
>
> Is it possible to completely avoid dbus?

You might be able to avoid dbus when building the content layer, but I
doubt it's possible for chromium without a lot of patching.

The //device/media_transfer_protocol target always depends on dbus even
though it has an "if (use_dbus) { ... }" block, if you want to
investigate further you should see where
//device/media_transfer_protocol is pulled into the dependency tree and
try to remove it.

-Mostyn.

> PS: I use 54.0.2825.1.tags.
>
> Regards
> Alexander Altshuler
>


--
Mostyn Bramley-Moore
Opera TV
mos...@opera.com

Alexander Altshuler

unread,
Sep 13, 2016, 7:00:01 AM9/13/16
to Chromium-dev, alt...@gmail.com


On Monday, September 12, 2016 at 12:53:21 PM UTC+3, Mostyn Bramley-Moore wrote:
On 09/12/2016 10:35 AM, Alexander Altshuler wrote:

> Is it possible to completely avoid dbus?

You might be able to avoid dbus when building the content layer, but I
doubt it's possible for chromium without a lot of patching. 

Which functionality will miss Chromium if I link it with libdbus, but because dbus daemon is not running connection just fail?
Is it something critical?

Regards
Alexander Altshuler

Ryo Hashimoto

unread,
Sep 15, 2016, 3:26:50 AM9/15/16
to alt...@gmail.com, Chromium-dev
It may be possible to build the build target "content" with use_dbus=false, but AFAIK no one is seriously maintaining the build target "chrome" with use_dbus=false.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Lei Zhang

unread,
Sep 19, 2016, 7:26:57 PM9/19/16
to alt...@gmail.com, Chromium-dev
Is this the only build error when use_dbus=false, or just the first
one you hit? i.e. when you run: ninja chrome --your-options -k, where
the "-k" lets the build keep going after errors, how many more errors
are you hitting?

Lei Zhang

unread,
Sep 19, 2016, 8:00:14 PM9/19/16
to alt...@gmail.com, Chromium-dev
For device/media_transfer_protocol, someone reported
https://crbug.com/639863 so I'll see if we can fix it for you there.
That may be just the tip of the iceberg though.
Reply all
Reply to author
Forward
0 new messages