Open pierre-quelin opened 5 years ago
A temporary solution.
1) Edit the kernel source files and change the include files like this in all files
#include <media/dvbdev.h>
2) Next install the kernel source package
sudo apt-get install linux-source
3) extract the missing includes
tar -xvjf /usr/src/linux-source-4.15.0.tar.bz2 --wildcards 'linux-source-4.15.0/drivers/media/dvb-core/*.h'
4) copy them in the kernel include path
sudo mv linux-source-4.15.0/drivers/media/dvb-core/* /usr/src/linux-headers-4.15.0-48-generic/include/media/
5) Change the kernel Makefile
all: headers dvb_hdhomerun
become
all: dvb_hdhomerun
6) Build the packages
dpkg-buildpackage -b
7) install
sudo dpkg -i dvbhdhomerun-source_0.0.16+nmu4_all.deb
sudo dpkg -i dvbhdhomerun-dkms_0.0.16+nmu4_all.deb
sudo dpkg -i dvbhdhomerun-utils_0.0.16+nmu4_amd64.deb
8) Configure
nano /etc/dvbhdhomerun
Hi, in order to build the modules in Ubuntu 18.04.03 server you have to fix also some other *.c file changing includes, for example, from:
#include "dvb_demux.h"
#include "dvb_frontend.h"
#include "dvb_net.h"
#include "dvbdev.h"
#include "dmxdev.h"
to:
#include <media/dvb_demux.h>
#include <media/dvb_frontend.h>
#include <media/dvb_net.h>
#include <media/dvbdev.h>
#include <media/dmxdev.h>
Hello, For information I'm trying to build for recent kernel (Debian 11) and I think Ubuntu will work well too. I add CI to the branch and Artifact can now be downloaded from github. All comments are welcome ;-) Thank you
Hello Pierre,
I hope that you don't mind that I am contacting you by using this email I found on launchpad. I would have filed a bug/question on github, if that option was available.
Here is my problem:
I downloaded your fork of dvbhdhomerun from your github https://github.com/pierre-quelin/dvbhdhomerun/blob/master/etc/dvbhdhomerun and was able to build the debian packages on my ubuntu bionic system running currently the following kernel:
I am able to install the dvbhdhomerun-source and dvbhdhomerun-utils packages; but I get an error when trying to install the dvbhdhomerun-dkms package:
The make.log file, that you can find attached to this email, says that it does not find the dvbdev.h file; but I can see the file under: /var/lib/dkms/dvbhdhomerun/0.0.16+nmu4ubuntu1~bionic/build/headers/4.15/dvbdev.h
Unfortunately, I don't know how to tell the compiler the location of the file. Could you please tell me how I can fix it; or even better, could you add a commit to your github allowing the kernel module to also compile on Ubuntu?
Many thanks in advance for any help.
Ludi
file : make.log