Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 146544
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 143907
Assigned To: Stefan Schweizer <genstef@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Steffen Zieger <post@steffenzieger.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 146544 depends on: Show dependency tree
Bug 146544 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-09-06 05:57 0000
I've tried to install wengophone-2.0_rc2 and it doesn't compile.
It's trying to use avcodec.h, but this file is in ffmpeg/avcodec.h.

In the wengophone directory under files is an patch available, which is
changing the location from /usr/include to /usr/include/ffmpeg, but it seems,
as it isn't applied by the ebuild and doesn't correct every appearance of
avcodec.h to ffmpeg/avcodec.h.

Here is the error message:
wengophone/src/presentation/qt/QtAbout.cpp:36:21: Fehler: avcodec.h: No such
file or directory

Here is a patch for fixing all errors, regarding ffmpeg:

--- wengophone/src/presentation/qt/QtAbout.cpp.old      2006-08-14
23:09:34.260923224 +0200
+++ wengophone/src/presentation/qt/QtAbout.cpp  2006-08-14 23:09:03.997523960
+0200
@@ -33,7 +33,7 @@
        #include <portaudio.h>
 #endif
 #include <boost/version.hpp>
-#include <avcodec.h>
+#include <ffmpeg/avcodec.h>
 #include <tinyxml.h>
 extern "C" {
 #include <glib.h>

--- libs/pixertool/include/pixertool/ffmpeg-pixertool.h.orig    2006-09-06
13:37:24.000000000 +0200
+++ libs/pixertool/include/pixertool/ffmpeg-pixertool.h 2006-09-06
13:37:34.000000000 +0200
@@ -22,7 +22,7 @@

 #include <pixertool/pixertool.h>

-#include <avcodec.h>
+#include <ffmpeg/avcodec.h>

 #ifdef __cplusplus
 extern "C" {

After applying the following patch to the ebuild, wengophone compiled
successfully.

--- wengophone-2.0_rc2.ebuild.orig      2006-09-06 11:33:20.000000000 +0200
+++ wengophone-2.0_rc2.ebuild   2006-09-06 11:48:18.000000000 +0200
@@ -54,6 +54,7 @@
        unpack ${A}
        epatch ${MY_P}-1.diff
        cd ${S}
+       epatch /usr/portage/net-im/${PN}/files/ffmpeg-include.patch
        for dpatch in debian/patches/*.patch; do
                epatch ${dpatch}
        done



HAND,
Steffen

------- Comment #1 From Jakub Moc (RETIRED) 2006-09-06 06:07:17 0000 -------
Thought this was fixed in Bug 143907???

------- Comment #2 From Steffen Zieger 2006-09-06 08:57:37 0000 -------
(In reply to comment #1)
> Thought this was fixed in Bug 143907???
> 
Yeah, there is everything for fixing this bug. Bad, I've not found it.
But, if the problem is fixed, why is there no fix in the portage tree?
At least for me, it's not possible to compile wengophone, without the patches
found in the bug report mentioned by you or in my bug.

HAND,
Steffen

------- Comment #3 From Stefan Schweizer 2006-09-06 09:25:03 0000 -------
you give no info here. And not even an intention to fix the actual bug. You
probably have a too old ffmpeg or your pkg-config does not work for some
reason. You can workaround it manually of course, but I only want to fix the
source of the problem in portage, so give me some info to do that please.

*** This bug has been marked as a duplicate of 143907 ***

*** This bug has been marked as a duplicate of 143907 ***

------- Comment #4 From Steffen Zieger 2006-09-06 12:11:43 0000 -------
(In reply to comment #3)
> you give no info here. And not even an intention to fix the actual bug. You
> probably have a too old ffmpeg or your pkg-config does not work for some
> reason. You can workaround it manually of course, but I only want to fix the
> source of the problem in portage, so give me some info to do that please.

As I've written in my last post, I've got the same error, as in bug 143907.
Because I've not found the bug report for this, I've created my own and
included patches for fixing the problem. 

This bug is fixed by applying all patches, pasted inline in my bug report or by
using the patches comitted in the other bug report and make it available
through portage tree.

I don't know, if the patch for the ebuild is well-written, but it's a fix.
Maybe only for me, but it's compiling, what the version in portage tree is not
doing.

ffmpeg is the latest stable (x86) version available in the tree.

If it helps, if I'm making the inline-written patches an attachment, let me
know that.

HAND,
Steffen

------- Comment #5 From Stefan Schweizer 2006-09-06 12:18:42 0000 -------
it probably works with latest testing ffmpeg. You might want to try that one
and file a stabilization bug + notify me so that i can update the depend,
thanks.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug