Here is some of the log that show the error make[1]: Leaving directory `/var/tmp/portage/jugglemaster-0.4/work/jugglemaster-0.4/src/jmlib' g++ -march=athlon -O3 -pipe -Wall -fsigned-char `wx-config --cppflags` -DHAVE_AVCODEC_H -I/usr/include/ffmpeg -c -o advsite.o advsite.cpp patt.cpp: In member function 'int PatternLoader::OpenFile(const char*, int)': patt.cpp:74: error: ambiguous overload for 'operator+=' in 'targetfilename += "/.jugglemaster/"' /usr/include/wx/string.h:563: note: candidates are: void wxString::operator+=(const wxString&) <near match> /usr/include/wx/string.h:567: note: void wxString::operator+=(wxChar) <near match> /usr/include/wx/string.h:573: note: void wxString::operator+=(const wxWCharBuffer&) <near match> patt.cpp:77: error: ambiguous overload for 'operator=' in 'targetfilename = ""' /usr/include/wx/string.h:278: note: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx/string.h:519: note: wxString& wxString::operator=(const wxString&) <near match> /usr/include/wx/string.h:521: note: wxString& wxString::operator=(wxChar) <near match> /usr/include/wx/string.h:526: note: wxString& wxString::operator=(const wxWCharBuffer&) <near match> patt.cpp:80: error: ambiguous overload for 'operator+=' in 'targetfilename += filename' /usr/include/wx/string.h:563: note: candidates are: void wxString::operator+=(const wxString&) <near match> /usr/include/wx/string.h:567: note: void wxString::operator+=(wxChar) <near match> /usr/include/wx/string.h:573: note: void wxString::operator+=(const wxWCharBuffer&) <near match> patt.cpp:82: error: ambiguous overload for 'operator=' in 'targetfilename = filename' /usr/include/wx/string.h:278: note: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx/string.h:519: note: wxString& wxString::operator=(const wxString&) <near match> /usr/include/wx/string.h:521: note: wxString& wxString::operator=(wxChar) <near match> /usr/include/wx/string.h:526: note: wxString& wxString::operator=(const wxWCharBuffer&) <near match> patt.cpp:85: error: invalid cast from type 'wxString' to type 'const char*' patt.cpp:86: error: invalid cast from type 'wxString' to type 'const char*' patt.cpp:89: error: conversion from 'const char*' to 'const wxString' is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:90: error: invalid cast from type 'wxString' to type 'const char*' patt.cpp:93: error: call of overloaded 'wxString(const char [33])' is ambiguous /usr/include/wx/string.h:322: note: candidates are: wxString::wxString(const wxWCharBuffer&) <near match> /usr/include/wx/string.h:306: note: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:291: note: wxString::wxString(const wxString&) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:96: error: invalid conversion from 'const char*' to 'wxChar' patt.cpp:96: error: initializing argument 1 of 'wxString& wxString::Append(wxChar, size_t)' patt.cpp:97: error: invalid cast from type 'wxString' to type 'const char*' patt.cpp:103: error: conversion from 'const char [11]' to 'const wxString' is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:104: error: invalid conversion from 'const char*' to 'wxChar' patt.cpp:104: error: initializing argument 1 of 'int wxString::Find(wxChar, bool) const' patt.cpp:105: error: invalid conversion from 'const char*' to 'wxChar' patt.cpp:105: error: initializing argument 1 of 'int wxString::Find(wxChar, bool) const' patt.cpp:115: error: conversion from 'const char [9]' to 'const wxString' is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:127: error: conversion from 'const char [35]' to 'const wxString' is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:127: error: conversion from 'const char [6]' to 'const wxString' is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:130: error: invalid cast from type 'wxString' to type 'const char*' patt.cpp:133: warning: control reaches end of non-void function make: *** [patt.o] Error 1 make: *** Waiting for unfinished jobs.... choosestyle.h:30: error: conversion from
Here is some of the log that show the error make[1]: Leaving directory `/var/tmp/portage/jugglemaster-0.4/work/jugglemaster-0.4/src/jmlib' g++ -march=athlon -O3 -pipe -Wall -fsigned-char `wx-config --cppflags` -DHAVE_AVCODEC_H -I/usr/include/ffmpeg -c -o advsite.o advsite.cpp patt.cpp: In member function 'int PatternLoader::OpenFile(const char*, int)': patt.cpp:74: error: ambiguous overload for 'operator+=' in 'targetfilename += "/.jugglemaster/"' /usr/include/wx/string.h:563: note: candidates are: void wxString::operator+=(const wxString&) <near match> /usr/include/wx/string.h:567: note: void wxString::operator+=(wxChar) <near match> /usr/include/wx/string.h:573: note: void wxString::operator+=(const wxWCharBuffer&) <near match> patt.cpp:77: error: ambiguous overload for 'operator=' in 'targetfilename = ""' /usr/include/wx/string.h:278: note: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx/string.h:519: note: wxString& wxString::operator=(const wxString&) <near match> /usr/include/wx/string.h:521: note: wxString& wxString::operator=(wxChar) <near match> /usr/include/wx/string.h:526: note: wxString& wxString::operator=(const wxWCharBuffer&) <near match> patt.cpp:80: error: ambiguous overload for 'operator+=' in 'targetfilename += filename' /usr/include/wx/string.h:563: note: candidates are: void wxString::operator+=(const wxString&) <near match> /usr/include/wx/string.h:567: note: void wxString::operator+=(wxChar) <near match> /usr/include/wx/string.h:573: note: void wxString::operator+=(const wxWCharBuffer&) <near match> patt.cpp:82: error: ambiguous overload for 'operator=' in 'targetfilename = filename' /usr/include/wx/string.h:278: note: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx/string.h:519: note: wxString& wxString::operator=(const wxString&) <near match> /usr/include/wx/string.h:521: note: wxString& wxString::operator=(wxChar) <near match> /usr/include/wx/string.h:526: note: wxString& wxString::operator=(const wxWCharBuffer&) <near match> patt.cpp:85: error: invalid cast from type 'wxString' to type 'const char*' patt.cpp:86: error: invalid cast from type 'wxString' to type 'const char*' patt.cpp:89: error: conversion from 'const char*' to 'const wxString' is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:90: error: invalid cast from type 'wxString' to type 'const char*' patt.cpp:93: error: call of overloaded 'wxString(const char [33])' is ambiguous /usr/include/wx/string.h:322: note: candidates are: wxString::wxString(const wxWCharBuffer&) <near match> /usr/include/wx/string.h:306: note: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:291: note: wxString::wxString(const wxString&) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:96: error: invalid conversion from 'const char*' to 'wxChar' patt.cpp:96: error: initializing argument 1 of 'wxString& wxString::Append(wxChar, size_t)' patt.cpp:97: error: invalid cast from type 'wxString' to type 'const char*' patt.cpp:103: error: conversion from 'const char [11]' to 'const wxString' is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:104: error: invalid conversion from 'const char*' to 'wxChar' patt.cpp:104: error: initializing argument 1 of 'int wxString::Find(wxChar, bool) const' patt.cpp:105: error: invalid conversion from 'const char*' to 'wxChar' patt.cpp:105: error: initializing argument 1 of 'int wxString::Find(wxChar, bool) const' patt.cpp:115: error: conversion from 'const char [9]' to 'const wxString' is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:127: error: conversion from 'const char [35]' to 'const wxString' is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:127: error: conversion from 'const char [6]' to 'const wxString' is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> patt.cpp:130: error: invalid cast from type 'wxString' to type 'const char*' patt.cpp:133: warning: control reaches end of non-void function make: *** [patt.o] Error 1 make: *** Waiting for unfinished jobs.... choosestyle.h:30: error: conversion from const char [7] to wxString is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> choosestyle.h:30: error: conversion from const char [11] to wxString is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> choosestyle.h:30: error: conversion from const char [9] to wxString is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> choosestyle.h:30: error: conversion from const char [8] to wxString is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx/string.h:284: note: wxString::wxString(int) <near match> choosestyle.h:30: error: conversion from const char [7] to wxString is ambiguous /usr/include/wx/string.h:306: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
Not a gcc-4.1 bug. This is due to the app not being unicode aware, and using the unicode headers. (atleast, that's what a member of wx upstream told me, and it does fail with gcc-3.4)
after recompiling wxGTK without unicode I get the following problem (with ffmpeg): g++ -march=athlon -O3 -pipe -Wall -fsigned-char `wx-config --cppflags` -DHAVE_AVCODEC_H -I/usr/include/ffmpeg -c -o print.o print.cpp print.cpp: In member function 'int Print::printMPEG()': print.cpp:562: error: 'struct AVCodecContext' has no member named 'frame_rate' print.cpp:563: error: 'struct AVCodecContext' has no member named 'frame_rate_base'
Created attachment 88224 [details, diff] jugglemaster-0.4-ffmpeg.patch Try this
Fixed. Thanks for patch
Created attachment 196775 [details, diff] bugg
(In reply to comment #6) > Created an attachment (id=196775) [edit] > bugg > Commenting here on ancient bug won't help at all. If you have a problem with current ffmpeg and/or jugglemaster you need to open new bug.