Kodi Community Forum

Full Version: Linux compile error: ‘GetGLRenderer’ on 2D build
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I try to compile XBMC without 3D support (I compile from a virtual machine, which does not have 3D support, so I run it with './build.sh CONFIGOPT=--disable-gl CONFIGOPT=--disable-debug') I get a compile error:

Code:
SystemInfo.cpp: In member function ‘CStdString CSysInfo::GetVideoEncoder()’:
SystemInfo.cpp:968: error: ‘class Surface::CSurface’ has no member named ‘GetGLRenderer’

Am I doing something wrong, or is something broken?
The 2D version worked a month back for me but it really isn't maintained so it probably doesn't work now, you should get a 3D card Wink. (I only get like 10-20fps in 2D with my computer so I wouldn't recommend it)
Topfs2 Wrote:The 2D version worked a month back for me but it really isn't maintained so it probably doesn't work now, you should get a 3D card Wink. (I only get like 10-20fps in 2D with my computer so I wouldn't recommend it)

I am running Ubuntu on a Virtual Machine so it isn't a real computer and 3D hardware emulation is not supported! Just a software emulated one. I only use it for XBMC Linux debugging.
Please look into it then - it looks like you need to ifdef out said function (or have the function body ifdef'd out instead of the definition).
Basje Wrote:I am running Ubuntu on a Virtual Machine so it isn't a real computer and 3D hardware emulation is not supported! Just a software emulated one. I only use it for XBMC Linux debugging.

Oh, misread you a bit Blush Ohwell, I have commited a fix for it so svn up and try again.
thanks for the fix, however, I now get another error:

Code:
In function `CFileReader::Process()':
FileReader.cpp:(.text+0x9e5): undefined reference to `CThread::Sleep(unsigned long)'
xbmc/cores/paplayer/FileReader.o: In function `CFileReader::Read(void*, long long)':
FileReader.cpp:(.text+0xaa7): undefined reference to `CThread::Sleep(unsigned long)'
xbmc/cores/paplayer/FileReader.o: In function `CFileReader::Open(CStdStr<char> const&, bool, bool)':
FileReader.cpp:(.text+0xf8a): undefined reference to `CThread::Sleep(unsigned long)'
collect2: ld returned 1 exit status
It does not seem to be related to 3D hardware.