X11/extensions/XInput2.h: No such file or directory

1,359 views
Skip to first unread message

manik sheeri

unread,
Oct 7, 2014, 4:03:10 PM10/7/14
to chromi...@chromium.org
Hi,

I am trying to build chromium with my custom toolchain.
While building I am getting the error:

../../ui/events/x/events_x.cc:10:36: fatal error: X11/extensions/XInput2.h: No such file or directory
 #include <X11/extensions/XInput2.h>



I want to know how does the chromium build finds out from where to pick the header files.
I configured PKG_CONFIG_PATH to point to my custom toolchain packages, which already has "xi" package install
I thought chromiuim build system would use something like :

pkg-config --cflags <package-name>

to fetch the header files paths and all.
But this doesnt seem to be working, as I have my toolchain's "pkg-config" first in the order of $PATH variable, so using this command must return correct header file paths.

Any idea ?


thanks

Thiago Farina

unread,
Oct 7, 2014, 4:08:22 PM10/7/14
to manik sheeri, Chromium-dev
Try running this: https://chromium.googlesource.com/chromium/src/+/master/build/install-build-deps.sh

I think our build instructions mention that.

Regards,

--
Thiago Farina

manik sheeri

unread,
Oct 7, 2014, 4:12:04 PM10/7/14
to chromi...@chromium.org, sheeri1...@gmail.com
the last i checked the "install-build-deps.sh" was supported for only Ubuntu.
The host machine I am using for building chromium is OpenSuse 10.2

manik sheeri

unread,
Oct 7, 2014, 4:20:21 PM10/7/14
to chromi...@chromium.org, sheeri1...@gmail.com
moreover, I have the packages installed in the custom path.
Since I am building chromium with this custom toolchain, I wanted to configure header includes paths as per the toolchain.

Thiago Farina

unread,
Oct 8, 2014, 9:20:29 AM10/8/14
to sheeri1...@gmail.com, chromi...@chromium.org


On Tuesday, October 7, 2014, manik sheeri <sheeri1...@gmail.com> wrote:
moreover, I have the packages installed in the custom path.
Since I am building chromium with this custom toolchain, I wanted to configure header includes paths as per the toolchain.

I think it is possible to build with some system libraries, look for use_system in our code base.

Do you mind sharing your gyp changes, environment variables and/or command lines your running?

Best,


--
Thiago Farina

manik sheeri

unread,
Oct 8, 2014, 2:09:59 PM10/8/14
to chromi...@chromium.org, sheeri1...@gmail.com
I have not changed any ".gyp" file.

I am using the following configuration to build.

export LDFLAGS="-Wl,--rpath-link,/usr/share/custom-toolchain/lib -Wl,--dynamic-linker,/usr/share/custom-toolchain/lib/ld-linux.so.2"
export CC=custom-gcc
export CCC=custom-gcc
export CXX=custom-g++
export NM=custom-nm
export RANLIB=custom-ranlib
export AR=custom-ar
export STRIP=custom-strip
export OBJDUMP=custom-objdump
export ADDR2LINE=custom-addr2line
export CPP=custom-cpp
export LD=custom-ld
export OBJCOPY=custom-objcopy
export READELF=custom-readelf
export SIZE=custom-size
export STRINGS=custom-strings
export PKG_CONFIG_PATH="/usr/share/custom-toolchain/lib/pkgconfig"
export PATH="/usr/share/custom-toolchain/bin":$PATH

myconf="-Dwerror= -Duse_openssl=1 -Duse_system_ffmpeg=0 -Dbuild_ffmpegsumo=1 -Dproprietary_codecs=1 -Dremove_webcore_debug_symbols=1 
-Dlogging_like_official_build=1 -Ddisable_sse2=1 -Dsafe_browsing=0 -Dinput_speech=0 -Denable_google_now=0 -Denable_printing=0 
-Denable_plugin_installation=0 -Duse_gnome_keyring=0 -Ddisable_nacl=1 -Ddisable_pnacl=1 -Duse_gconf=0 -Duse_gio=0 
-Denable_hangout_services_extension=0 -Denable_wifi_bootstrapping=0 -Duse_pulseaudio=0 -Dlinux_link_libpci=0 -Duse_system_libexif=0 -Duse_kerberos=0"



./build/gyp_chromium build/all.gyp --depth .  $myconf


 ../ninja-1.5.1/ninja -C out/Release chrome
Reply all
Reply to author
Forward
0 new messages