2014-09-09, 17:11
I'm building Kodi/head
in a raspbian/jessie chroot.
I'm upgrading my sources & procedures from Gotham + Raspbian/wheezy (which builds fine), to latest Kodi sources; jessie's a necessary upgrade.
I thinks I've got most of the deps dealt with -- except for this:
Something's obviously missing.
I'm not sure -- yet -- whether it's a missing Raspbian pkg dep (*thought* I got 'em all ...), or an improper/missing include in Kodi's code.
I just can't find the silly thing.
Any suggestions? I can provide add'l detail as needed.
Thanks,
Grant
Code:
commit 15525e03422f65de756a086a2c4851b45b1f33f4
Merge: 0d720f8 b84c11d
Author: Lars Op den Kamp <[email protected]>
Date: Tue Sep 9 00:04:02 2014 +0200
Merge pull request #5338 from xhaggi/pvr-fix-destructor-visibility
[pvr] fix destructor visibility to allow polymorphic deletion
commit 0d720f87b081721454e1bf6616410dac1be096b8
I'm upgrading my sources & procedures from Gotham + Raspbian/wheezy (which builds fine), to latest Kodi sources; jessie's a necessary upgrade.
I thinks I've got most of the deps dealt with -- except for this:
Code:
cd ./xbmc/windowing/X11
make
CPP xbmc/windowing/X11/WinSystemX11.o
In file included from WinSystemX11.cpp:25:0:
WinSystemX11.h:76:3: error: ‘Display’ does not name a type
Display* GetDisplay() { return m_dpy; }
^
WinSystemX11.h:96:3: error: ‘Window’ does not name a type
Window m_glWindow, m_mainWindow;
^
WinSystemX11.h:106:3: error: ‘Display’ does not name a type
Display* m_dpy;
^
WinSystemX11.h:107:3: error: ‘Cursor’ does not name a type
Cursor m_invisibleCursor;
^
WinSystemX11.h:108:3: error: ‘Pixmap’ does not name a type
Pixmap m_icon;
^
WinSystemX11.h:123:25: error: ‘XVisualInfo’ has not been declared
bool IsSuitableVisual(XVisualInfo *vInfo);
^
WinSystemX11.h:124:28: error: ‘Display’ has not been declared
static int XErrorHandler(Display* dpy, XErrorEvent* error);
^
WinSystemX11.h:124:42: error: ‘XErrorEvent’ has not been declared
static int XErrorHandler(Display* dpy, XErrorEvent* error);
^
WinSystemX11.cpp: In constructor ‘CWinSystemX11::CWinSystemX11()’:
WinSystemX11.cpp:64:3: error: ‘m_dpy’ was not declared in this scope
m_dpy = NULL;
^
WinSystemX11.cpp:65:3: error: ‘m_glWindow’ was not declared in this scope
m_glWindow = 0;
^
WinSystemX11.cpp:66:3: error: ‘m_mainWindow’ was not declared in this scope
m_mainWindow = 0;
^
WinSystemX11.cpp:70:3: error: ‘m_invisibleCursor’ was not declared in this scope
m_invisibleCursor = 0;
^
WinSystemX11.cpp:73:33: error: invalid conversion from ‘int (*)(int*, int*)’ to ‘XErrorHandler {aka int (*)(_XDisplay*, XErrorEvent*)}’ [-fpermissive]
XSetErrorHandler(XErrorHandler);
^
In file included from /usr/include/X11/extensions/Xrender.h:28:0,
from /usr/include/X11/extensions/Xrandr.h:33,
from WinSystemX11.cpp:44:
/usr/include/X11/Xlib.h:1860:22: note: initializing argument 1 of ‘int (* XSetErrorHandler(XErrorHandler))(Display*, XErrorEvent*)’
extern XErrorHandler XSetErrorHandler (
^
WinSystemX11.cpp: In member function ‘virtual bool CWinSystemX11::InitWindowSystem()’:
WinSystemX11.cpp:82:8: error: ‘m_dpy’ was not declared in this scope
if ((m_dpy = XOpenDisplay(NULL)))
^
WinSystemX11.cpp: In member function ‘virtual bool CWinSystemX11::DestroyWindow()’:
WinSystemX11.cpp:155:8: error: ‘m_mainWindow’ was not declared in this scope
if (!m_mainWindow)
^
WinSystemX11.cpp:173:7: error: ‘m_invisibleCursor’ was not declared in this scope
if (m_invisibleCursor)
^
WinSystemX11.cpp:175:21: error: ‘m_dpy’ was not declared in this scope
XUndefineCursor(m_dpy, m_mainWindow);
^
WinSystemX11.cpp:175:28: error: ‘m_mainWindow’ was not declared in this scope
XUndefineCursor(m_dpy, m_mainWindow);
^
WinSystemX11.cpp:182:16: error: ‘m_dpy’ was not declared in this scope
XUnmapWindow(m_dpy, m_mainWindow);
^
WinSystemX11.cpp:182:23: error: ‘m_mainWindow’ was not declared in this scope
XUnmapWindow(m_dpy, m_mainWindow);
^
WinSystemX11.cpp:183:25: error: ‘m_glWindow’ was not declared in this scope
XDestroyWindow(m_dpy, m_glWindow);
^
WinSystemX11.cpp:188:7: error: ‘m_icon’ was not declared in this scope
if (m_icon)
^
WinSystemX11.cpp: In member function ‘virtual bool CWinSystemX11::SetFullScreen(bool, RESOLUTION_INFO&, bool)’:
WinSystemX11.cpp:272:9: error: ‘m_mainWindow’ was not declared in this scope
if (m_mainWindow)
^
WinSystemX11.cpp:284:38: error: ‘m_dpy’ was not declared in this scope
bool isInWin = XQueryPointer(m_dpy, m_mainWindow, &root_return, &child_return,
^
WinSystemX11.cpp: In member function ‘virtual void CWinSystemX11::UpdateResolutions()’:
WinSystemX11.cpp:325:33: error: ‘m_dpy’ was not declared in this scope
int numScreens = XScreenCount(m_dpy);
^
WinSystemX11.cpp: At global scope:
WinSystemX11.cpp:536:6: error: prototype for ‘bool CWinSystemX11::IsSuitableVisual(XVisualInfo*)’ does not match any in class ‘CWinSystemX11’
bool CWinSystemX11::IsSuitableVisual(XVisualInfo *vInfo)
^
In file included from WinSystemX11.cpp:25:0:
WinSystemX11.h:123:8: error: candidate is: bool CWinSystemX11::IsSuitableVisual(int*)
bool IsSuitableVisual(XVisualInfo *vInfo);
^
WinSystemX11.cpp: In member function ‘bool CWinSystemX11::RefreshGlxContext(bool)’:
WinSystemX11.cpp:617:28: error: ‘m_dpy’ was not declared in this scope
if (XGetWindowAttributes(m_dpy, m_glWindow, &winAttr))
^
WinSystemX11.cpp:617:35: error: ‘m_glWindow’ was not declared in this scope
if (XGetWindowAttributes(m_dpy, m_glWindow, &winAttr))
^
WinSystemX11.cpp:623:36: error: no matching function for call to ‘CWinSystemX11::IsSuitableVisual(XVisualInfo*&)’
else if(!IsSuitableVisual(vInfo))
^
WinSystemX11.cpp:623:36: note: candidate is:
In file included from WinSystemX11.cpp:25:0:
WinSystemX11.h:123:8: note: bool CWinSystemX11::IsSuitableVisual(int*)
bool IsSuitableVisual(XVisualInfo *vInfo);
^
WinSystemX11.h:123:8: note: no known conversion for argument 1 from ‘XVisualInfo*’ to ‘int*’
WinSystemX11.cpp:641:30: error: ‘m_dpy’ was not declared in this scope
visuals = XGetVisualInfo(m_dpy, VisualScreenMask | VisualDepthMask, &vMask, &availableVisuals);
^
WinSystemX11.cpp:644:39: error: no matching function for call to ‘CWinSystemX11::IsSuitableVisual(XVisualInfo*)’
if (IsSuitableVisual(&visuals[i]))
^
WinSystemX11.cpp:644:39: note: candidate is:
In file included from WinSystemX11.cpp:25:0:
WinSystemX11.h:123:8: note: bool CWinSystemX11::IsSuitableVisual(int*)
bool IsSuitableVisual(XVisualInfo *vInfo);
^
WinSystemX11.h:123:8: note: no known conversion for argument 1 from ‘XVisualInfo*’ to ‘int*’
WinSystemX11.cpp:685:13: error: ‘m_dpy’ was not declared in this scope
XSync(m_dpy, FALSE);
^
WinSystemX11.cpp:689:56: error: ‘m_dpy’ was not declared in this scope
m_eglDisplay = eglGetDisplay((EGLNativeDisplayType)m_dpy);
^
WinSystemX11.cpp:711:70: error: ‘m_glWindow’ was not declared in this scope
m_eglSurface = eglCreateWindowSurface(m_eglDisplay, eglConfig, m_glWindow, NULL);
^
WinSystemX11.cpp: In member function ‘virtual void CWinSystemX11::ShowOSMouse(bool)’:
WinSystemX11.cpp:749:21: error: ‘m_dpy’ was not declared in this scope
XUndefineCursor(m_dpy,m_mainWindow);
^
WinSystemX11.cpp:749:27: error: ‘m_mainWindow’ was not declared in this scope
XUndefineCursor(m_dpy,m_mainWindow);
^
WinSystemX11.cpp:750:12: error: ‘m_invisibleCursor’ was not declared in this scope
else if (m_invisibleCursor)
^
WinSystemX11.cpp:751:19: error: ‘m_dpy’ was not declared in this scope
XDefineCursor(m_dpy,m_mainWindow, m_invisibleCursor);
^
WinSystemX11.cpp:751:25: error: ‘m_mainWindow’ was not declared in this scope
XDefineCursor(m_dpy,m_mainWindow, m_invisibleCursor);
^
WinSystemX11.cpp: In member function ‘virtual void CWinSystemX11::ResetOSScreensaver()’:
WinSystemX11.cpp:764:25: error: ‘m_dpy’ was not declared in this scope
XResetScreenSaver(m_dpy);
^
WinSystemX11.cpp: In member function ‘virtual void CWinSystemX11::EnableSystemScreenSaver(bool)’:
WinSystemX11.cpp:775:8: error: ‘m_dpy’ was not declared in this scope
if (!m_dpy)
^
WinSystemX11.cpp:779:23: error: ‘m_dpy’ was not declared in this scope
XForceScreenSaver(m_dpy, ScreenSaverActive);
^
WinSystemX11.cpp:786:19: error: ‘m_dpy’ was not declared in this scope
XQueryPointer(m_dpy, RootWindow(m_dpy, m_nScreen), &root_return, &child_return,
^
WinSystemX11.cpp: In member function ‘virtual bool CWinSystemX11::Minimize()’:
WinSystemX11.cpp:833:18: error: ‘m_dpy’ was not declared in this scope
XIconifyWindow(m_dpy, m_mainWindow, m_nScreen);
^
WinSystemX11.cpp:833:25: error: ‘m_mainWindow’ was not declared in this scope
XIconifyWindow(m_dpy, m_mainWindow, m_nScreen);
^
WinSystemX11.cpp: In member function ‘virtual bool CWinSystemX11::Hide()’:
WinSystemX11.cpp:844:16: error: ‘m_dpy’ was not declared in this scope
XUnmapWindow(m_dpy, m_mainWindow);
^
WinSystemX11.cpp:844:23: error: ‘m_mainWindow’ was not declared in this scope
XUnmapWindow(m_dpy, m_mainWindow);
^
WinSystemX11.cpp: In member function ‘virtual bool CWinSystemX11::Show(bool)’:
WinSystemX11.cpp:850:14: error: ‘m_dpy’ was not declared in this scope
XMapWindow(m_dpy, m_mainWindow);
^
WinSystemX11.cpp:850:21: error: ‘m_mainWindow’ was not declared in this scope
XMapWindow(m_dpy, m_mainWindow);
^
WinSystemX11.cpp: At global scope:
WinSystemX11.cpp:946:5: error: prototype for ‘int CWinSystemX11::XErrorHandler(Display*, XErrorEvent*)’ does not match any in class ‘CWinSystemX11’
int CWinSystemX11::XErrorHandler(Display* dpy, XErrorEvent* error)
^
In file included from WinSystemX11.cpp:25:0:
WinSystemX11.h:124:14: error: candidate is: static int CWinSystemX11::XErrorHandler(int*, int*)
static int XErrorHandler(Display* dpy, XErrorEvent* error);
^
WinSystemX11.cpp: In member function ‘bool CWinSystemX11::SetWindow(int, int, bool, const string&)’:
WinSystemX11.cpp:968:8: error: ‘m_mainWindow’ was not declared in this scope
if (!m_mainWindow)
^
WinSystemX11.cpp:973:7: error: ‘m_mainWindow’ was not declared in this scope
if (m_mainWindow && ((m_bFullScreen != fullscreen) || m_currentOutput.compare(output) != 0 || m_windowDirty))
^
WinSystemX11.cpp:988:36: error: ‘m_dpy’ was not declared in this scope
bool isInWin = XQueryPointer(m_dpy, m_mainWindow, &root_return, &child_return,
^
WinSystemX11.cpp:1007:8: error: ‘m_mainWindow’ was not declared in this scope
if (!m_mainWindow)
^
WinSystemX11.cpp:1060:58: error: ‘m_dpy’ was not declared in this scope
m_eglDisplay = eglGetDisplay((EGLNativeDisplayType)m_dpy);
^
WinSystemX11.cpp:1084:25: error: ‘m_dpy’ was not declared in this scope
vi = XGetVisualInfo(m_dpy,
^
WinSystemX11.cpp:1115:5: error: ‘m_glWindow’ was not declared in this scope
m_glWindow = XCreateWindow(m_dpy, m_mainWindow,
^
WinSystemX11.cpp:1133:5: error: ‘m_invisibleCursor’ was not declared in this scope
m_invisibleCursor = XCreatePixmapCursor(m_dpy, bitmapNoData, bitmapNoData,
^
WinSystemX11.cpp:1161:19: error: ‘m_dpy’ was not declared in this scope
XResizeWindow(m_dpy, m_mainWindow, width, height);
^
WinSystemX11.cpp:1161:26: error: ‘m_mainWindow’ was not declared in this scope
XResizeWindow(m_dpy, m_mainWindow, width, height);
^
WinSystemX11.cpp:1166:19: error: ‘m_dpy’ was not declared in this scope
XResizeWindow(m_dpy, m_glWindow, width, height);
^
WinSystemX11.cpp:1166:26: error: ‘m_glWindow’ was not declared in this scope
XResizeWindow(m_dpy, m_glWindow, width, height);
^
WinSystemX11.cpp:1171:5: error: ‘m_icon’ was not declared in this scope
m_icon = None;
^
WinSystemX11.cpp:1193:24: error: ‘m_dpy’ was not declared in this scope
XSetWMProperties(m_dpy, m_mainWindow, &windowName, &iconName,
^
WinSystemX11.cpp:1193:31: error: ‘m_mainWindow’ was not declared in this scope
XSetWMProperties(m_dpy, m_mainWindow, &windowName, &iconName,
^
WinSystemX11.cpp:1205:18: error: ‘m_dpy’ was not declared in this scope
XWarpPointer(m_dpy, None, m_mainWindow, 0, 0, 0, 0, mouseX*width, mouseY*height);
^
WinSystemX11.cpp:1205:29: error: ‘m_mainWindow’ was not declared in this scope
XWarpPointer(m_dpy, None, m_mainWindow, 0, 0, 0, 0, mouseX*width, mouseY*height);
^
WinSystemX11.cpp:1207:23: error: ‘m_glWindow’ was not declared in this scope
XMapRaised(m_dpy, m_glWindow);
^
WinSystemX11.cpp: In member function ‘bool CWinSystemX11::CreateIconPixmap()’:
WinSystemX11.cpp:1253:24: error: ‘m_dpy’ was not declared in this scope
XGetWindowAttributes(m_dpy, m_glWindow, &wndattribs);
^
WinSystemX11.cpp:1253:31: error: ‘m_glWindow’ was not declared in this scope
XGetWindowAttributes(m_dpy, m_glWindow, &wndattribs);
^
WinSystemX11.cpp:1346:3: error: ‘m_icon’ was not declared in this scope
m_icon = XCreatePixmap(m_dpy, m_glWindow, img->width, img->height, depth);
^
WinSystemX11.cpp: In member function ‘bool CWinSystemX11::HasWindowManager()’:
WinSystemX11.cpp:1365:22: error: ‘m_dpy’ was not declared in this scope
prop = XInternAtom(m_dpy, "_NET_SUPPORTING_WM_CHECK", True);
^
../../../Makefile.include:93: recipe for target 'WinSystemX11.o' failed
make: *** [WinSystemX11.o] Error 1
Something's obviously missing.
I'm not sure -- yet -- whether it's a missing Raspbian pkg dep (*thought* I got 'em all ...), or an improper/missing include in Kodi's code.
I just can't find the silly thing.
Any suggestions? I can provide add'l detail as needed.
Thanks,
Grant