I'm a real novice so I need some help on an Ubuntu 20.04 install. I figured out how to add all the dependencies that at first were not present. The build shows two problems:
[ 12%] Building CXX object CMakeFiles/userhdhomerun.dir/main.o
/home/russ/dvbhdhomerun/userhdhomerun/main.cpp: In function ‘int main(int, char**)’:
/home/russ/dvbhdhomerun/userhdhomerun/main.cpp:135:16: warning: ignoring return value of ‘int setgid(gid_t)’, declared with attribute warn_unused_result [-Wunused-result]
135 | setgid(group->gr_gid);
| ~~^~~~~~~
/home/russ/dvbhdhomerun/userhdhomerun/main.cpp:143:16: warning: ignoring return value of ‘int setuid(uid_t)’, declared with attribute warn_unused_result [-Wunused-result]
143 | setuid(passwd->pw_uid);
The second issue is:
[ 50%] Building CXX object CMakeFiles/userhdhomerun.dir/hdhomerun_controller.o
/home/russ/dvbhdhomerun/userhdhomerun/hdhomerun_controller.cpp: In constructor ‘HdhomerunController::HdhomerunController(int)’:
/home/russ/dvbhdhomerun/userhdhomerun/hdhomerun_controller.cpp:74:22: error: ‘hdhomerun_discover_find_devices_custom’ was not declared in this scope; did you mean ‘hdhomerun_discover_find_devices_custom_v3’?
74 | int numOfDevices = hdhomerun_discover_find_devices_custom(0, HDHOMERUN_DEVICE_TYPE_TUNER, HDHOMERUN_DEVICE_ID_WILDCARD, devices, m_maxDevices);
| ^~~~~~~~~~
| hdhomerun_discover_find_devices_custom_v3
make[4]: [CMakeFiles/userhdhomerun.dir/build.make:102: CMakeFiles/userhdhomerun.dir/hdhomerun_controller.o] Error 1
make[4]: Leaving directory '/home/russ/dvbhdhomerun/userhdhomerun/build'
make[3]: [CMakeFiles/Makefile2:104: CMakeFiles/userhdhomerun.dir/all] Error 2
make[3]: Leaving directory '/home/russ/dvbhdhomerun/userhdhomerun/build'
make[2]: [Makefile:130: all] Error 2
make[2]: Leaving directory '/home/russ/dvbhdhomerun/userhdhomerun/build'
make[1]: [Makefile:32: all] Error 2
make[1]: Leaving directory '/home/russ/dvbhdhomerun/userhdhomerun'
make: *** [debian/rules:18: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
I tried going into the file in question and just adding "_v3" but that just led to a different error.
I have no idea how to address these problems. Any help would be appreciated.
https://github.com/BMoneyFlash/dvbhdhomerun
I forked this project and made some changes and I was able to get this running on the latest Ubuntu (24.04) and kernel (6.8.0-31).
Issues fixed:
references updated for 5 kernel headers which are in include/media/*.h now
3 function calls needed their first parameters removed
3 variables names were changed to add "_hz" at the end
updated the Makefiles where kernel headers are downloaded from but this still fails. So, I commented that part out, built it once and let it fail, manually put the kernel headers in the expected spot, and then built a second time and it worked.
I'm a real novice so I need some help on an Ubuntu 20.04 install. I figured out how to add all the dependencies that at first were not present. The build shows two problems:
[ 12%] Building CXX object CMakeFiles/userhdhomerun.dir/main.o /home/russ/dvbhdhomerun/userhdhomerun/main.cpp: In function ‘int main(int, char**)’: /home/russ/dvbhdhomerun/userhdhomerun/main.cpp:135:16: warning: ignoring return value of ‘int setgid(gid_t)’, declared with attribute warn_unused_result [-Wunused-result] 135 | setgid(group->gr_gid); |
~~^~~~~~~ /home/russ/dvbhdhomerun/userhdhomerun/main.cpp:143:16: warning: ignoring return value of ‘int setuid(uid_t)’, declared with attribute warn_unused_result [-Wunused-result] 143 | setuid(passwd->pw_uid);The second issue is:
[ 50%] Building CXX object CMakeFiles/userhdhomerun.dir/hdhomerun_controller.o /home/russ/dvbhdhomerun/userhdhomerun/hdhomerun_controller.cpp: In constructor ‘HdhomerunController::HdhomerunController(int)’: /home/russ/dvbhdhomerun/userhdhomerun/hdhomerun_controller.cpp:74:22: error: ‘hdhomerun_discover_find_devices_custom’ was not declared in this scope; did you mean ‘hdhomerun_discover_find_devices_custom_v3’? 74 | int numOfDevices = hdhomerun_discover_find_devices_custom(0, HDHOMERUN_DEVICE_TYPE_TUNER, HDHOMERUN_DEVICE_ID_WILDCARD, devices, m_maxDevices); | ^
~~~~~~~~~ | hdhomerun_discover_find_devices_custom_v3 make[4]: [CMakeFiles/userhdhomerun.dir/build.make:102: CMakeFiles/userhdhomerun.dir/hdhomerun_controller.o] Error 1 make[4]: Leaving directory '/home/russ/dvbhdhomerun/userhdhomerun/build' make[3]: [CMakeFiles/Makefile2:104: CMakeFiles/userhdhomerun.dir/all] Error 2 make[3]: Leaving directory '/home/russ/dvbhdhomerun/userhdhomerun/build' make[2]: [Makefile:130: all] Error 2 make[2]: Leaving directory '/home/russ/dvbhdhomerun/userhdhomerun/build' make[1]: [Makefile:32: all] Error 2 make[1]: Leaving directory '/home/russ/dvbhdhomerun/userhdhomerun' make: *** [debian/rules:18: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2I tried going into the file in question and just adding "_v3" but that just led to a different error.
I have no idea how to address these problems. Any help would be appreciated.