Open SUSE missing kernel-devel headers

0

1

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?

Ilian Zapryanov

Posted 2016-08-15T17:06:38.373

Reputation: 183

and what about kernel-headers package? – Zina – 2016-08-15T17:39:53.853

"zypper search kernel-headers", gives me no results found. – Ilian Zapryanov – 2016-08-15T17:44:56.367

It`s also said that the headers are in "linux-glibc-devel" package, which I have. – Ilian Zapryanov – 2016-08-15T17:47:02.287

ah, okay, I am on Ubuntu / CentOS. Maybe this will help you further -> And I also install the "kernel-syms" package, which brings in the headers as a dependency

– Zina – 2016-08-15T17:48:47.907

Yes, I just did that, however, the headers are still missing. Can you check if your distro has them? – Ilian Zapryanov – 2016-08-15T17:56:23.613

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 – 2016-08-15T17:58:21.037

Too bad... I still don`t have them ... – Ilian Zapryanov – 2016-08-15T18:03:50.553

– Ilian Zapryanov – 2016-08-15T18:22:15.043

maybe just download backlight.h, gpio.h, driver.h ?

– Zina – 2016-08-15T19:39:20.110

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

Posted 2016-08-15T17:06:38.373

Reputation: 25

1Hello, the command you proposed gives me gives me no output :) – Ilian Zapryanov – 2016-08-21T11:28:11.807