# Error when compiling libvibrant

**URL:** <https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622>\
**Category:** Ask Fedora\
**Tags:** f33\
**Created:** [November 29, 2020, 12:14am UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622 "2020-11-29T00:14:46Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![telometto](https://avatars.discourse-cdn.com/v4/letter/t/aad0ee/32.png) [@telometto](https://discussion.fedoraproject.org/u/telometto)\
**Post date:** [November 29, 2020, 12:14am UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/1 "2020-11-29T00:14:46Z")

</div>

I’m getting the following error when trying to `make` `libvibrant`. The error is this:

```auto
[14%] Building C object vibrant/CMakeFiles/vibrant.dir/src/vibrant.c.o
/home/zeno/vibrant/vibrant/src/vibrant.c:53:10: fatal error: NVCtrl/NVCtrlLib.h: No such file or directory
   53 | #include <NVCtrl/NVCtrlLib.h>
      | ^ ~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [vibrant/CMakeFiles/vibrant.dir/build.make:82: vibrant/CMakeFiles/vibrant.dir/src/vibrant.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:918: vibrant/CMakeFiles/vibrant.dir/all] Error 2
make: *** [Makefile:160: all] Error 2

```

I have all the required dependencies installed 😕

---

<div class="post-metadata">

**Author:** ![vgaetera](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/vgaetera/32/2552_2.png) [@vgaetera](https://discussion.fedoraproject.org/u/vgaetera)\
**Post date:** [November 29, 2020, 12:26am UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/2 "2020-11-29T00:26:30Z")

</div>

```bash
sudo dnf install libXNVCtrl-devel
sudo dnf provides \*/NVCtrlLib.h

```

[DNF Command Reference — dnf latest documentation](https://dnf.readthedocs.io/en/latest/command_ref.html#provides-command-label)

---

<div class="post-metadata">

**Author:** ![telometto](https://avatars.discourse-cdn.com/v4/letter/t/aad0ee/32.png) [@telometto](https://discussion.fedoraproject.org/u/telometto)\
**Post date:** [November 29, 2020, 1:15am UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/3 "2020-11-29T01:15:40Z")

</div>

Damn! Thanks 😃

How do you find out what you need, if you don’t mind me asking?

---

<div class="post-metadata">

**Author:** ![vgaetera](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/vgaetera/32/2552_2.png) [@vgaetera](https://discussion.fedoraproject.org/u/vgaetera)\
**Post date:** [November 29, 2020, 1:24am UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/4 "2020-11-29T01:24:34Z")

</div>

Just read the error message carefully:

> [@zeno](#):
>
> `NVCtrlLib.h: No such file or directory`

Then search the packages providing the missing file.

---

<div class="post-metadata">

**Author:** ![telometto](https://avatars.discourse-cdn.com/v4/letter/t/aad0ee/32.png) [@telometto](https://discussion.fedoraproject.org/u/telometto)\
**Post date:** [November 29, 2020, 8:05am UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/5 "2020-11-29T08:05:13Z")

</div>

I see. But I did install `libXNVCtrl` (not the development files, though)… that’s why I wonder how you know what I need 🙂

---

<div class="post-metadata">

**Author:** ![computersavvy](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/computersavvy/32/4741_2.png) [@computersavvy](https://discussion.fedoraproject.org/u/computersavvy)\
**Post date:** [November 29, 2020, 5:53pm UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/6 "2020-11-29T17:53:37Z")

</div>

As he said, use dnf to find what provides the file reported missing in your error. He posted the commands in the reverse order but “dnf provides file.name” will tell you the package that is needed to install that file.

---

<div class="post-metadata">

**Author:** ![telometto](https://avatars.discourse-cdn.com/v4/letter/t/aad0ee/32.png) [@telometto](https://discussion.fedoraproject.org/u/telometto)\
**Post date:** [November 29, 2020, 6:14pm UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/7 "2020-11-29T18:14:37Z")

</div>

Ah, so that’s what that command is for. Do I use it like `dnf provides \*/` and then append what I am looking for?

---

<div class="post-metadata">

**Author:** ![telometto](https://avatars.discourse-cdn.com/v4/letter/t/aad0ee/32.png) [@telometto](https://discussion.fedoraproject.org/u/telometto)\
**Post date:** [November 29, 2020, 6:21pm UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/8 "2020-11-29T18:21:55Z")

</div>

Building `libvibrant` worked but now `vibrantlinux` won’t make…

```auto
HEAD is now at 1dc6b43 fixed getDisplaySaturation not properly scaling the value returned from vibrbant_controller_get_saturation
warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:

  git config pull.rebase false # merge (the default strategy)
  git config pull.rebase true # rebase
  git config pull.ff only # fast-forward only

You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or --ff-only on the command line to override the configured default per
invocation.

Already up to date.
./update.sh: line 15: qmake: command not found
make: *** No targets specified and no makefile found. Stop.
rm: cannot remove '*.o': No such file or directory
rm: cannot remove '*.h': No such file or directory
rm: cannot remove '*.cpp': No such file or directory
rm: cannot remove 'Makefile': No such file or directory

```

I’m following their instructions to the point?

---

<div class="post-metadata">

**Author:** ![computersavvy](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/computersavvy/32/4741_2.png) [@computersavvy](https://discussion.fedoraproject.org/u/computersavvy)\
**Post date:** [November 29, 2020, 8:03pm UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/9 "2020-11-29T20:03:18Z")

</div>

> [@zeno](#):
>
> `./update.sh: line 15: qmake: command not found`

it did not find qmake

---

<div class="post-metadata">

**Author:** ![telometto](https://avatars.discourse-cdn.com/v4/letter/t/aad0ee/32.png) [@telometto](https://discussion.fedoraproject.org/u/telometto)\
**Post date:** [November 29, 2020, 8:55pm UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/10 "2020-11-29T20:55:56Z")

</div>

Yeah, I used the command I just learned to search for packages containing `qmake` but now I get another error up with this message:

```auto
HEAD is now at 1dc6b43 fixed getDisplaySaturation not properly scaling the value returned from vibrbant_controller_get_saturation
warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:

  git config pull.rebase false # merge (the default strategy)
  git config pull.rebase true # rebase
  git config pull.ff only # fast-forward only

You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or --ff-only on the command line to override the configured default per
invocation.

Already up to date.
vibrantLinux.pro:9: Unknown test function: greaterThan
WARNING: Found potential symbol conflict of entryeditor.cpp (src/entryeditor.cpp) in SOURCES
WARNING: Found potential symbol conflict of entryeditor.h (include/entryeditor.h) in HEADERS
WARNING: Found potential symbol conflict of mainwindow.cpp (src/mainwindow.cpp) in SOURCES
WARNING: Found potential symbol conflict of mainwindow.h (include/mainwindow.h) in HEADERS
Makefile:203: warning: overriding recipe for target 'entryeditor.o'
Makefile:170: warning: ignoring old recipe for target 'entryeditor.o'
Makefile:206: warning: overriding recipe for target 'mainwindow.o'
Makefile:182: warning: ignoring old recipe for target 'mainwindow.o'
Makefile:225: warning: overriding recipe for target 'moc_entryeditor.o'
Makefile:213: warning: ignoring old recipe for target 'moc_entryeditor.o'
Makefile:233: warning: overriding recipe for target 'moc_mainwindow.o'
Makefile:221: warning: ignoring old recipe for target 'moc_mainwindow.o'
/usr/lib64/qt-3.3/bin/uic forms/entryeditor.ui -o forms/entryeditor.h
/usr/lib64/qt-3.3/bin/uic forms/mainwindow.ui -o forms/mainwindow.h
g++ -c -pipe -Wall -W -O2 -flto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -DQT_DEPRECATED_WARNINGS -DVIBRANT_LINUX_VERSION=\\\"2.1.2\\\" -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib64/qt-3.3/mkspecs/default -I. -I"include/" -I/usr/lib64/qt-3.3/include -o autostart.o src/autostart.cpp
<command-line>: warning: missing terminating " character
In file included from src/autostart.cpp:1:
include/autostart.h:4:10: fatal error: QDir: No such file or directory
    4 | #include <QDir>
      | ^ ~~~~~
compilation terminated.
make: *** [Makefile:158: autostart.o] Error 1
rm: cannot remove '*.o': No such file or directory
rm: cannot remove '*.h': No such file or directory
rm: cannot remove '*.cpp': No such file or directory

```

One of the packages I installed should contain this, so I’m kinda confused…

---

<div class="post-metadata">

**Author:** ![tjdoyle](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/tjdoyle/32/12774_2.png) [@tjdoyle](https://discussion.fedoraproject.org/u/tjdoyle)\
**Post date:** [November 29, 2020, 9:09pm UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/11 "2020-11-29T21:09:53Z")

</div>

Hi,

Please ignore, just realized, qmake is part of q-devel.

~~Have your installed qt-devel?~~

~~ 

```
dnf provides \*/QDir
Last metadata expiration check: 13 days, 4:07:51 ago on Mon 16 Nov 2020 17:00:16 GMT.
mingw32-qt5-qtbase-5.14.2-5.fc33.noarch : Qt5 for Windows - QtBase component
Repo : fedora
Matched from:
Filename : /usr/i686-w64-mingw32/sys-root/mingw/include/qt5/QtCore/QDir

mingw64-qt5-qtbase-5.14.2-5.fc33.noarch : Qt5 for Windows - QtBase component
Repo : fedora
Matched from:
Filename : /usr/x86_64-w64-mingw32/sys-root/mingw/include/qt5/QtCore/QDir

qt-devel-1:4.8.7-57.fc33.i686 : Development files for the Qt toolkit
Repo : fedora
Matched from:
Filename : /usr/include/QtCore/QDir

qt-devel-1:4.8.7-57.fc33.x86_64 : Development files for the Qt toolkit
Repo : fedora
Matched from:
Filename : /usr/include/QtCore/QDir

qt5-qtbase-devel-5.15.1-5.fc33.i686 : Development files for qt5-qtbase
Repo : fedora
Matched from:
Filename : /usr/include/qt5/QtCore/QDir

qt5-qtbase-devel-5.15.1-5.fc33.x86_64 : Development files for qt5-qtbase
Repo : fedora
Matched from:
Filename : /usr/include/qt5/QtCore/QDir

qt5-qtbase-devel-5.15.1-7.fc33.i686 : Development files for qt5-qtbase
Repo : updates
Matched from:
Filename : /usr/include/qt5/QtCore/QDir

qt5-qtbase-devel-5.15.1-7.fc33.x86_64 : Development files for qt5-qtbase
Repo : updates
Matched from:
Filename : /usr/include/qt5/QtCore/QDir

```

 ~~

Thanks Tom.

---

<div class="post-metadata">

**Author:** ![computersavvy](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/computersavvy/32/4741_2.png) [@computersavvy](https://discussion.fedoraproject.org/u/computersavvy)\
**Post date:** [November 29, 2020, 9:10pm UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/12 "2020-11-29T21:10:07Z")

</div>

That appears to be an error within the source code that your compiler fails on. It is beyond my expertise since I don’t work with that package and code.

`
<command-line>: warning: missing terminating " character
In file included from src/autostart.cpp:1:
include/autostart.h:4:10: fatal error: QDir: No such file or directory
    4 | #include <QDir>
      | ^ ~~~~~
compilation terminated
.`  
Maybe you should contact the maintainer of libvibrant at this point.

---

<div class="post-metadata">

**Author:** ![telometto](https://avatars.discourse-cdn.com/v4/letter/t/aad0ee/32.png) [@telometto](https://discussion.fedoraproject.org/u/telometto)\
**Post date:** [November 30, 2020, 3:45pm UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/13 "2020-11-30T15:45:08Z")

</div>

I took your advice and he told me that I should modify the script in order to make it work, so it looks like I am going to have to make a thread asking for how I do that 😑

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/system/32/2604_2.png) [@system](https://discussion.fedoraproject.org/u/system)\
**Post date:** [December 28, 2020, 3:45pm UTC](https://discussion.fedoraproject.org/t/error-when-compiling-libvibrant/78622/14 "2020-12-28T15:45:10Z")

</div>

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