Compiling, building and installation - some explanations please
Added by Davor Komljenovic almost 6 years ago
Hello,
I have been compiling my own Tvheadend for a few years now. I had a version from 1.5 years ago that I compiled and was using until few weeks ago. I decided to "get up to date" and compile the latest version. And this week I wanted to test transcoding using external FFmpeg that I also compiled myself. While I was attempting this, I realized I may not be doing everything correctly and do not fully understand the compile, build, and installation process. I could not find explanations to my questions in any forum post or searching the Internet. Can someone please explain a few things for me?
I am running Debian Jessie on Odroid XU4. I have successfully compiled a few versions of Tvheadend in the past. I have done a "git pull" to get the latest source code. Here are my questions.
1. When the build process is started with "make", if the build process fails, where are all of the already compiled files stored? If I want to force tvheadend to fully recompile, I need to delete these files. But I do not know where to find them. I deleted "build.linux" folder but the build process seems too fast, as if most of the compiled files are still there (the ones compiled before the failure).
2. After a successful build with "make", what happens when "make install" command is executed? Meaning, which files get copied and what files get modified on the system?
I ask this because I only copy "tvheadend" from "build.linux" to "/usr/bin" after a new build but I am not sure if this is enough to fully "install" the new version.
3. After a successful build with "make", is it enough to just copy "tvheadend" from "build.linux" folder to "/usr/bin" or do I have to run "make install"?
Thank you for explanations.
Replies (1)
RE: Compiling, building and installation - some explanations please - Added by Hiro Protagonist almost 6 years ago
Davor Komljenovic wrote:
1. When the build process is started with "make", if the build process fails, where are all of the already compiled files stored? If I want to force tvheadend to fully recompile, I need to delete these files. But I do not know where to find them. I deleted "build.linux" folder but the build process seems too fast, as if most of the compiled files are still there (the ones compiled before the failure).
You should use 'make clean' for this purpose.