• Tutorials & FAQ
  • TVHeadend build and install on Ubuntu 22.04 64 bit x86_64 platform for beginners

Jonas Lang
Once again thanks for your support and your try to help me new user, below is output of >sudo apt install cc.
it's OK for me to downgrade to 22.04 and try again, as I'm learning and it will not harm me.

ali@AMD:~/tvh-build/tvheadend$ sudo apt install gcc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gcc is already the newest version (4:13.2.0-7ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

    is it the correct Ubuntu build which to install ==>> ubuntu-22.04.4-desktop-amd64

      AliSLR what would be a big help is if users posted a full list of both hardware and OS they are using. Once again the title of this post is very clear and concise.

        AliSLR it appears that all the tools required to build and compile TVH are correctly installed. As I stated previously I built and compiled TVH on Ubuntu 22.04 on an x86_64 Intel processor platform and it works every time. When I get time I may try it on Ubuntu 24.04 but not at the moment

        Flole it doesn’t appear so. If required maybe you could move it if you find that more appropriate.

        Jonas Lang
        here is my hardware and OS details, with Linux is it matter what is CPU structure using if it's inter or AMD.
        any how sincerely thank you.


          AliSLR as far as I know it should make no difference here. As I suggested install Ubuntu 22.04 and use my instructions outlined above.

          AliSLR /home/ali/tvh-build/tvheadend/support/configure.inc: line 22: cc: command not found
          Checking support/features
          ERROR: No C compiler found

          It sounds like your C compiler is missing.

          AliSLR gcc is already the newest version (4:13.2.0-7ubuntu1).

          But this contradicts that.

          Have you installed the build-essential package?

          Looking at the line that you failed on, perhaps your C compiler is not in the right path.

          tvheadend/tvheadendblob/49ac9387186d32b55a399a04155e835eac22c6c1/support/configure.inc#L22C1-L22C65

          [ -z "$ARCH" ] && ARCH=$($CC -dumpmachine | cut -d '-' -f 1)

            I installed 22.04. and inserted below said command, but still have the error:-

            `ali@AMD:~/build/tvheadend/master$ AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static\ --enable-trace\ --enable-debug ./Autobuild.sh
            OS identified using lsb_release command
            On branch master
            Your branch is up to date with 'origin/master'.

            nothing to commit, working tree clean
            Building for jammy-x86_64
            Autobuild/debian.sh: line 45: dpkg-buildpackage: command not found
            ali@AMD:~/build/tvheadend/master$
            `

            DeltaMikeCharlie
            Yes, Build-essential was there actually, However now formatted my D drive and installed Ubuntu 22.04.4 as i could not find 22.04 in Ubuntu download links.

              AliSLR I’d prefer if two or more different users weren’t trying to guide you through this process. It will only end up confusing you.

              This as it states is a beginners guide I prepared and is fully tested on Ubuntu 22.04 and is working as of today 10th August 2024.

              If you want me to continue guiding you through this process just tag me otherwise I’ll leave it to others. I don’t want to discourage you from completing the process by confusing you unnecessarily. If others feel that they have a better or more efficient method of doing things by all means create you own post.

              The compilation process will automatically prompt you to install any additional elements should they be required so strictly speaking you should need very little external guidance to complete the build process.

                Jonas Lang Hi Jonas, i forgot to tag you while posting, however noted very late, so i could not edit my post. Regret for the same, definitly need your help and guidance, doing my best to educate myself over new system issues. Thanks for your patients.

                  AliSLR did you manage to complete the build/compilation process using Ubuntu 22.04 and my instructions above.

                    Jonas Lang Tried my best but still same issue, its says that dpkg is missing, while it's installed, not sure what i'm missing.

                    Autobuild/debian.sh: line 45: dpkg-buildpackage: command not found

                    ali@AMD:~/build/tvheadend/master$ dpkg --version
                    Debian 'dpkg' package management program version 1.21.1 (amd64).
                    This is free software; see the GNU General Public License version 2 or
                    later for copying conditions. There is NO warranty.

                      Its telling you that dpkg-buildpackage is missing, not dpkg.

                        AliSLR I was checking the spec on your PC and it appears to be very proprietary, a gamers PC by the look of it. I’ve noticed a couple of posts on the web mentioning issues with BIOS and problems with compilers. I’d really need to test one to be actually sure.

                        Do you run anything else on this PC. Is it dual booting. Is Ubuntu hiding behind Windows WSL by any chance. Do you already have TVH installed on this PC and now trying to build/compile from source.

                          AliSLR I also assume you correctly installed everything from the first line and go no errors back.

                          sudo apt install build-essential git libpcre2-dev pkg-config libssl-dev bzip2 wget libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavresample-dev gettext cmake libiconv-hook-dev liburiparser-dev debhelper libcurl4-gnutls-dev

                            Flole really! I presumed dpkg was missing, any clue how to install it, much appreciate.

                            Jonas Lang Yes, actually my PC is dual boot, installed windows 11 on C drive and Ubuntu on D drive and based on my requirements booting the system. Do you believe this is the reason of error!

                            FYI, after several attempts of built/compile failures, I followed last night 2nd post in below link, and I could run TVH; not sure what’s the different between both process.

                            https://tvheadend.org/d/8737-how-to-install

                            Jonas Lang as per my understanding I installed everything with no errors, however I will cross checke once again today when nearby pc and let you know, Thanks for your support.