# Root building: webgui requires http

**URL:** <https://root-forum.cern.ch/t/root-building-webgui-requires-http/57340>\
**Category:** ROOT\
**Tags:** bug\
**Created:** [November 30, 2023, 12:25pm UTC](https://root-forum.cern.ch/t/root-building-webgui-requires-http/57340 "2023-11-30T12:25:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlalik](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rlalik/32/25117_2.png) [@rlalik](https://root-forum.cern.ch/u/rlalik)\
**Post date:** [November 30, 2023, 12:25pm UTC](https://root-forum.cern.ch/t/root-building-webgui-requires-http/57340/1 "2023-11-30T12:25:07Z")

</div>

If the `webgui` component is selected but not `http`, the compialtion will fail:

```auto
gmake[2]: *** Brak reguł do zrobienia obiektu 'gui/webdisplay/RHTTP', wymaganego przez 'gui/webdisplay/G__ROOTWebDisplay.cxx'. Stop.
gmake[1]: *** [CMakeFiles/Makefile2:38292: gui/webdisplay/CMakeFiles/G__ROOTWebDisplay.dir/all] Błąd 2

```

(sorry for wrong language) but it says that no rules to make RHTTP required by webdisplay. One needs to enable also `http` component to make it working. Cmake macros should probably detect that and pull `http` or give a feedback to the user about conflicting options, and should abort at configure step.

### Setup

```auto
ROOT v6.30/02
Built for linuxx8664gcc on Nov 30 2023, 12:17:54
From heads/master@tags/v6-30-02
With c++ (Gentoo 13.2.1_p20231014 p9) 13.2.1 20231014

```

Was build (befire fixing it) with following options:

```auto
-DPYTHON_EXECUTABLE=/usr/bin/python3.11 -DDEFAULT_SYSROOT= -DCLING_BUILD_PLUGINS=OFF -Dexceptions=ON -Dfail-on-missing=ON -Dgnuinstall=OFF -Dshared=ON -Dsoversion=ON -Dbuiltin_llvm=ON -Dbuiltin_clang=ON -Dbuiltin_afterimage=OFF -Dbuiltin_cfitsio=OFF -Dbuiltin_davix=OFF -Dbuiltin_fftw3=OFF -Dbu
iltin_freetype=OFF -Dbuiltin_ftgl=OFF -Dbuiltin_gl2ps=OFF -Dbuiltin_glew=OFF -Dbuiltin_gsl=OFF -Dbuiltin_lz4=OFF -Dbuiltin_lzma=OFF -Dbuiltin_nlohmannjson=YES -Dbuiltin_openssl=OFF -Dbuiltin_pcre=OFF -Dbuiltin_tbb=off -Dbuiltin_unuran=OFF -Dbuiltin_vc=OFF -Dbuiltin_vdt=OFF -Dbuiltin_veccore=OFF -Dbuiltin_xrootd=OF
F -Dbuiltin_xxhash=OFF -Dbuiltin_zlib=OFF -Dbuiltin_zstd=OFF -Dalien=OFF -Darrow=OFF -Dasimage=yes -Dbonjour=off -Dcastor=off -Dccache=OFF -Dcefweb=OFF -Dclad=OFF -Dcocoa=no -Dcuda=no -Dcudnn=no -Dcxxmodules=OFF -Ddataframe=ON -Ddavix=no -Ddcache=OFF -Dfcgi=no -Dfftw3=no -Dfitsio=no -Dfortran=yes -Dgdml=yes -Dgfal
=OFF -Dgminimal=OFF -Dgviz=no -Dhttp=no -Dimt=no -Dlibcxx=no -Dmathmore=yes -Dmemstat=OFF -Dminimal=OFF -Dminuit2=yes -Dminuit=yes -Dmlp=yes -Dmonalisa=OFF -Dmpi=no -Dmysql=no -Dodbc=no -Dopengl=yes -Doracle=no -Dpgsql=no -Dpyroot=yes -Dpyroot_legacy=OFF -Dpythia6=no -Dpythia8=no -Dqt5web=no -Dr=no -Droofit=yes -D
root7=yes -Drootbench=OFF -Droottest=OFF -Drpath=OFF -Druntime_cxxmodules=OFF -Dshadowpw=no -Dspectrum=ON -Dsqlite=no -Dssl=no -Dtcmalloc=OFF -Dtesting=no -Dtmva=no -Dtmva-cpu=yes -Dtmva-gpu=no -Dtmva-pymva=yes -Dtmva-rmva=no -Dunuran=no -Dvc=no -Dvdt=OFF -Dveccore=OFF -Dvecgeom=OFF -Dvmc=no -Dx11=yes -Dxml=yes -D
xrootd=no -Drfio=no -Dldap=no -Dchirp=no -Dhdfs=no

```

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [November 30, 2023, 12:27pm UTC](https://root-forum.cern.ch/t/root-building-webgui-requires-http/57340/2 "2023-11-30T12:27:36Z")

</div>

Hi Rafal ,

You did specify `-Dhttp=no`.  
Either enable it on or you also need to disable `-Dwebgui=no`

Regards,  
Sergey

---

<div class="post-metadata">

**Author:** ![rlalik](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rlalik/32/25117_2.png) [@rlalik](https://root-forum.cern.ch/u/rlalik)\
**Post date:** [November 30, 2023, 12:35pm UTC](https://root-forum.cern.ch/t/root-building-webgui-requires-http/57340/3 "2023-11-30T12:35:48Z")

</div>

It is clear for me what I did, I later changed it to `-Dhttp=yes`, but I think there should be diagnostics which detects that and tells the user that he made mistake. That’s what I proposed.

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [November 30, 2023, 12:39pm UTC](https://root-forum.cern.ch/t/root-building-webgui-requires-http/57340/4 "2023-11-30T12:39:50Z")

</div>

I see.

I will just disable webgui compilation if http is disabled.  
By default compilation of `http` is always ON, therefore one only can intentionally disable it.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 14, 2023, 12:40pm UTC](https://root-forum.cern.ch/t/root-building-webgui-requires-http/57340/5 "2023-12-14T12:40:41Z")

</div>

Closed on December 14, 2023, 12:40pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
