Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE

How to setup Eclipse IDE for FFmpeg (Linux)

A collection of useful tutorials for some common tasks.

How to setup Eclipse IDE for FFmpeg (Linux)

Postby burek » Wed Dec 07, 2011 1:56 am

  1. Download basic "Eclipse Classic" from http://www.eclipse.org/downloads/
    Some of you might say "Oh, you could download 'Eclipse IDE for C/C++ Developers' all in one installation", but the point is a lot of developers are already using their own version of Eclipse, with various plugins/addons installed, so it is better to show in this tutorial how to do all that in the modular way. That way developers, who already have Eclipse installed with Java/C++/Lua/PHP/custom addons, can just skip this first step and continue, without the need to search on Google how to do all this without breaking heir currently installed version of Eclipse.

  2. Uncompress/Run the Eclipse
    After uncompressing (usually with "tar xzf eclipse.<version info here>.tar.gz"), you can simply enter the eclipse directory (with "cd eclipse") and run the Eclipse (usually using "./eclipse"). After you start the Eclipse for the first time, it will ask you for the "workspace" directory. This directory will contain your future projects in subdirectories. You can also switch between workspaces if you work for example in Java/Lua/PHP/C++ (as I do) and that way you can organize your projects better, by making separate directories for each programming language, with subdirectories for each new project you work on. Also, you can close the "Welcome" tab, to be able to see the workspace behind it.

  3. Install "Eclipse CDT project plugin" (C++ Development Tools)
    The usual way to do this is to start the Eclipse and go to the "Help - Install New Software" menu option. When the new dialog window shows, you'll have to do 2 things. The first thing is to tell Eclipse from where do you want to download/install stuff. In the latest Eclipse, the field name is named "Work with" and you should select the latest Eclipse version there. In my case, the option was named "Indigo - http://download.eclipse.org/releases/indigo". After that, you should type 'cdt' in the search filter field, below the "Work with" field. The results will appear depending on your Eclipse version, so select all CDT related packages and click "Next", accept the license agreement and install all that. Restart Eclipse if asked.
    snapshot1.png (60.58 KiB) Viewed 5318 times

    If there were any errors during the installation, you can view the error log by going to "Help - About Eclipse SDK", then press the button "Installation Details", switch to the "Configuration" tab and press "View error log" :) Simple, right? :))) I had some issues with certificates, because I was using Debian. More info here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=258301 If that's the case with you too, you can solve that issue by typing in console the following command: "update-ca-certificates -f -v" and repeating the installation process for CDT. Restart Eclipse if asked.

  4. Install GIT plugin
    You can use this tutorial: http://www.vogella.de/articles/EGit/article.html or you can just repeat the same installation process as for "cdt" but instead of "cdt" you need to type 'git'. The rest is the same. Restart Eclipse if asked.
    snapshot2.png (63.36 KiB) Viewed 5318 times

  5. Import/Clone the FFmpeg's git repository
    In the Eclipse, go to main menu option "File - Import - Git - Projects From Git", paste the git url "git://source.ffmpeg.org/ffmpeg.git" and press the "Clone" button.

  6. Create new C++ project using existing FFmpeg's source code
    In the Eclipse, go to main menu option "File - New - Project", then choose "C/C++" and then "Makefile Project with Existing Code" and navigate to the FFmpeg's source code directory you have cloned in the previous step (usually "/home/<username>/git/ffmpeg").

  7. Compile the source code
    First of all, make sure you have c++, g++, make and other build tools installed. If you are using debian/ubuntu, you can type "apt-get install build-essential". Before you compile the source code for the first time, you'll have to go to your local git directory ("/home/<username>/git/ffmpeg") and type "./configure". After it finishes, go back to Eclipse and use the main menu option "Project - Build All".
    snapshot3.png (178.79 KiB) Viewed 5317 times

  8. More to come...
    This tutorial is not finished and will be updated to cover the basic operations like pulling/committing/pushing the changes from/to the git, code inspection using CDT plugin, code (re)formatting using Eclipse's code formatting rules, etc.
Posts: 864
Joined: Mon May 09, 2011 10:16 pm
Location: Serbia

Re: How to setup Eclipse IDE for FFmpeg (Linux)

Postby robert000 » Wed Jan 28, 2015 12:37 pm

So ok my problem is solved now. The Problem was that libass is build without fontconfig.>>>>ok but the system was not support!!!!!!!!!!!!!!!!!
Posts: 1
Joined: Wed Jan 28, 2015 12:34 pm

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest