v17 EGLWrapper.cpp build error
#1
Bug 
I tried building with
Code:
cmake ../xbmc-17.0-Krypton/project/cmake/ \
-DENABLE_OPENGL=OFF \
-DENABLE_X11=OFF \
-DENABLE_OPENGLES=YES \
-DENABLE_VAAPI=OFF \
-DENABLE_VDPAU=OFF \
-DENABLE_SDL=OFF \
-DTARGET_RASPBERRY_PI=1
Build configuration:
Code:
-- #---- CONFIGURATION ----#
-- -- PATH config --
-- Prefix: /usr/local
-- Libdir: /usr/local/lib
-- Bindir: /usr/local/bin
-- Includedir: /usr/local/include
-- Datarootdir: /usr/local/share
-- Datadir: /usr/local/share
-- Docdir: /usr/local/share/doc/kodi
-- MICROHTTPD enabled: Yes
-- MYSQLCLIENT enabled: Yes
-- SSH enabled: Yes
-- XSLT enabled: Yes
-- ALSA enabled: Yes
-- UDEV enabled: Yes
-- DBUS enabled: Yes
-- AVAHI enabled: No
-- SMBCLIENT enabled: Yes
-- CCACHE enabled: Yes
-- PULSEAUDIO enabled: Yes
-- VDPAU enabled: No
-- VAAPI enabled: No
-- BLUETOOTH enabled: Yes
-- CAP enabled: Yes
-- CEC enabled: No
-- BLURAY enabled: No
-- PLIST enabled: Yes
-- NFS enabled: No
-- SDL enabled: No
-- OPENGL enabled: No
-- OPENGLES enabled: Yes
-- X enabled: No
-- LIBDRM enabled: No
-- AML enabled: No
-- IMX enabled: No
-- Configuring done
-- Generating done
But I got many errors regarding EGLWrapper.cpp:
Code:
[ 92%] Building CXX object build/windowing/egl/CMakeFiles/windowing_egl.dir/EGLWrapper.cpp.o
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In function ‘bool {anonymous}::CorrectGuess(CEGLNativeType*, const string&)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:63:13: error: invalid use of incomplete type ‘class CEGLNativeType’
     if(guess->CheckCompatibility())
             ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:65:34: error: invalid use of incomplete type ‘class CEGLNativeType’
       if (implementation == guess->GetNativeName() ||
                                  ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::Initialize(const string&)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:105:7: error: expected primary-expression before ‘)’ token
       )
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:109:18: error: invalid use of incomplete type ‘class CEGLNativeType’
     m_nativeTypes->Initialize();
                  ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::Destroy()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:121:16: error: invalid use of incomplete type ‘class CEGLNativeType’
   m_nativeTypes->Destroy();
                ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:123:10: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
   delete m_nativeTypes;
          ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:123:10: warning: invalid use of incomplete type ‘class CEGLNativeType’
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:123:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
   delete m_nativeTypes;
          ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘std::string CEGLWrapper::GetNativeName()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:131:25: error: invalid use of incomplete type ‘class CEGLNativeType’
     return m_nativeTypes->GetNativeName();
                         ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::CreateNativeDisplay()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:140:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->CreateNativeDisplay();
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::CreateNativeWindow()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:148:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->CreateNativeWindow();
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘void CEGLWrapper::DestroyNativeDisplay()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:154:18: error: invalid use of incomplete type ‘class CEGLNativeType’
     m_nativeTypes->DestroyNativeDisplay();
                  ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘void CEGLWrapper::DestroyNativeWindow()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:160:18: error: invalid use of incomplete type ‘class CEGLNativeType’
     m_nativeTypes->DestroyNativeWindow();
                  ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::SetNativeResolution(RESOLUTION_INFO&)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:167:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->SetNativeResolution(res);
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::ProbeResolutions(std::vector<RESOLUTION_INFO>&)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:174:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->ProbeResolutions(resolutions);
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::GetPreferredResolution(RESOLUTION_INFO*)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:182:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->GetPreferredResolution(res);
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::GetNativeResolution(RESOLUTION_INFO*)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:190:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->GetNativeResolution(res);
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::ShowWindow(bool)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:198:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->ShowWindow(show);
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::GetQuirks(int*)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:205:26: error: invalid use of incomplete type ‘class CEGLNativeType’
   *quirks = m_nativeTypes->GetQuirks();
                          ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::InitDisplay(void**)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:217:21: error: invalid use of incomplete type ‘class CEGLNativeType’
   if (!m_nativeTypes->GetNativeDisplay((XBNativeDisplayType**)&nativeDisplay))
                     ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:217:41: error: ‘XBNativeDisplayType’ was not declared in this scope
   if (!m_nativeTypes->GetNativeDisplay((XBNativeDisplayType**)&nativeDisplay))
                                         ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:217:62: error: expected primary-expression before ‘)’ token
   if (!m_nativeTypes->GetNativeDisplay((XBNativeDisplayType**)&nativeDisplay))
                                                              ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::CreateSurface(EGLDisplay, EGLConfig, void**)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:288:21: error: invalid use of incomplete type ‘class CEGLNativeType’
   if (!m_nativeTypes->GetNativeWindow((XBNativeWindowType**)&nativeWindow))
                     ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:288:40: error: ‘XBNativeWindowType’ was not declared in this scope
   if (!m_nativeTypes->GetNativeWindow((XBNativeWindowType**)&nativeWindow))
                                        ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:288:60: error: expected primary-expression before ‘)’ token
   if (!m_nativeTypes->GetNativeWindow((XBNativeWindowType**)&nativeWindow))
                                                            ^
make[2]: *** [build/windowing/egl/CMakeFiles/windowing_egl.dir/build.make:63: build/windowing/egl/CMakeFiles/windowing_egl.dir/EGLWrapper.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:9275: build/windowing/egl/CMakeFiles/windowing_egl.dir/all] Error 2
make: *** [Makefile:139: all] Error 2
Am I missing a dependency? Is there a workaround for this?
I get this same issue when trying to built master, too.
thanks
Reply
#2
I was successfully able to build with:
Code:
cmake ../xbmc-17.0-Krypton/project/cmake/ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_PREFIX_PATH=/opt/vc -DCORE_SYSTEM_NAME=rbpi -DCPU=cortex-a7 -DWITH_ARCH=arm -DENABLE_OPENGL=OFF -DENABLE_X11=OFF -DENABLE_VAAPI=OFF -DENABLE_VDPAU=OFF
Reply
#3
I've run in to the same build failure, as you.

Code:
[ 96%] Building CXX object build/posix/CMakeFiles/platform_posix.dir/MessagePrinter.cpp.o
cd "/build/kodi-17.1~git20170325.1710-final/kodi_build/build/posix" && /usr/bin/ccache /usr/lib/ccache/c++    -I"/build/kodi-17.1~git20170325.1710-final" -I"/build/kodi-17.1~git20170325.1710-final/addons/library.xbmc.addon" -I"/build/kodi-17.1~git20170325.1710-final/lib" -I"/build/kodi-17.1~git20170325.1710-final/lib/gtest/include" -I"/build/kodi-17.1~git20170325.1710-final/xbmc" -I"/build/kodi-17.1~git20170325.1710-final/xbmc/linux" -I"/build/kodi-17.1~git20170325.1710-final/xbmc/cores/VideoPlayer" -I"/build/kodi-17.1~git20170325.1710-final/kodi_build/build" -I/usr/include/freetype2 -I"/build/kodi-17.1~git20170325.1710-final/kodi_build/build/cpluff/include" -I"/build/kodi-17.1~git20170325.1710-final/kodi_build/build/libdvd/include" -I/usr/include/python2.7 -I/usr/include/lzo -I"/build/kodi-17.1~git20170325.1710-final/kodi_build/build/include" -I/usr/include/libxml2 -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -std=c++11 -O3 -DNDEBUG -s   -D_LINUX -DTARGET_POSIX -DTARGET_LINUX -D__STDC_CONSTANT_MACROS -D_FILE_DEFINED -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_STD__U16_STRING=1 -DHAVE_STD__U32_STRING=1 -DHAVE_CHAR16_T=1 -DHAVE_CHAR32_T=1 -DHAVE_STDINT_H=1 -DHAS_BUILTIN_SYNC_ADD_AND_FETCH=1 -DHAS_BUILTIN_SYNC_SUB_AND_FETCH=1 -DHAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP=1 -DHAVE_INOTIFY=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_LOCALTIME_R=1 -DHAVE_INTTYPES_H=1 -I/usr/include/fribidi -DFFMPEG_VER_SHA=\"3.1.6-Krypton\" -DUSE_STATIC_FFMPEG=1 -DHAVE_LCMS2=1 -DHAVE_LIBMICROHTTPD=1 -DHAVE_MYSQL=1 -DHAVE_LIBSSH=1 -DHAVE_LIBXSLT=1 -DHAVE_ALSA=1 -DUSE_ALSA=1 -DHAVE_LIBUDEV=1 -DHAVE_DBUS=1 -DHAVE_LIBAVAHI_CLIENT=1 -DHAVE_LIBAVAHI_COMMON=1 -DHAVE_LIBPULSE=1 -DHAVE_LIBPLIST=1 -DHAVE_OPENSSL=1 -DUSE_UPNP=1 -DHAVE_XBMC_NONFREE=1 -DHAVE_LIBGLESV2 -DHAVE_LIBEGL=1 -DBIN_INSTALL_PATH=\"/usr/lib/arm-linux-gnueabihf/kodi\" -DINSTALL_PATH=\"/usr/share/kodi\" -std=c++11 -o CMakeFiles/platform_posix.dir/MessagePrinter.cpp.o -c "/build/kodi-17.1~git20170325.1710-final/xbmc/platform/posix/MessagePrinter.cpp"
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In function 'bool {anonymous}::CorrectGuess(CEGLNativeType*, const string&)':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:63:13: error: invalid use of incomplete type 'class CEGLNativeType'
     if(guess->CheckCompatibility())
             ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:65:34: error: invalid use of incomplete type 'class CEGLNativeType'
       if (implementation == guess->GetNativeName() ||
                                  ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::Initialize(const string&)':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:105:7: error: expected primary-expression before ')' token
       )
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:109:18: error: invalid use of incomplete type 'class CEGLNativeType'
     m_nativeTypes->Initialize();
                  ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::Destroy()':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:121:16: error: invalid use of incomplete type 'class CEGLNativeType'
   m_nativeTypes->Destroy();
                ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:123:10: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
   delete m_nativeTypes;
          ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:123:10: warning: invalid use of incomplete type 'class CEGLNativeType'
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: warning: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:123:10: note: neither the destructor nor the class-specific operator delete will be called,even if they are declared when the class is defined
   delete m_nativeTypes;
          ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'std::string CEGLWrapper::GetNativeName()':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:131:25: error: invalid use of incomplete type 'class CEGLNativeType'
     return m_nativeTypes->GetNativeName();
                         ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::CreateNativeDisplay()':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:140:23: error: invalid use of incomplete type 'class CEGLNativeType'
   return m_nativeTypes->CreateNativeDisplay();
                       ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::CreateNativeWindow()':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:148:23: error: invalid use of incomplete type 'class CEGLNativeType'
   return m_nativeTypes->CreateNativeWindow();
                       ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'void CEGLWrapper::DestroyNativeDisplay()':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:154:18: error: invalid use of incomplete type 'class CEGLNativeType'
     m_nativeTypes->DestroyNativeDisplay();
                  ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'void CEGLWrapper::DestroyNativeWindow()':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:160:18: error: invalid use of incomplete type 'class CEGLNativeType'
     m_nativeTypes->DestroyNativeWindow();
                  ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::SetNativeResolution(RESOLUTION_INFO&)':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:167:23: error: invalid use of incomplete type 'class CEGLNativeType'
   return m_nativeTypes->SetNativeResolution(res);
                       ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::ProbeResolutions(std::vector<RESOLUTION_INFO>&)':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:174:23: error: invalid use of incomplete type 'class CEGLNativeType'
   return m_nativeTypes->ProbeResolutions(resolutions);
                       ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::GetPreferredResolution(RESOLUTION_INFO*)':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:182:23: error: invalid use of incomplete type 'class CEGLNativeType'
   return m_nativeTypes->GetPreferredResolution(res);
                       ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::GetNativeResolution(RESOLUTION_INFO*)':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:190:23: error: invalid use of incomplete type 'class CEGLNativeType'
   return m_nativeTypes->GetNativeResolution(res);
                       ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::ShowWindow(bool)':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:198:23: error: invalid use of incomplete type 'class CEGLNativeType'
   return m_nativeTypes->ShowWindow(show);
                       ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::GetQuirks(int*)':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:205:26: error: invalid use of incomplete type 'class CEGLNativeType'
   *quirks = m_nativeTypes->GetQuirks();
                          ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::InitDisplay(void**)':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:217:21: error: invalid use of incomplete type 'class CEGLNativeType'
   if (!m_nativeTypes->GetNativeDisplay((XBNativeDisplayType**)&nativeDisplay))
                     ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:217:41: error: 'XBNativeDisplayType' was not declared in this scope
   if (!m_nativeTypes->GetNativeDisplay((XBNativeDisplayType**)&nativeDisplay))
                                         ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:217:62: error: expected primary-expression before ')' token
   if (!m_nativeTypes->GetNativeDisplay((XBNativeDisplayType**)&nativeDisplay))
                                                              ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp: In member function 'bool CEGLWrapper::CreateSurface(EGLDisplay, EGLConfig, void**)':
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:288:21: error: invalid use of incomplete type 'class CEGLNativeType'
   if (!m_nativeTypes->GetNativeWindow((XBNativeWindowType**)&nativeWindow))
                     ^
In file included from /build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.h:28:7: error: forward declaration of 'class CEGLNativeType'
class CEGLNativeType;
       ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:288:40: error: 'XBNativeWindowType' was not declared in this scope
   if (!m_nativeTypes->GetNativeWindow((XBNativeWindowType**)&nativeWindow))
                                        ^
/build/kodi-17.1~git20170325.1710-final/xbmc/windowing/egl/EGLWrapper.cpp:288:60: error: expected primary-expression before ')' token
   if (!m_nativeTypes->GetNativeWindow((XBNativeWindowType**)&nativeWindow))
                                                            ^
build/windowing/egl/CMakeFiles/windowing_egl.dir/build.make:65: recipe for target 'build/windowing/egl/CMakeFiles/windowing_egl.dir/EGLWrapper.cpp.o' failed
make[3]: *** [build/windowing/egl/CMakeFiles/windowing_egl.dir/EGLWrapper.cpp.o] Error 1
make[3]: Leaving directory '/build/kodi-17.1~git20170325.1710-final/kodi_build'
CMakeFiles/Makefile2:9324: recipe for target 'build/windowing/egl/CMakeFiles/windowing_egl.dir/all' failed
make[2]: *** [build/windowing/egl/CMakeFiles/windowing_egl.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 96%] Building CXX object build/storage/linux/CMakeFiles/storage_linux.dir/UDevProvider.cpp.o
cd "/build/kodi-17.1~git20170325.1710-final/kodi_build/build/storage/linux" && /usr/bin/ccache /usr/lib/ccache/c++    -I"/build/kodi-17.1~git20170325.1710-final" -I"/build/kodi-17.1~git20170325.1710-final/addons/library.xbmc.addon" -I"/build/kodi-17.1~git20170325.1710-final/lib" -I"/build/kodi-17.1~git20170325.1710-final/lib/gtest/include" -I"/build/kodi-17.1~git20170325.1710-final/xbmc" -I"/build/kodi-17.1~git20170325.1710-final/xbmc/linux" -I"/build/kodi-17.1~git20170325.1710-final/xbmc/cores/VideoPlayer" -I"/build/kodi-17.1~git20170325.1710-final/kodi_build/build" -I/usr/include/freetype2 -I"/build/kodi-17.1~git20170325.1710-final/kodi_build/build/cpluff/include" -I"/build/kodi-17.1~git20170325.1710-final/kodi_build/build/libdvd/include" -I/usr/include/python2.7 -I/usr/include/lzo -I"/build/kodi-17.1~git20170325.1710-final/kodi_build/build/include" -I/usr/include/libxml2 -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -std=c++11 -O3 -DNDEBUG -s   -D_LINUX -DTARGET_POSIX -DTARGET_LINUX -D__STDC_CONSTANT_MACROS -D_FILE_DEFINED -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_STD__U16_STRING=1 -DHAVE_STD__U32_STRING=1 -DHAVE_CHAR16_T=1 -DHAVE_CHAR32_T=1 -DHAVE_STDINT_H=1 -DHAS_BUILTIN_SYNC_ADD_AND_FETCH=1 -DHAS_BUILTIN_SYNC_SUB_AND_FETCH=1 -DHAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP=1 -DHAVE_INOTIFY=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_LOCALTIME_R=1 -DHAVE_INTTYPES_H=1 -I/usr/include/fribidi -DFFMPEG_VER_SHA=\"3.1.6-Krypton\" -DUSE_STATIC_FFMPEG=1 -DHAVE_LCMS2=1 -DHAVE_LIBMICROHTTPD=1 -DHAVE_MYSQL=1 -DHAVE_LIBSSH=1 -DHAVE_LIBXSLT=1 -DHAVE_ALSA=1 -DUSE_ALSA=1 -DHAVE_LIBUDEV=1 -DHAVE_DBUS=1 -DHAVE_LIBAVAHI_CLIENT=1 -DHAVE_LIBAVAHI_COMMON=1 -DHAVE_LIBPULSE=1 -DHAVE_LIBPLIST=1 -DHAVE_OPENSSL=1 -DUSE_UPNP=1 -DHAVE_XBMC_NONFREE=1 -DHAVE_LIBGLESV2 -DHAVE_LIBEGL=1 -DBIN_INSTALL_PATH=\"/usr/lib/arm-linux-gnueabihf/kodi\" -DINSTALL_PATH=\"/usr/share/kodi\" -std=c++11 -o CMakeFiles/storage_linux.dir/UDevProvider.cpp.o -c "/build/kodi-17.1~git20170325.1710-final/xbmc/storage/linux/UDevProvider.cpp"
[ 96%] Linking CXX static library platform_posix.a
cd "/build/kodi-17.1~git20170325.1710-final/kodi_build/build/posix" && /usr/bin/cmake -P CMakeFiles/platform_posix.dir/cmake_clean_target.cmake
cd "/build/kodi-17.1~git20170325.1710-final/kodi_build/build/posix" && /usr/bin/cmake -E cmake_link_script CMakeFiles/platform_posix.dir/link.txt --verbose=1
/usr/bin/ccache /usr/bin/ar qc platform_posix.a  CMakeFiles/platform_posix.dir/MessagePrinter.cpp.o
/usr/bin/ccache /usr/bin/ranlib platform_posix.a
make[3]: Leaving directory '/build/kodi-17.1~git20170325.1710-final/kodi_build'
[ 96%] Built target platform_posix
[ 97%] Linking CXX static library storage_linux.a
cd "/build/kodi-17.1~git20170325.1710-final/kodi_build/build/storage/linux" && /usr/bin/cmake -P CMakeFiles/storage_linux.dir/cmake_clean_target.cmake
cd "/build/kodi-17.1~git20170325.1710-final/kodi_build/build/storage/linux" && /usr/bin/cmake -E cmake_link_script CMakeFiles/storage_linux.dir/link.txt --verbose=1
/usr/bin/ccache /usr/bin/ar qc storage_linux.a  CMakeFiles/storage_linux.dir/DeviceKitDisksProvider.cpp.o CMakeFiles/storage_linux.dir/UDisksProvider.cpp.o CMakeFiles/storage_linux.dir/UDevProvider.cpp.o
/usr/bin/ccache /usr/bin/ranlib storage_linux.a
make[3]: Leaving directory '/build/kodi-17.1~git20170325.1710-final/kodi_build'
[ 97%] Built target storage_linux
make[2]: Leaving directory '/build/kodi-17.1~git20170325.1710-final/kodi_build'
Makefile:141: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/build/kodi-17.1~git20170325.1710-final/kodi_build'
dh_auto_build: make -j4 returned exit code 2
debian/rules:56: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
I: unmounting /var/tmp/lxc/ccache/ccache filesystem
I: unmounting /var/cache/apt/archives/ filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: cleaning the build env
I: removing directory /var/tmp/Debian-Build/Build//8183 and its subdirectories
gbp:error: '/home/rrs/bin/gbp-pbuilder' failed: it exited with 1
02:25 ♒♒♒    ☹  => 1


Do you build flags suffice for the output to properly run on an RPi ?
Reply
#4
(2017-02-04, 05:30)Geremia17 Wrote: I was successfully able to build with:
Code:
cmake ../xbmc-17.0-Krypton/project/cmake/ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_PREFIX_PATH=/opt/vc -DCORE_SYSTEM_NAME=rbpi -DCPU=cortex-a7 -DWITH_ARCH=arm -DENABLE_OPENGL=OFF -DENABLE_X11=OFF -DENABLE_VAAPI=OFF -DENABLE_VDPAU=OFF
With Kodi 17.4 Krypton, I still get a "EGLWrapper.cpp build error" when building with Autotools and using Autotools's build options analogous to the above cmake ones.
Reply

Logout Mark Read Team Forum Stats Members Help
EGLWrapper.cpp build error1