I am trying to make a custom API for maintaining the backlight of the computer, however, as the examples suggest, the "backlight.h" is to be included, and there is no such a file on my Open SUSE distro. Ive installed kernel-devel package, and kernel-source, however nothing. Also I need more libs like "gpio.h" and "driver.h". So why I dont have them?
Asked
Active
Viewed 1,593 times
0
Ilian Zapryanov
- 183
- 11
-
and what about `kernel-headers` package? – Zina Aug 15 '16 at 17:39
-
"zypper search kernel-headers", gives me no results found. – Ilian Zapryanov Aug 15 '16 at 17:44
-
It`s also said that the headers are in "linux-glibc-devel" package, which I have. – Ilian Zapryanov Aug 15 '16 at 17:47
-
ah, okay, I am on Ubuntu / CentOS. Maybe [this will help you further](https://forums.opensuse.org/showthread.php/491320-kernel-header-install/page2?s=b66ce0dda9c25d3ad4e2c489ba5c3547) -> `And I also install the "kernel-syms" package, which brings in the headers as a dependency` – Zina Aug 15 '16 at 17:48
-
Yes, I just did that, however, the headers are still missing. Can you check if your distro has them? – Ilian Zapryanov Aug 15 '16 at 17:56
-
on CentOS 7 - `yum install kernel-headers.x86_64` - when I use the tab expansion. Currently I have no SuSe VM (and as told before I am on Ubuntu/CentOS) – Zina Aug 15 '16 at 17:58
-
Too bad... I still don`t have them ... – Ilian Zapryanov Aug 15 '16 at 18:03
-
http://superuser.com/questions/245544/where-can-i-find-linux-kernel-headers-x-x-x-x-for-suse?rq=1 I`ve checked this topic, and even this did not work for me? – Ilian Zapryanov Aug 15 '16 at 18:22
-
maybe just download [backlight.h](http://lxr.free-electrons.com/source/include/linux/backlight.h), [gpio.h](http://lxr.free-electrons.com/source/include/linux/gpio.h), [driver.h](http://lxr.free-electrons.com/source/include/linux/gpio/driver.h) ? – Zina Aug 15 '16 at 19:39
1 Answers
0
Try to run
zypper se kernel | grep header
Most likely then you can see what packages do you have to install
Tim Connor
- 33
- 1
-
1Hello, the command you proposed gives me gives me no output :) – Ilian Zapryanov Aug 21 '16 at 11:28